Lines Matching refs:iftype
573 const u8 *addr, enum nl80211_iftype iftype, in ieee80211_data_to_8023_exthdr() argument
606 if (unlikely(iftype != NL80211_IFTYPE_AP && in ieee80211_data_to_8023_exthdr()
607 iftype != NL80211_IFTYPE_AP_VLAN && in ieee80211_data_to_8023_exthdr()
608 iftype != NL80211_IFTYPE_P2P_GO)) in ieee80211_data_to_8023_exthdr()
612 if (unlikely(iftype != NL80211_IFTYPE_MESH_POINT && in ieee80211_data_to_8023_exthdr()
613 iftype != NL80211_IFTYPE_AP_VLAN && in ieee80211_data_to_8023_exthdr()
614 iftype != NL80211_IFTYPE_STATION)) in ieee80211_data_to_8023_exthdr()
618 if ((iftype != NL80211_IFTYPE_STATION && in ieee80211_data_to_8023_exthdr()
619 iftype != NL80211_IFTYPE_P2P_CLIENT && in ieee80211_data_to_8023_exthdr()
620 iftype != NL80211_IFTYPE_MESH_POINT) || in ieee80211_data_to_8023_exthdr()
626 if (iftype != NL80211_IFTYPE_ADHOC && in ieee80211_data_to_8023_exthdr()
627 iftype != NL80211_IFTYPE_STATION && in ieee80211_data_to_8023_exthdr()
628 iftype != NL80211_IFTYPE_OCB) in ieee80211_data_to_8023_exthdr()
633 if (likely(!is_amsdu && iftype != NL80211_IFTYPE_MESH_POINT && in ieee80211_data_to_8023_exthdr()
819 enum nl80211_iftype iftype) in is_amsdu_aggregation_attack() argument
824 if (iftype != NL80211_IFTYPE_MESH_POINT) in is_amsdu_aggregation_attack()
843 const u8 *addr, enum nl80211_iftype iftype, in ieee80211_amsdu_to_8023s() argument
860 if (iftype == NL80211_IFTYPE_MESH_POINT) in ieee80211_amsdu_to_8023s()
873 if (iftype == NL80211_IFTYPE_MESH_POINT) in ieee80211_amsdu_to_8023s()
886 if (offset == 0 && is_amsdu_aggregation_attack(&hdr.eth, skb, iftype)) in ieee80211_amsdu_to_8023s()
918 if (likely(iftype != NL80211_IFTYPE_MESH_POINT && in ieee80211_amsdu_to_8023s()
1179 enum nl80211_iftype otype = dev->ieee80211_ptr->iftype; in cfg80211_change_iface()
1220 WARN_ON(!err && dev->ieee80211_ptr->iftype != ntype); in cfg80211_change_iface()
2354 switch (wdev->iftype) { in cfg80211_wdev_bi()
2419 enum nl80211_iftype iftype, u32 beacon_int) in cfg80211_validate_beacon_int() argument
2445 int i, j, n, iftype; in cfg80211_iter_combinations() local
2476 for (iftype = 0; iftype < NUM_NL80211_IFTYPES; iftype++) { in cfg80211_iter_combinations()
2477 num_interfaces += params->iftype_num[iftype]; in cfg80211_iter_combinations()
2478 if (params->iftype_num[iftype] > 0 && in cfg80211_iter_combinations()
2479 !cfg80211_iftype_allowed(wiphy, iftype, 0, 1)) in cfg80211_iter_combinations()
2480 used_iftypes |= BIT(iftype); in cfg80211_iter_combinations()
2505 for (iftype = 0; iftype < NUM_NL80211_IFTYPES; iftype++) { in cfg80211_iter_combinations()
2506 if (cfg80211_iftype_allowed(wiphy, iftype, 0, 1)) in cfg80211_iter_combinations()
2510 if (!(limits[j].types & BIT(iftype))) in cfg80211_iter_combinations()
2512 if (limits[j].max < params->iftype_num[iftype]) in cfg80211_iter_combinations()
2514 limits[j].max -= params->iftype_num[iftype]; in cfg80211_iter_combinations()
2899 bool cfg80211_iftype_allowed(struct wiphy *wiphy, enum nl80211_iftype iftype, in cfg80211_iftype_allowed() argument
2903 bool is_vlan = iftype == NL80211_IFTYPE_AP_VLAN; in cfg80211_iftype_allowed()
2909 return wiphy->interface_modes & BIT(iftype); in cfg80211_iftype_allowed()
2911 if (!(wiphy->software_iftypes & BIT(iftype)) && is_vlan) in cfg80211_iftype_allowed()
2913 return wiphy->software_iftypes & BIT(iftype); in cfg80211_iftype_allowed()
2928 switch (wdev->iftype) { in cfg80211_remove_link()
2952 if (wdev->iftype != NL80211_IFTYPE_AP) in cfg80211_remove_links()
2975 if (wiphy->iftype_ext_capab[i].iftype == type) in cfg80211_get_iftype_ext_capa()