Lines Matching refs:iftype
546 const u8 *addr, enum nl80211_iftype iftype, in ieee80211_data_to_8023_exthdr() argument
577 if (iftype == NL80211_IFTYPE_MESH_POINT && in ieee80211_data_to_8023_exthdr()
586 if (unlikely(iftype != NL80211_IFTYPE_AP && in ieee80211_data_to_8023_exthdr()
587 iftype != NL80211_IFTYPE_AP_VLAN && in ieee80211_data_to_8023_exthdr()
588 iftype != NL80211_IFTYPE_P2P_GO)) in ieee80211_data_to_8023_exthdr()
592 if (unlikely(iftype != NL80211_IFTYPE_MESH_POINT && in ieee80211_data_to_8023_exthdr()
593 iftype != NL80211_IFTYPE_AP_VLAN && in ieee80211_data_to_8023_exthdr()
594 iftype != NL80211_IFTYPE_STATION)) in ieee80211_data_to_8023_exthdr()
596 if (iftype == NL80211_IFTYPE_MESH_POINT) { in ieee80211_data_to_8023_exthdr()
609 if ((iftype != NL80211_IFTYPE_STATION && in ieee80211_data_to_8023_exthdr()
610 iftype != NL80211_IFTYPE_P2P_CLIENT && in ieee80211_data_to_8023_exthdr()
611 iftype != NL80211_IFTYPE_MESH_POINT) || in ieee80211_data_to_8023_exthdr()
615 if (iftype == NL80211_IFTYPE_MESH_POINT) { in ieee80211_data_to_8023_exthdr()
627 if (iftype != NL80211_IFTYPE_ADHOC && in ieee80211_data_to_8023_exthdr()
628 iftype != NL80211_IFTYPE_STATION && in ieee80211_data_to_8023_exthdr()
629 iftype != NL80211_IFTYPE_OCB) in ieee80211_data_to_8023_exthdr()
752 const u8 *addr, enum nl80211_iftype iftype, in ieee80211_amsdu_to_8023s() argument
1020 enum nl80211_iftype otype = dev->ieee80211_ptr->iftype; in cfg80211_change_iface()
1086 WARN_ON(!err && dev->ieee80211_ptr->iftype != ntype); in cfg80211_change_iface()
1943 switch (wdev->iftype) { in cfg80211_wdev_bi()
2000 enum nl80211_iftype iftype, u32 beacon_int) in cfg80211_validate_beacon_int() argument
2024 int i, j, iftype; in cfg80211_iter_combinations() local
2051 for (iftype = 0; iftype < NUM_NL80211_IFTYPES; iftype++) { in cfg80211_iter_combinations()
2052 num_interfaces += params->iftype_num[iftype]; in cfg80211_iter_combinations()
2053 if (params->iftype_num[iftype] > 0 && in cfg80211_iter_combinations()
2054 !cfg80211_iftype_allowed(wiphy, iftype, 0, 1)) in cfg80211_iter_combinations()
2055 used_iftypes |= BIT(iftype); in cfg80211_iter_combinations()
2075 for (iftype = 0; iftype < NUM_NL80211_IFTYPES; iftype++) { in cfg80211_iter_combinations()
2076 if (cfg80211_iftype_allowed(wiphy, iftype, 0, 1)) in cfg80211_iter_combinations()
2080 if (!(limits[j].types & BIT(iftype))) in cfg80211_iter_combinations()
2082 if (limits[j].max < params->iftype_num[iftype]) in cfg80211_iter_combinations()
2084 limits[j].max -= params->iftype_num[iftype]; in cfg80211_iter_combinations()
2432 bool cfg80211_iftype_allowed(struct wiphy *wiphy, enum nl80211_iftype iftype, in cfg80211_iftype_allowed() argument
2436 bool is_vlan = iftype == NL80211_IFTYPE_AP_VLAN; in cfg80211_iftype_allowed()
2442 return wiphy->interface_modes & BIT(iftype); in cfg80211_iftype_allowed()
2444 if (!(wiphy->software_iftypes & BIT(iftype)) && is_vlan) in cfg80211_iftype_allowed()
2446 return wiphy->software_iftypes & BIT(iftype); in cfg80211_iftype_allowed()
2461 switch (wdev->iftype) { in cfg80211_remove_link()
2504 if (wiphy->iftype_ext_capab[i].iftype == type) in cfg80211_get_iftype_ext_capa()