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()
277 void cfg80211_sched_scan_results(struct wiphy *wiphy) in cfg80211_sched_scan_results() argument
279 trace_cfg80211_sched_scan_results(wiphy); in cfg80211_sched_scan_results()
282 if (rcu_access_pointer(wiphy_to_rdev(wiphy)->sched_scan_req)) in cfg80211_sched_scan_results()
284 &wiphy_to_rdev(wiphy)->sched_scan_results_wk); in cfg80211_sched_scan_results()
288 void cfg80211_sched_scan_stopped_rtnl(struct wiphy *wiphy) in cfg80211_sched_scan_stopped_rtnl() argument
290 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_sched_scan_stopped_rtnl()
294 trace_cfg80211_sched_scan_stopped(wiphy); in cfg80211_sched_scan_stopped_rtnl()
300 void cfg80211_sched_scan_stopped(struct wiphy *wiphy) in cfg80211_sched_scan_stopped() argument
303 cfg80211_sched_scan_stopped_rtnl(wiphy); in cfg80211_sched_scan_stopped()
580 struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, in cfg80211_get_bss() argument
587 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_get_bss()
592 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_data(struct wiphy *wiphy, in cfg80211_inform_bss_data() argument
955 if (WARN_ON(!wiphy)) in cfg80211_inform_bss_data()
958 if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC && in cfg80211_inform_bss_data()
962 channel = cfg80211_get_bss_channel(wiphy, ie, ielen, data->chan); in cfg80211_inform_bss_data()
1004 wiphy->max_adj_channel_rssi_comp; in cfg80211_inform_bss_data()
1005 res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid); in cfg80211_inform_bss_data()
1013 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_data()
1016 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_data()
1027 cfg80211_inform_bss_frame_data(struct wiphy *wiphy, in cfg80211_inform_bss_frame_data() argument
1044 trace_cfg80211_inform_bss_frame(wiphy, data, mgmt, len); in cfg80211_inform_bss_frame_data()
1049 if (WARN_ON(!wiphy)) in cfg80211_inform_bss_frame_data()
1052 if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC && in cfg80211_inform_bss_frame_data()
1059 channel = cfg80211_get_bss_channel(wiphy, mgmt->u.beacon.variable, in cfg80211_inform_bss_frame_data()
1087 wiphy->max_adj_channel_rssi_comp; in cfg80211_inform_bss_frame_data()
1088 res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid); in cfg80211_inform_bss_frame_data()
1096 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_frame_data()
1099 regulatory_hint_found_beacon(wiphy, channel, gfp); in cfg80211_inform_bss_frame_data()
1108 void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_ref_bss() argument
1110 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_ref_bss()
1124 void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_put_bss() argument
1126 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_put_bss()
1140 void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_unlink_bss() argument
1142 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_unlink_bss()
1172 rdev = wiphy_to_rdev(dev->ieee80211_ptr->wiphy); in cfg80211_get_dev_from_ifindex()
1184 struct wiphy *wiphy; in cfg80211_wext_siwscan() local
1206 wiphy = &rdev->wiphy; in cfg80211_wext_siwscan()
1212 n_channels = ieee80211_get_num_supported_channels(wiphy); in cfg80211_wext_siwscan()
1222 creq->wiphy = wiphy; in cfg80211_wext_siwscan()
1235 if (!wiphy->bands[band]) in cfg80211_wext_siwscan()
1238 for (j = 0; j < wiphy->bands[band]->n_channels; j++) { in cfg80211_wext_siwscan()
1240 if (wiphy->bands[band]->channels[j].flags & in cfg80211_wext_siwscan()
1250 int wiphy_freq = wiphy->bands[band]->channels[j].center_freq; in cfg80211_wext_siwscan()
1264 creq->channels[i] = &wiphy->bands[band]->channels[j]; in cfg80211_wext_siwscan()
1293 if (wiphy->bands[i]) in cfg80211_wext_siwscan()
1294 creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1; in cfg80211_wext_siwscan()
1361 ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info, in ieee80211_bss() argument
1400 if (wiphy->signal_type != CFG80211_SIGNAL_TYPE_NONE) { in ieee80211_bss()
1406 switch (wiphy->signal_type) { in ieee80211_bss()
1637 current_ev = ieee80211_bss(&rdev->wiphy, info, bss, in ieee80211_scan_results()