Lines Matching defs:wiphy
167 struct ieee80211_channel *ieee80211_get_channel_khz(struct wiphy *wiphy,
175 sband = wiphy->bands[band];
257 void ieee80211_set_bitrate_flags(struct wiphy *wiphy)
262 if (wiphy->bands[band])
263 set_mandatory_flags_band(wiphy->bands[band]);
266 bool cfg80211_supported_cipher_suite(struct wiphy *wiphy, u32 cipher)
269 for (i = 0; i < wiphy->n_cipher_suites; i++)
270 if (cipher == wiphy->cipher_suites[i])
278 struct wiphy *wiphy = &rdev->wiphy;
281 for (i = 0; i < wiphy->n_cipher_suites; i++) {
282 switch (wiphy->cipher_suites[i]) {
301 else if (wiphy_ext_feature_isset(&rdev->wiphy,
303 wiphy_ext_feature_isset(&rdev->wiphy,
324 if (!pairwise && mac_addr && !(rdev->wiphy.flags & WIPHY_FLAG_IBSS_RSN))
351 if (wiphy_ext_feature_isset(&rdev->wiphy,
454 if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher))
924 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy);
984 __cfg80211_leave(wiphy_to_rdev(wdev->wiphy), wdev);
1005 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list)
1028 !(rdev->wiphy.interface_modes & (1 << ntype)))
1769 static void cfg80211_calculate_bi_data(struct wiphy *wiphy, u32 new_beacon_int,
1778 list_for_each_entry(wdev, &wiphy->wdev_list, list) {
1818 int cfg80211_iter_combinations(struct wiphy *wiphy,
1842 cfg80211_calculate_bi_data(wiphy, params->new_beacon_int,
1856 !cfg80211_iftype_allowed(wiphy, iftype, 0, 1))
1860 for (i = 0; i < wiphy->n_iface_combinations; i++) {
1865 c = &wiphy->iface_combinations[i];
1878 if (cfg80211_iftype_allowed(wiphy, iftype, 0, 1))
1935 int cfg80211_check_combinations(struct wiphy *wiphy,
1940 err = cfg80211_iter_combinations(wiphy, params,
1989 unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy)
1995 if (wiphy->bands[band])
1996 n_channels += wiphy->bands[band]->n_channels;
2012 rdev = wiphy_to_rdev(wdev->wiphy);
2234 bool cfg80211_iftype_allowed(struct wiphy *wiphy, enum nl80211_iftype iftype,
2243 return wiphy->flags & WIPHY_FLAG_4ADDR_AP;
2244 return wiphy->interface_modes & BIT(iftype);
2246 if (!(wiphy->software_iftypes & BIT(iftype)) && is_vlan)
2247 return wiphy->flags & WIPHY_FLAG_4ADDR_AP;
2248 return wiphy->software_iftypes & BIT(iftype);