Home
last modified time | relevance | path

Searched refs:iftype (Results 1 – 18 of 18) sorted by relevance

/net/wireless/
Dutil.c363 enum nl80211_iftype iftype) in ieee80211_data_to_8023() argument
391 if (unlikely(iftype != NL80211_IFTYPE_AP && in ieee80211_data_to_8023()
392 iftype != NL80211_IFTYPE_AP_VLAN && in ieee80211_data_to_8023()
393 iftype != NL80211_IFTYPE_P2P_GO)) in ieee80211_data_to_8023()
397 if (unlikely(iftype != NL80211_IFTYPE_WDS && in ieee80211_data_to_8023()
398 iftype != NL80211_IFTYPE_MESH_POINT && in ieee80211_data_to_8023()
399 iftype != NL80211_IFTYPE_AP_VLAN && in ieee80211_data_to_8023()
400 iftype != NL80211_IFTYPE_STATION)) in ieee80211_data_to_8023()
402 if (iftype == NL80211_IFTYPE_MESH_POINT) { in ieee80211_data_to_8023()
422 if ((iftype != NL80211_IFTYPE_STATION && in ieee80211_data_to_8023()
[all …]
Dwext-compat.c95 if (type == wdev->iftype) in cfg80211_wext_siwmode()
112 switch (wdev->iftype) { in cfg80211_wext_giwmode()
454 if (wdev->iftype != NL80211_IFTYPE_ADHOC && in __cfg80211_set_encryption()
455 wdev->iftype != NL80211_IFTYPE_STATION) in __cfg80211_set_encryption()
478 wdev->iftype == NL80211_IFTYPE_ADHOC) { in __cfg80211_set_encryption()
545 if (wdev->iftype == NL80211_IFTYPE_ADHOC && in __cfg80211_set_encryption()
597 if (wdev->iftype != NL80211_IFTYPE_STATION && in cfg80211_wext_siwencode()
598 wdev->iftype != NL80211_IFTYPE_ADHOC) in cfg80211_wext_siwencode()
660 if (wdev->iftype != NL80211_IFTYPE_STATION && in cfg80211_wext_siwencodeext()
661 wdev->iftype != NL80211_IFTYPE_ADHOC) in cfg80211_wext_siwencodeext()
[all …]
Dwext-sme.c75 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) in cfg80211_mgd_wext_siwfreq()
147 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) in cfg80211_mgd_wext_giwfreq()
177 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) in cfg80211_mgd_wext_siwessid()
230 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) in cfg80211_mgd_wext_giwessid()
268 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) in cfg80211_mgd_wext_siwap()
316 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) in cfg80211_mgd_wext_giwap()
340 if (wdev->iftype != NL80211_IFTYPE_STATION) in cfg80211_wext_siwgenie()
395 if (wdev->iftype != NL80211_IFTYPE_STATION) in cfg80211_wext_siwmlme()
Dcore.c195 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_P2P_DEVICE)) in cfg80211_stop_p2p_device()
226 switch (wdev->iftype) { in cfg80211_shutdown_all_interfaces()
792 switch (wdev->iftype) { in cfg80211_unregister_wdev()
808 enum nl80211_iftype iftype, int num) in cfg80211_update_iface_num() argument
813 if (iftype == NL80211_IFTYPE_MONITOR) in cfg80211_update_iface_num()
825 switch (wdev->iftype) { in __cfg80211_leave()
897 WARN_ON(wdev->iftype == NL80211_IFTYPE_UNSPECIFIED); in cfg80211_netdev_notifier_call()
939 if ((wdev->iftype == NL80211_IFTYPE_STATION || in cfg80211_netdev_notifier_call()
940 wdev->iftype == NL80211_IFTYPE_P2P_CLIENT || in cfg80211_netdev_notifier_call()
941 wdev->iftype == NL80211_IFTYPE_ADHOC) && !wdev->use_4addr) in cfg80211_netdev_notifier_call()
[all …]
Dchan.c331 enum nl80211_iftype iftype) in cfg80211_chandef_dfs_required() argument
339 switch (iftype) { in cfg80211_chandef_dfs_required()
738 if (wdev_iter->iftype != NL80211_IFTYPE_STATION || in cfg80211_go_permissive_chan()
784 enum nl80211_iftype iftype) in cfg80211_reg_can_beacon() argument
791 trace_cfg80211_reg_can_beacon(wiphy, chandef, iftype); in cfg80211_reg_can_beacon()
799 if (iftype != NL80211_IFTYPE_P2P_GO || in cfg80211_reg_can_beacon()
803 if (cfg80211_chandef_dfs_required(wiphy, chandef, iftype) > 0 && in cfg80211_reg_can_beacon()
843 switch (wdev->iftype) { in cfg80211_get_chan_state()
879 wdev->iftype); in cfg80211_get_chan_state()
892 wdev->iftype); in cfg80211_get_chan_state()
Dibss.c26 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in __cfg80211_ibss_joined()
319 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in cfg80211_ibss_wext_siwfreq()
374 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in cfg80211_ibss_wext_giwfreq()
404 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in cfg80211_ibss_wext_siwessid()
441 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in cfg80211_ibss_wext_giwessid()
471 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in cfg80211_ibss_wext_siwap()
525 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_ADHOC)) in cfg80211_ibss_wext_giwap()
Dap.c20 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && in __cfg80211_stop_ap()
21 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO) in __cfg80211_stop_ap()
Dnl80211.c875 switch (wdev->iftype) { in nl80211_key_allowed()
1886 wdev->iftype == NL80211_IFTYPE_AP || in nl80211_can_set_dev_channel()
1887 wdev->iftype == NL80211_IFTYPE_MESH_POINT || in nl80211_can_set_dev_channel()
1888 wdev->iftype == NL80211_IFTYPE_MONITOR || in nl80211_can_set_dev_channel()
1889 wdev->iftype == NL80211_IFTYPE_P2P_GO; in nl80211_can_set_dev_channel()
1963 enum nl80211_iftype iftype = NL80211_IFTYPE_MONITOR; in __nl80211_set_channel() local
1971 iftype = wdev->iftype; in __nl80211_set_channel()
1977 switch (iftype) { in __nl80211_set_channel()
1980 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &chandef, iftype)) { in __nl80211_set_channel()
2041 if (wdev->iftype != NL80211_IFTYPE_WDS) in nl80211_set_wds_peer()
[all …]
Dmesh.c108 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) in __cfg80211_join_mesh()
249 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) in __cfg80211_leave_mesh()
Dmlme.c420 if (!(wdev->wiphy->mgmt_stypes[wdev->iftype].rx & BIT(mgmt_type))) in cfg80211_mlme_register_mgmt()
531 if (!(wdev->wiphy->mgmt_stypes[wdev->iftype].tx & BIT(stype >> 4))) in cfg80211_mlme_mgmt_tx()
540 switch (wdev->iftype) { in cfg80211_mlme_mgmt_tx()
559 if (wdev->iftype == NL80211_IFTYPE_ADHOC) in cfg80211_mlme_mgmt_tx()
614 &wiphy->mgmt_stypes[wdev->iftype]; in cfg80211_rx_mgmt()
Dsme.c591 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION && in __cfg80211_connect_result()
592 wdev->iftype != NL80211_IFTYPE_P2P_CLIENT)) { in __cfg80211_connect_result()
732 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION && in __cfg80211_roamed()
733 wdev->iftype != NL80211_IFTYPE_P2P_CLIENT)) in __cfg80211_roamed()
847 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION && in __cfg80211_disconnected()
848 wdev->iftype != NL80211_IFTYPE_P2P_CLIENT)) in __cfg80211_disconnected()
Dcore.h394 enum nl80211_iftype iftype,
449 enum nl80211_iftype iftype, int num);
Dtrace.h2220 enum nl80211_iftype iftype),
2221 TP_ARGS(wiphy, chandef, iftype),
2225 __field(enum nl80211_iftype, iftype)
2230 __entry->iftype = iftype;
2233 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->iftype)
/net/mac80211/
Diface.c250 enum nl80211_iftype iftype) in ieee80211_check_concurrent_iface() argument
271 if (iftype == NL80211_IFTYPE_ADHOC && in ieee80211_check_concurrent_iface()
292 if (!identical_mac_addr_allowed(iftype, in ieee80211_check_concurrent_iface()
299 if (iftype == NL80211_IFTYPE_AP_VLAN && in ieee80211_check_concurrent_iface()
312 enum nl80211_iftype iftype) in ieee80211_check_queues() argument
317 if (iftype != NL80211_IFTYPE_P2P_DEVICE) { in ieee80211_check_queues()
328 if ((iftype != NL80211_IFTYPE_AP && in ieee80211_check_queues()
329 iftype != NL80211_IFTYPE_P2P_GO && in ieee80211_check_queues()
330 iftype != NL80211_IFTYPE_MESH_POINT) || in ieee80211_check_queues()
403 sdata->wdev.iftype = NL80211_IFTYPE_MONITOR; in ieee80211_add_virtual_monitor()
[all …]
Dutil.c2728 WARN_ON((NUM_NL80211_IFTYPES / 8 + 1) > sizeof(cs[0].iftype)); in ieee80211_cs_list_valid()
2739 enum nl80211_iftype iftype) in ieee80211_cs_get() argument
2753 if (!cs || !(cs->iftype & BIT(iftype))) in ieee80211_cs_get()
2761 enum nl80211_iftype iftype) in ieee80211_cs_headroom() argument
2769 iftype); in ieee80211_cs_headroom()
2775 cs = ieee80211_cs_get(local, crypto->cipher_group, iftype); in ieee80211_cs_headroom()
2999 enum nl80211_iftype iftype = sdata->wdev.iftype; in ieee80211_check_combinations() local
3017 if (WARN_ON(iftype >= NUM_NL80211_IFTYPES)) in ieee80211_check_combinations()
3021 if (local->hw.wiphy->software_iftypes & BIT(iftype)) { in ieee80211_check_combinations()
3029 if (iftype != NL80211_IFTYPE_UNSPECIFIED) in ieee80211_check_combinations()
[all …]
Dieee80211_i.h1915 enum nl80211_iftype iftype);
1918 enum nl80211_iftype iftype);
Dchan.c1499 sdata->wdev.iftype); in ieee80211_vif_use_channel()
Dibss.c1641 sdata->wdev.iftype); in ieee80211_ibss_join()