Lines Matching refs:wiphy

242 	WARN_ON(request != wiphy_to_rdev(request->wiphy)->scan_req);  in cfg80211_scan_done()
246 queue_work(cfg80211_wq, &wiphy_to_rdev(request->wiphy)->scan_done_wk); in cfg80211_scan_done()
278 void cfg80211_sched_scan_results(struct wiphy *wiphy) in cfg80211_sched_scan_results() argument
280 trace_cfg80211_sched_scan_results(wiphy); in cfg80211_sched_scan_results()
283 if (rcu_access_pointer(wiphy_to_rdev(wiphy)->sched_scan_req)) in cfg80211_sched_scan_results()
285 &wiphy_to_rdev(wiphy)->sched_scan_results_wk); in cfg80211_sched_scan_results()
289 void cfg80211_sched_scan_stopped_rtnl(struct wiphy *wiphy) in cfg80211_sched_scan_stopped_rtnl() argument
291 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_sched_scan_stopped_rtnl()
295 trace_cfg80211_sched_scan_stopped(wiphy); in cfg80211_sched_scan_stopped_rtnl()
301 void cfg80211_sched_scan_stopped(struct wiphy *wiphy) in cfg80211_sched_scan_stopped() argument
304 cfg80211_sched_scan_stopped_rtnl(wiphy); in cfg80211_sched_scan_stopped()
581 struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, in cfg80211_get_bss() argument
588 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_get_bss()
593 trace_cfg80211_get_bss(wiphy, channel, bssid, ssid, ssid_len, bss_type, in cfg80211_get_bss()
852 new = kzalloc(sizeof(*new) + rdev->wiphy.bss_priv_size, in cfg80211_bss_update()
909 cfg80211_get_bss_channel(struct wiphy *wiphy, const u8 *ie, size_t ielen, in cfg80211_get_bss_channel() argument
932 channel = ieee80211_get_channel(wiphy, freq); in cfg80211_get_bss_channel()
942 cfg80211_inform_bss_width(struct wiphy *wiphy, in cfg80211_inform_bss_width() argument
956 if (WARN_ON(!wiphy)) in cfg80211_inform_bss_width()
959 if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC && in cfg80211_inform_bss_width()
963 channel = cfg80211_get_bss_channel(wiphy, ie, ielen, rx_channel); in cfg80211_inform_bss_width()
1003 wiphy->max_adj_channel_rssi_comp; in cfg80211_inform_bss_width()
1004 res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid); in cfg80211_inform_bss_width()
1012 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_width()
1015 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_width()
1026 cfg80211_inform_bss_width_frame(struct wiphy *wiphy, in cfg80211_inform_bss_width_frame() argument
1043 trace_cfg80211_inform_bss_width_frame(wiphy, rx_channel, scan_width, mgmt, in cfg80211_inform_bss_width_frame()
1049 if (WARN_ON(!wiphy)) in cfg80211_inform_bss_width_frame()
1052 if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC && in cfg80211_inform_bss_width_frame()
1059 channel = cfg80211_get_bss_channel(wiphy, mgmt->u.beacon.variable, in cfg80211_inform_bss_width_frame()
1086 wiphy->max_adj_channel_rssi_comp; in cfg80211_inform_bss_width_frame()
1087 res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid); in cfg80211_inform_bss_width_frame()
1095 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_width_frame()
1098 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_width_frame()
1107 void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_ref_bss() argument
1109 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_ref_bss()
1123 void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_put_bss() argument
1125 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_put_bss()
1139 void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_unlink_bss() argument
1141 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_unlink_bss()
1171 rdev = wiphy_to_rdev(dev->ieee80211_ptr->wiphy); in cfg80211_get_dev_from_ifindex()
1183 struct wiphy *wiphy; in cfg80211_wext_siwscan() local
1205 wiphy = &rdev->wiphy; in cfg80211_wext_siwscan()
1211 n_channels = ieee80211_get_num_supported_channels(wiphy); in cfg80211_wext_siwscan()
1221 creq->wiphy = wiphy; in cfg80211_wext_siwscan()
1234 if (!wiphy->bands[band]) in cfg80211_wext_siwscan()
1237 for (j = 0; j < wiphy->bands[band]->n_channels; j++) { in cfg80211_wext_siwscan()
1239 if (wiphy->bands[band]->channels[j].flags & in cfg80211_wext_siwscan()
1249 int wiphy_freq = wiphy->bands[band]->channels[j].center_freq; in cfg80211_wext_siwscan()
1263 creq->channels[i] = &wiphy->bands[band]->channels[j]; in cfg80211_wext_siwscan()
1292 if (wiphy->bands[i]) in cfg80211_wext_siwscan()
1293 creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1; in cfg80211_wext_siwscan()
1360 ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info, in ieee80211_bss() argument
1399 if (wiphy->signal_type != CFG80211_SIGNAL_TYPE_NONE) { in ieee80211_bss()
1405 switch (wiphy->signal_type) { in ieee80211_bss()
1636 current_ev = ieee80211_bss(&rdev->wiphy, info, bss, in ieee80211_scan_results()