Lines Matching refs:nlmode

263 int is_ap_interface(enum nl80211_iftype nlmode)  in is_ap_interface()  argument
265 return nlmode == NL80211_IFTYPE_AP || in is_ap_interface()
266 nlmode == NL80211_IFTYPE_P2P_GO; in is_ap_interface()
270 int is_sta_interface(enum nl80211_iftype nlmode) in is_sta_interface() argument
272 return nlmode == NL80211_IFTYPE_STATION || in is_sta_interface()
273 nlmode == NL80211_IFTYPE_P2P_CLIENT; in is_sta_interface()
277 static int is_p2p_net_interface(enum nl80211_iftype nlmode) in is_p2p_net_interface() argument
279 return nlmode == NL80211_IFTYPE_P2P_CLIENT || in is_p2p_net_interface()
280 nlmode == NL80211_IFTYPE_P2P_GO; in is_p2p_net_interface()
298 static int is_mesh_interface(enum nl80211_iftype nlmode) in is_mesh_interface() argument
300 return nlmode == NL80211_IFTYPE_MESH_POINT; in is_mesh_interface()
591 enum nl80211_iftype nlmode; member
609 info->nlmode = nla_get_u32(tb[NL80211_ATTR_IFTYPE]); in netdev_info_handler()
640 .nlmode = NL80211_IFTYPE_UNSPECIFIED, in nl80211_get_ifmode()
648 return data.nlmode; in nl80211_get_ifmode()
1400 unsigned int freq = drv->nlmode == NL80211_IFTYPE_ADHOC ? in nl80211_get_assoc_freq()
1827 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_rfkill_blocked()
1842 if (is_p2p_net_interface(drv->nlmode)) in wpa_driver_nl80211_rfkill_unblocked()
1849 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_rfkill_unblocked()
1956 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) { in wpa_driver_nl80211_drv_init_rfkill()
2185 if (drv->nlmode == NL80211_IFTYPE_ADHOC || in nl80211_mgmt_subscribe_non_ap()
2543 enum nl80211_iftype nlmode; in i802_set_iface_flags() local
2545 nlmode = nl80211_get_ifmode(bss); in i802_set_iface_flags()
2546 if (nlmode != NL80211_IFTYPE_P2P_DEVICE) { in i802_set_iface_flags()
2617 enum nl80211_iftype nlmode; in wpa_driver_nl80211_finish_drv_init() local
2655 nlmode = NL80211_IFTYPE_AP; in wpa_driver_nl80211_finish_drv_init()
2658 nlmode = nl80211_get_ifmode(bss); in wpa_driver_nl80211_finish_drv_init()
2660 nlmode = NL80211_IFTYPE_STATION; in wpa_driver_nl80211_finish_drv_init()
2662 if (wpa_driver_nl80211_set_mode(bss, nlmode) < 0) { in wpa_driver_nl80211_finish_drv_init()
2667 if (nlmode == NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_finish_drv_init()
2680 if (is_p2p_net_interface(nlmode)) in wpa_driver_nl80211_finish_drv_init()
2684 if (nlmode == NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_finish_drv_init()
2689 if (nlmode != NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_finish_drv_init()
2695 if (!drv->hostapd && nlmode != NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_finish_drv_init()
2699 if (nlmode != NL80211_IFTYPE_P2P_DEVICE) { in wpa_driver_nl80211_finish_drv_init()
2781 if (is_ap_interface(drv->nlmode)) in wpa_driver_nl80211_deinit()
2821 if (drv->nlmode != NL80211_IFTYPE_P2P_DEVICE) { in wpa_driver_nl80211_deinit()
3027 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_set_key()
3118 if (is_ap_interface(drv->nlmode) && addr && in wpa_driver_nl80211_set_key()
3313 if (drv->nlmode == NL80211_IFTYPE_ADHOC) { in wpa_driver_nl80211_deauthenticate()
3390 if (is_p2p_net_interface(drv->nlmode) || !drv->disabled_11b_rates) in nl80211_unmask_11b_rates()
3433 enum nl80211_iftype nlmode; in wpa_driver_nl80211_authenticate() local
3450 nlmode = params->p2p ? in wpa_driver_nl80211_authenticate()
3452 if (drv->nlmode != nlmode && in wpa_driver_nl80211_authenticate()
3453 wpa_driver_nl80211_set_mode(bss, nlmode) < 0) in wpa_driver_nl80211_authenticate()
3645 if (freq == 0 && drv->nlmode == NL80211_IFTYPE_ADHOC) { in wpa_driver_nl80211_send_frame()
3706 fc, fc2str(fc), drv->nlmode); in wpa_driver_nl80211_send_mlme()
3708 if ((is_sta_interface(drv->nlmode) || in wpa_driver_nl80211_send_mlme()
3709 drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) && in wpa_driver_nl80211_send_mlme()
3727 if (drv->device_ap_sme && is_ap_interface(drv->nlmode)) { in wpa_driver_nl80211_send_mlme()
4329 if (is_mesh_interface(drv->nlmode) && params->ht_opmode != -1) { in wpa_driver_nl80211_set_ap()
4572 if (is_ap_interface(drv->nlmode) && in wpa_driver_nl80211_sta_add()
4660 if (!is_mesh_interface(drv->nlmode)) { in wpa_driver_nl80211_sta_add()
5191 enum nl80211_iftype nlmode, old_mode; in wpa_driver_nl80211_ap() local
5196 nlmode = NL80211_IFTYPE_P2P_GO; in wpa_driver_nl80211_ap()
5198 nlmode = NL80211_IFTYPE_AP; in wpa_driver_nl80211_ap()
5200 old_mode = drv->nlmode; in wpa_driver_nl80211_ap()
5201 if (wpa_driver_nl80211_set_mode(drv->first_bss, nlmode)) { in wpa_driver_nl80211_ap()
5208 if (old_mode != nlmode) in wpa_driver_nl80211_ap()
5817 enum nl80211_iftype nlmode = params->p2p ? in wpa_driver_nl80211_associate()
5821 if (wpa_driver_nl80211_set_mode(priv, nlmode) < 0) in wpa_driver_nl80211_associate()
5910 enum nl80211_iftype nlmode, in wpa_driver_nl80211_set_mode_impl() argument
5916 int was_ap = is_ap_interface(drv->nlmode); in wpa_driver_nl80211_set_mode_impl()
5923 mode_switch_res = nl80211_set_mode(drv, drv->ifindex, nlmode); in wpa_driver_nl80211_set_mode_impl()
5924 if (mode_switch_res && nlmode == nl80211_get_ifmode(bss)) in wpa_driver_nl80211_set_mode_impl()
5928 drv->nlmode = nlmode; in wpa_driver_nl80211_set_mode_impl()
5936 if (nlmode == drv->nlmode) { in wpa_driver_nl80211_set_mode_impl()
5973 mode_switch_res = nl80211_set_mode(drv, drv->ifindex, nlmode); in wpa_driver_nl80211_set_mode_impl()
5987 drv->nlmode = nlmode; in wpa_driver_nl80211_set_mode_impl()
6002 "from %d failed", nlmode, drv->nlmode); in wpa_driver_nl80211_set_mode_impl()
6006 if (is_p2p_net_interface(nlmode)) { in wpa_driver_nl80211_set_mode_impl()
6018 if (is_ap_interface(nlmode)) { in wpa_driver_nl80211_set_mode_impl()
6030 if (is_mesh_interface(nlmode) && in wpa_driver_nl80211_set_mode_impl()
6034 if (!bss->in_deinit && !is_ap_interface(nlmode) && in wpa_driver_nl80211_set_mode_impl()
6035 !is_mesh_interface(nlmode) && in wpa_driver_nl80211_set_mode_impl()
6045 enum nl80211_iftype nlmode) in wpa_driver_nl80211_set_mode() argument
6047 return wpa_driver_nl80211_set_mode_impl(bss, nlmode, NULL); in wpa_driver_nl80211_set_mode()
6565 if (is_mesh_interface(drv->nlmode)) in i802_sta_deauth()
6592 if (is_mesh_interface(drv->nlmode)) in i802_sta_disassoc()
7099 enum nl80211_iftype nlmode; in wpa_driver_nl80211_if_add() local
7107 nlmode = wpa_driver_nl80211_if_type(type); in wpa_driver_nl80211_if_add()
7108 if (nlmode == NL80211_IFTYPE_P2P_DEVICE) { in wpa_driver_nl80211_if_add()
7112 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
7129 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
7140 if (nlmode == NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_if_add()
7234 nlmode == NL80211_IFTYPE_AP_VLAN || in wpa_driver_nl80211_if_add()
7235 nlmode == NL80211_IFTYPE_WDS || in wpa_driver_nl80211_if_add()
7236 nlmode == NL80211_IFTYPE_MONITOR)) in wpa_driver_nl80211_if_add()
7436 if (is_ap_interface(drv->nlmode) && in wpa_driver_nl80211_send_action()
7571 is_ap_interface(drv->nlmode) && !bss->in_deinit && in wpa_driver_nl80211_probe_req_report()
7672 if (!is_ap_interface(drv->nlmode)) in wpa_driver_nl80211_deinit_ap()
7681 if (drv->nlmode == NL80211_IFTYPE_P2P_GO && bss->if_dynamic) in wpa_driver_nl80211_deinit_ap()
7692 if (!is_ap_interface(drv->nlmode)) in wpa_driver_nl80211_stop_ap()
7704 if (drv->nlmode != NL80211_IFTYPE_P2P_CLIENT) in wpa_driver_nl80211_deinit_p2p_cli()
7721 enum nl80211_iftype nlmode = nl80211_get_ifmode(bss); in wpa_driver_nl80211_resume() local
7726 if (is_p2p_net_interface(nlmode)) in wpa_driver_nl80211_resume()
7801 if (drv->nlmode != NL80211_IFTYPE_ADHOC && in nl80211_signal_poll()
7802 drv->nlmode != NL80211_IFTYPE_MESH_POINT) in nl80211_signal_poll()
8706 if (drv->nlmode != NL80211_IFTYPE_P2P_DEVICE) in wpa_driver_nl80211_get_macaddr()
8958 if (drv->nlmode != NL80211_IFTYPE_AP && in nl80211_switch_channel()
8959 drv->nlmode != NL80211_IFTYPE_P2P_GO && in nl80211_switch_channel()
8960 drv->nlmode != NL80211_IFTYPE_MESH_POINT) in nl80211_switch_channel()
9074 if (!is_sta_interface(drv->nlmode)) in nl80211_add_ts()
9104 if (!is_sta_interface(drv->nlmode)) in nl80211_del_ts()
10730 enum nl80211_iftype nlmode; in nl80211_get_ext_capab() local
10736 nlmode = wpa_driver_nl80211_if_type(type); in nl80211_get_ext_capab()
10745 if (nlmode == drv->iface_ext_capa[i].iftype) { in nl80211_get_ext_capab()