Home
last modified time | relevance | path

Searched refs:wiphy (Results 1 – 200 of 250) sorted by relevance

12

/linux-4.1.27/net/wireless/
Drdev-ops.h13 trace_rdev_suspend(&rdev->wiphy, wowlan); in rdev_suspend()
14 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend()
15 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend()
22 trace_rdev_resume(&rdev->wiphy); in rdev_resume()
23 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume()
24 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume()
31 trace_rdev_set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
32 rdev->ops->set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
33 trace_rdev_return_void(&rdev->wiphy); in rdev_set_wakeup()
43 trace_rdev_add_virtual_intf(&rdev->wiphy, name, type); in rdev_add_virtual_intf()
[all …]
Dcore.c70 int get_wiphy_idx(struct wiphy *wiphy) in get_wiphy_idx() argument
72 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in get_wiphy_idx()
77 struct wiphy *wiphy_idx_to_wiphy(int wiphy_idx) in wiphy_idx_to_wiphy()
86 return &rdev->wiphy; in wiphy_idx_to_wiphy()
114 if (strcmp(newname, wiphy_name(&rdev2->wiphy)) == 0) in cfg80211_dev_check_name()
128 if (strcmp(newname, wiphy_name(&rdev->wiphy)) == 0) in cfg80211_dev_rename()
135 result = device_rename(&rdev->wiphy.dev, newname); in cfg80211_dev_rename()
139 if (rdev->wiphy.debugfsdir && in cfg80211_dev_rename()
140 !debugfs_rename(rdev->wiphy.debugfsdir->d_parent, in cfg80211_dev_rename()
141 rdev->wiphy.debugfsdir, in cfg80211_dev_rename()
[all …]
Dtrace.h26 #define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME)
217 TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow),
218 TP_ARGS(wiphy, wow),
255 TP_PROTO(struct wiphy *wiphy, int ret),
256 TP_ARGS(wiphy, ret),
269 TP_PROTO(struct wiphy *wiphy, struct cfg80211_scan_request *request),
270 TP_ARGS(wiphy, request),
281 TP_PROTO(struct wiphy *wiphy),
282 TP_ARGS(wiphy),
293 TP_PROTO(struct wiphy *wiphy),
[all …]
Dreg.c148 const struct ieee80211_regdomain *get_wiphy_regdom(struct wiphy *wiphy) in get_wiphy_regdom() argument
150 return rtnl_dereference(wiphy->regd); in get_wiphy_regdom()
168 enum nl80211_dfs_regions reg_get_dfs_region(struct wiphy *wiphy) in reg_get_dfs_region() argument
174 if (!wiphy) in reg_get_dfs_region()
177 wiphy_regd = get_wiphy_regdom(wiphy); in reg_get_dfs_region()
187 dev_name(&wiphy->dev), in reg_get_dfs_region()
581 static const struct ieee80211_regdomain *reg_get_regdomain(struct wiphy *wiphy) in reg_get_regdomain() argument
591 wiphy->regd) in reg_get_regdomain()
592 return get_wiphy_regdom(wiphy); in reg_get_regdomain()
1006 freq_reg_info_regd(struct wiphy *wiphy, u32 center_freq, in freq_reg_info_regd() argument
[all …]
Dsysfs.c24 return container_of(dev, struct cfg80211_registered_device, wiphy.dev); in dev_to_rdev()
37 SHOW_FMT(macaddress, "%pM", wiphy.perm_addr);
38 SHOW_FMT(address_mask, "%pM", wiphy.addr_mask);
43 struct wiphy *wiphy = &dev_to_rdev(dev)->wiphy; in name_show() local
44 return sprintf(buf, "%s\n", dev_name(&wiphy->dev)); in name_show()
52 struct wiphy *wiphy = &dev_to_rdev(dev)->wiphy; in addresses_show() local
56 if (!wiphy->addresses) in addresses_show()
57 return sprintf(buf, "%pM\n", wiphy->perm_addr); in addresses_show()
59 for (i = 0; i < wiphy->n_addresses; i++) in addresses_show()
60 buf += sprintf(buf, "%pM\n", &wiphy->addresses[i].addr); in addresses_show()
[all …]
Dchan.c240 static void cfg80211_set_chans_dfs_state(struct wiphy *wiphy, u32 center_freq, in cfg80211_set_chans_dfs_state() argument
250 c = ieee80211_get_channel(wiphy, freq); in cfg80211_set_chans_dfs_state()
259 void cfg80211_set_dfs_state(struct wiphy *wiphy, in cfg80211_set_dfs_state() argument
272 cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq1, in cfg80211_set_dfs_state()
277 cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq2, in cfg80211_set_dfs_state()
307 static int cfg80211_get_chans_dfs_required(struct wiphy *wiphy, in cfg80211_get_chans_dfs_required() argument
318 c = ieee80211_get_channel(wiphy, freq); in cfg80211_get_chans_dfs_required()
329 int cfg80211_chandef_dfs_required(struct wiphy *wiphy, in cfg80211_chandef_dfs_required() argument
348 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
359 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
[all …]
Dreg.h29 enum nl80211_dfs_regions reg_get_dfs_region(struct wiphy *wiphy);
48 void wiphy_regulatory_register(struct wiphy *wiphy);
49 void wiphy_regulatory_deregister(struct wiphy *wiphy);
61 const struct ieee80211_regdomain *get_wiphy_regdom(struct wiphy *wiphy);
81 int regulatory_hint_found_beacon(struct wiphy *wiphy,
106 void regulatory_hint_country_ie(struct wiphy *wiphy,
Dmlme.c25 struct wiphy *wiphy = wdev->wiphy; in cfg80211_rx_assoc_resp() local
26 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_assoc_resp()
42 cfg80211_put_bss(wiphy, bss); in cfg80211_rx_assoc_resp()
57 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth()
66 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth()
85 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_disassoc()
125 struct wiphy *wiphy = wdev->wiphy; in cfg80211_auth_timeout() local
126 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_auth_timeout()
138 struct wiphy *wiphy = wdev->wiphy; in cfg80211_assoc_timeout() local
139 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_assoc_timeout()
[all …]
Dcore.h98 struct wiphy wiphy __aligned(NETDEV_ALIGN);
102 struct cfg80211_registered_device *wiphy_to_rdev(struct wiphy *wiphy) in wiphy_to_rdev() argument
104 BUG_ON(!wiphy); in wiphy_to_rdev()
105 return container_of(wiphy, struct cfg80211_registered_device, wiphy); in wiphy_to_rdev()
114 if (!rdev->wiphy.wowlan_config) in cfg80211_rdev_free_wowlan()
116 for (i = 0; i < rdev->wiphy.wowlan_config->n_patterns; i++) in cfg80211_rdev_free_wowlan()
117 kfree(rdev->wiphy.wowlan_config->patterns[i].mask); in cfg80211_rdev_free_wowlan()
118 kfree(rdev->wiphy.wowlan_config->patterns); in cfg80211_rdev_free_wowlan()
119 if (rdev->wiphy.wowlan_config->tcp && in cfg80211_rdev_free_wowlan()
120 rdev->wiphy.wowlan_config->tcp->sock) in cfg80211_rdev_free_wowlan()
[all …]
Ddebugfs.c20 struct wiphy *wiphy= file->private_data; \
35 wiphy->rts_threshold)
37 wiphy->frag_threshold);
39 wiphy->retry_short)
41 wiphy->retry_long);
69 struct wiphy *wiphy = file->private_data; in ht40allow_map_read() local
82 sband = wiphy->bands[band]; in ht40allow_map_read()
106 debugfs_create_file(#name, S_IRUGO, phyd, &rdev->wiphy, &name## _ops);
110 struct dentry *phyd = rdev->wiphy.debugfsdir; in cfg80211_debugfs_rdev_add()
Dscan.c242 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
[all …]
Dsme.c62 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_conn_scan()
75 n_channels = ieee80211_get_num_supported_channels(wdev->wiphy); in cfg80211_conn_scan()
86 wdev->wiphy->bands[band]; in cfg80211_conn_scan()
101 bands = wdev->wiphy->bands[band]; in cfg80211_conn_scan()
123 request->wiphy = &rdev->wiphy; in cfg80211_conn_scan()
142 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_conn_do_work()
258 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_get_conn_bss()
263 bss = cfg80211_get_bss(wdev->wiphy, wdev->conn->params.channel, in cfg80211_get_conn_bss()
284 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in __cfg80211_sme_scan_done()
298 cfg80211_put_bss(&rdev->wiphy, bss); in __cfg80211_sme_scan_done()
[all …]
Dnl80211.c99 if (wiphy_net(&rdev->wiphy) != netns) in __cfg80211_wdev_from_attrs()
173 netdev->ieee80211_ptr->wiphy); in __cfg80211_rdev_from_attrs()
192 if (netns != wiphy_net(&rdev->wiphy)) in __cfg80211_rdev_from_attrs()
503 *rdev = wiphy_to_rdev((*wdev)->wiphy); in nl80211_prepare_wdev_dump()
509 struct wiphy *wiphy = wiphy_idx_to_wiphy(cb->args[0] - 1); in nl80211_prepare_wdev_dump() local
512 if (!wiphy) { in nl80211_prepare_wdev_dump()
516 *rdev = wiphy_to_rdev(wiphy); in nl80211_prepare_wdev_dump()
905 static struct ieee80211_channel *nl80211_get_valid_chan(struct wiphy *wiphy, in nl80211_get_valid_chan() argument
912 chan = ieee80211_get_channel(wiphy, nla_get_u32(tb)); in nl80211_get_valid_chan()
941 static int nl80211_put_iface_combinations(struct wiphy *wiphy, in nl80211_put_iface_combinations() argument
[all …]
Dwext-compat.c35 sband = wdev->wiphy->bands[IEEE80211_BAND_5GHZ]; in cfg80211_wext_giwname()
41 sband = wdev->wiphy->bands[IEEE80211_BAND_2GHZ]; in cfg80211_wext_giwname()
76 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwmode()
170 switch (wdev->wiphy->signal_type) { in cfg80211_wext_giwrange()
194 for (i = 0; i < wdev->wiphy->n_cipher_suites; i++) { in cfg80211_wext_giwrange()
195 switch (wdev->wiphy->cipher_suites[i]) { in cfg80211_wext_giwrange()
221 sband = wdev->wiphy->bands[band]; in cfg80211_wext_giwrange()
246 if (wdev->wiphy->max_scan_ssids > 0) in cfg80211_wext_giwrange()
289 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwrts()
290 u32 orts = wdev->wiphy->rts_threshold; in cfg80211_wext_siwrts()
[all …]
Dethtool.c10 strlcpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name, in cfg80211_get_drvinfo()
15 if (wdev->wiphy->fw_version[0]) in cfg80211_get_drvinfo()
16 strlcpy(info->fw_version, wdev->wiphy->fw_version, in cfg80211_get_drvinfo()
21 strlcpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)), in cfg80211_get_drvinfo()
Dutil.c116 struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, in __ieee80211_get_channel() argument
124 sband = wiphy->bands[band]; in __ieee80211_get_channel()
199 void ieee80211_set_bitrate_flags(struct wiphy *wiphy) in ieee80211_set_bitrate_flags() argument
204 if (wiphy->bands[band]) in ieee80211_set_bitrate_flags()
205 set_mandatory_flags_band(wiphy->bands[band], band); in ieee80211_set_bitrate_flags()
208 bool cfg80211_supported_cipher_suite(struct wiphy *wiphy, u32 cipher) in cfg80211_supported_cipher_suite() argument
211 for (i = 0; i < wiphy->n_cipher_suites; i++) in cfg80211_supported_cipher_suite()
212 if (cipher == wiphy->cipher_suites[i]) in cfg80211_supported_cipher_suite()
224 if (!pairwise && mac_addr && !(rdev->wiphy.flags & WIPHY_FLAG_IBSS_RSN)) in cfg80211_validate_key_settings()
334 if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher)) in cfg80211_validate_key_settings()
[all …]
Dibss.c32 bss = cfg80211_get_bss(wdev->wiphy, channel, bssid, NULL, 0, in __cfg80211_ibss_joined()
40 cfg80211_put_bss(wdev->wiphy, &wdev->current_bss->pub); in __cfg80211_ibss_joined()
48 nl80211_send_ibss_bssid(wiphy_to_rdev(wdev->wiphy), dev, bssid, in __cfg80211_ibss_joined()
61 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_ibss_joined()
105 rdev->wiphy.bands[params->chandef.chan->band]; in __cfg80211_join_ibss()
159 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in __cfg80211_clear_ibss()
179 cfg80211_put_bss(wdev->wiphy, &wdev->current_bss->pub); in __cfg80211_clear_ibss()
255 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join()
314 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_ibss_wext_siwfreq()
330 chan = ieee80211_get_channel(wdev->wiphy, freq); in cfg80211_ibss_wext_siwfreq()
[all …]
Dwext-sme.c70 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgd_wext_siwfreq()
83 chan = ieee80211_get_channel(wdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq()
125 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq()
172 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgd_wext_siwessid()
263 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgd_wext_siwap()
336 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwgenie()
393 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwmlme()
Dmesh.c111 if (!(rdev->wiphy.flags & WIPHY_FLAG_MESH_AUTH) && in __cfg80211_join_mesh()
138 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
171 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
177 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef, in __cfg80211_join_mesh()
Dnl80211.h74 nl80211_send_beacon_hint_event(struct wiphy *wiphy,
Dwext-core.c649 dev->ieee80211_ptr->wiphy && in get_wireless_stats()
650 dev->ieee80211_ptr->wiphy->wext && in get_wireless_stats()
651 dev->ieee80211_ptr->wiphy->wext->get_wireless_stats) in get_wireless_stats()
652 return dev->ieee80211_ptr->wiphy->wext->get_wireless_stats(dev); in get_wireless_stats()
688 if (dev->ieee80211_ptr && dev->ieee80211_ptr->wiphy) in get_handler()
689 handlers = dev->ieee80211_ptr->wiphy->wext; in get_handler()
/linux-4.1.27/include/net/
Dcfg80211.h63 struct wiphy;
484 bool cfg80211_chandef_usable(struct wiphy *wiphy,
496 int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
897 int cfg80211_check_station_change(struct wiphy *wiphy,
1469 struct wiphy *wiphy; member
1552 struct wiphy *wiphy; member
2453 int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow);
2454 int (*resume)(struct wiphy *wiphy);
2455 void (*set_wakeup)(struct wiphy *wiphy, bool enabled);
2457 struct wireless_dev * (*add_virtual_intf)(struct wiphy *wiphy,
[all …]
Dmac80211.h1966 struct wiphy *wiphy; member
2046 struct ieee80211_hw *wiphy_to_ieee80211_hw(struct wiphy *wiphy);
2056 set_wiphy_dev(hw->wiphy, dev); in SET_IEEE80211_DEV()
2067 memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN); in SET_IEEE80211_PERM_ADDR()
2076 return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx]; in ieee80211_get_tx_rate()
2085 return &hw->wiphy->bands[c->band]->bitrates[c->control.rts_cts_rate_idx]; in ieee80211_get_rts_cts_rate()
2094 return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[idx + 1].idx]; in ieee80211_get_alt_retry_rate()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dcfg.c24 void orinoco_wiphy_init(struct wiphy *wiphy) in orinoco_wiphy_init() argument
26 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_wiphy_init()
28 wiphy->privid = orinoco_wiphy_privid; in orinoco_wiphy_init()
30 set_wiphy_dev(wiphy, priv->dev); in orinoco_wiphy_init()
34 int orinoco_wiphy_register(struct wiphy *wiphy) in orinoco_wiphy_register() argument
36 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_wiphy_register()
40 wiphy->max_scan_ssids = 1; in orinoco_wiphy_register()
42 wiphy->max_scan_ssids = 0; in orinoco_wiphy_register()
44 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in orinoco_wiphy_register()
50 wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC); in orinoco_wiphy_register()
[all …]
Dcfg.h12 void orinoco_wiphy_init(struct wiphy *wiphy);
13 int orinoco_wiphy_register(struct wiphy *wiphy);
Dscan.c77 struct wiphy *wiphy = priv_to_wiphy(priv); in orinoco_add_hostscan_result() local
115 channel = ieee80211_get_channel(wiphy, freq); in orinoco_add_hostscan_result()
126 cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, in orinoco_add_hostscan_result()
130 cfg80211_put_bss(wiphy, cbss); in orinoco_add_hostscan_result()
137 struct wiphy *wiphy = priv_to_wiphy(priv); in orinoco_add_extscan_result() local
152 channel = ieee80211_get_channel(wiphy, freq); in orinoco_add_extscan_result()
160 cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, in orinoco_add_extscan_result()
164 cfg80211_put_bss(wiphy, cbss); in orinoco_add_extscan_result()
Dmain.c2031 struct wiphy *wiphy = priv_to_wiphy(priv); in orinoco_init() local
2047 err = determine_fw_capabilities(priv, wiphy->fw_version, in orinoco_init()
2048 sizeof(wiphy->fw_version), in orinoco_init()
2049 &wiphy->hw_version); in orinoco_init()
2065 err = determine_fw_capabilities(priv, wiphy->fw_version, in orinoco_init()
2066 sizeof(wiphy->fw_version), in orinoco_init()
2067 &wiphy->hw_version); in orinoco_init()
2090 err = orinoco_hw_read_card_settings(priv, wiphy->perm_addr); in orinoco_init()
2116 if (orinoco_wiphy_register(wiphy)) { in orinoco_init()
2178 struct wiphy *wiphy; in alloc_orinocodev() local
[all …]
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dregd.c142 static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy, in _rtl_reg_apply_beaconing_flags() argument
153 if (!wiphy->bands[band]) in _rtl_reg_apply_beaconing_flags()
156 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()
164 reg_rule = freq_reg_info(wiphy, in _rtl_reg_apply_beaconing_flags()
193 static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy, in _rtl_reg_apply_active_scan_flags() argument
201 if (!wiphy->bands[IEEE80211_BAND_2GHZ]) in _rtl_reg_apply_active_scan_flags()
203 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in _rtl_reg_apply_active_scan_flags()
227 reg_rule = freq_reg_info(wiphy, ch->center_freq); in _rtl_reg_apply_active_scan_flags()
235 reg_rule = freq_reg_info(wiphy, ch->center_freq); in _rtl_reg_apply_active_scan_flags()
247 static void _rtl_reg_apply_radar_flags(struct wiphy *wiphy) in _rtl_reg_apply_radar_flags() argument
[all …]
Dregd.h58 void (*reg_notifier) (struct wiphy *wiphy,
60 void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
Dbase.c342 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in _rtl_init_mac80211()
358 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband; in _rtl_init_mac80211()
374 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in _rtl_init_mac80211()
390 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband; in _rtl_init_mac80211()
411 hw->wiphy->interface_modes = in _rtl_init_mac80211()
418 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; in _rtl_init_mac80211()
420 hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; in _rtl_init_mac80211()
422 hw->wiphy->rts_threshold = 2347; in _rtl_init_mac80211()
445 hw->wiphy->wowlan = &rtlpriv->wowlan; in _rtl_init_mac80211()
508 wiphy_rfkill_set_hw_state(hw->wiphy, 0); in rtl_init_rfkill()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/
Dregd.c262 static void ath_force_clear_no_ir_chan(struct wiphy *wiphy, in ath_force_clear_no_ir_chan() argument
267 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
276 static void ath_force_clear_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_clear_no_ir_freq() argument
280 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_clear_no_ir_freq()
284 ath_force_clear_no_ir_chan(wiphy, ch); in ath_force_clear_no_ir_freq()
292 static void ath_force_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_no_ir_freq() argument
296 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_no_ir_freq()
304 __ath_reg_apply_beaconing_flags(struct wiphy *wiphy, in __ath_reg_apply_beaconing_flags() argument
315 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags()
319 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags()
[all …]
Dtrace.h35 TP_PROTO(struct wiphy *wiphy,
38 TP_ARGS(wiphy, vaf),
41 __string(device, wiphy_name(wiphy))
47 __assign_str(device, wiphy_name(wiphy));
Dregd.h254 int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy,
255 void (*reg_notifier)(struct wiphy *wiphy,
259 void ath_reg_notifier_apply(struct wiphy *wiphy,
Dmain.c82 if (common && common->hw && common->hw->wiphy) { in ath_printk()
84 level, wiphy_name(common->hw->wiphy), &vaf); in ath_printk()
85 trace_ath_log(common->hw->wiphy, &vaf); in ath_printk()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dcfg80211.c174 static int wil_cfg80211_get_station(struct wiphy *wiphy, in wil_cfg80211_get_station() argument
178 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_get_station()
210 static int wil_cfg80211_dump_station(struct wiphy *wiphy, in wil_cfg80211_dump_station() argument
214 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_dump_station()
229 static int wil_cfg80211_change_iface(struct wiphy *wiphy, in wil_cfg80211_change_iface() argument
234 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_iface()
259 static int wil_cfg80211_scan(struct wiphy *wiphy, in wil_cfg80211_scan() argument
262 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_scan()
379 static int wil_cfg80211_connect(struct wiphy *wiphy, in wil_cfg80211_connect() argument
383 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_connect()
[all …]
Dnetdev.c158 ch = wdev->wiphy->bands[IEEE80211_BAND_60GHZ]->channels; in wil_if_alloc()
174 SET_NETDEV_DEV(ndev, wiphy_dev(wdev->wiphy)); in wil_if_alloc()
Dwmi.c293 snprintf(wdev->wiphy->fw_version, sizeof(wdev->wiphy->fw_version), in wmi_evt_ready()
311 struct wiphy *wiphy = wil_to_wiphy(wil); in wmi_evt_rx_mgmt() local
317 struct ieee80211_channel *channel = ieee80211_get_channel(wiphy, freq); in wmi_evt_rx_mgmt()
350 bss = cfg80211_inform_bss_frame(wiphy, channel, rx_mgmt_frame, in wmi_evt_rx_mgmt()
355 cfg80211_put_bss(wiphy, bss); in wmi_evt_rx_mgmt()
Dwil6210.h615 #define wil_to_wiphy(i) (i->wdev->wiphy)
736 int wil_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
Ddebugfs.c711 struct wiphy *wiphy = wil_to_wiphy(wil); in wil_write_file_txmgmt() local
729 rc = wil_cfg80211_mgmt_tx(wiphy, wdev, &params, NULL); in wil_write_file_txmgmt()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dcfg80211.c90 static void *mwifiex_cfg80211_get_adapter(struct wiphy *wiphy) in mwifiex_cfg80211_get_adapter() argument
92 return (void *) (*(unsigned long *) wiphy_priv(wiphy)); in mwifiex_cfg80211_get_adapter()
99 mwifiex_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev, in mwifiex_cfg80211_del_key() argument
107 wiphy_err(wiphy, "deleting the crypto keys\n"); in mwifiex_cfg80211_del_key()
111 wiphy_dbg(wiphy, "info: crypto keys deleted\n"); in mwifiex_cfg80211_del_key()
154 mwifiex_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, in mwifiex_cfg80211_mgmt_tx() argument
166 wiphy_err(wiphy, "invalid buffer and length\n"); in mwifiex_cfg80211_mgmt_tx()
175 wiphy_dbg(wiphy, in mwifiex_cfg80211_mgmt_tx()
186 wiphy_err(wiphy, "allocate skb failed for management frame\n"); in mwifiex_cfg80211_mgmt_tx()
209 wiphy_dbg(wiphy, "info: management frame transmitted\n"); in mwifiex_cfg80211_mgmt_tx()
[all …]
Dcfp.c325 sband = priv->wdev.wiphy->bands[IEEE80211_BAND_2GHZ]; in mwifiex_get_cfp()
327 sband = priv->wdev.wiphy->bands[IEEE80211_BAND_5GHZ]; in mwifiex_get_cfp()
393 struct wiphy *wiphy = priv->adapter->wiphy; in mwifiex_get_rates_from_cfg80211() local
400 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
405 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in mwifiex_get_rates_from_cfg80211()
Dmain.c522 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM, in mwifiex_fw_dpc()
531 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "uap%d", NET_NAME_ENUM, in mwifiex_fw_dpc()
541 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d", NET_NAME_ENUM, in mwifiex_fw_dpc()
558 wiphy_unregister(adapter->wiphy); in mwifiex_fw_dpc()
559 wiphy_free(adapter->wiphy); in mwifiex_fw_dpc()
1259 mwifiex_del_virtual_intf(adapter->wiphy, &priv->wdev); in mwifiex_remove_card()
1263 wiphy_unregister(adapter->wiphy); in mwifiex_remove_card()
1264 wiphy_free(adapter->wiphy); in mwifiex_remove_card()
D11h.c52 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_11h_process_infra_join()
247 cfg80211_radar_event(priv->adapter->wiphy, &priv->dfs_chandef, in mwifiex_11h_handle_radar_detected()
Dmain.h761 struct wiphy *wiphy; member
1336 struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
1342 int mwifiex_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev);
Dsta_ioctl.c222 wiphy_dbg(priv->wdev.wiphy, in mwifiex_process_country_ie()
244 wiphy_err(priv->adapter->wiphy, in mwifiex_process_country_ie()
336 cfg80211_put_bss(priv->adapter->wiphy, bss); in mwifiex_bss_start()
360 cfg80211_put_bss(priv->adapter->wiphy, bss); in mwifiex_bss_start()
Dscan.c499 if (!priv->wdev.wiphy->bands[band]) in mwifiex_scan_create_channel_list()
502 sband = priv->wdev.wiphy->bands[band]; in mwifiex_scan_create_channel_list()
1736 chan = ieee80211_get_channel(priv->wdev.wiphy, freq); in mwifiex_parse_single_response_buf()
1739 bss = cfg80211_inform_bss(priv->wdev.wiphy, in mwifiex_parse_single_response_buf()
1751 cfg80211_put_bss(priv->wdev.wiphy, bss); in mwifiex_parse_single_response_buf()
D11n.c42 priv->wdev.wiphy->bands[radio_type]; in mwifiex_fill_cap_info()
328 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_cmd_append_11n_tlv()
/linux-4.1.27/drivers/staging/wlan-ng/
Dcfg80211.c105 static int prism2_change_virtual_intf(struct wiphy *wiphy, in prism2_change_virtual_intf() argument
147 static int prism2_add_key(struct wiphy *wiphy, struct net_device *dev, in prism2_add_key() argument
207 static int prism2_get_key(struct wiphy *wiphy, struct net_device *dev, in prism2_get_key() argument
237 static int prism2_del_key(struct wiphy *wiphy, struct net_device *dev, in prism2_del_key() argument
283 static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, in prism2_set_default_key() argument
302 static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, in prism2_get_station() argument
336 static int prism2_scan(struct wiphy *wiphy, in prism2_scan() argument
340 struct prism2_wiphy_private *priv = wiphy_priv(wiphy); in prism2_scan()
423 bss = cfg80211_inform_bss(wiphy, in prism2_scan()
424 ieee80211_get_channel(wiphy, freq), in prism2_scan()
[all …]
Dp80211netdev.c724 struct wiphy *wiphy; in wlan_setup() local
738 wiphy = wlan_create_wiphy(physdev, wlandev); in wlan_setup()
739 if (wiphy == NULL) { in wlan_setup()
749 wlan_free_wiphy(wiphy); in wlan_setup()
756 wdev->wiphy = wiphy; in wlan_setup()
794 if (wdev->wiphy) in wlan_unsetup()
795 wlan_free_wiphy(wdev->wiphy); in wlan_unsetup()
/linux-4.1.27/net/mac80211/
Dmain.c274 wiphy_info(hw->wiphy, in ieee80211_restart_hw()
313 if (wdev->wiphy != local->hw.wiphy) in ieee80211_ifa_changed()
365 if (!wdev || wdev->wiphy != local->hw.wiphy) in ieee80211_ifa6_changed()
490 struct wiphy *wiphy; in ieee80211_alloc_hw_nm() local
526 wiphy = wiphy_new_nm(&mac80211_config_ops, priv_size, requested_name); in ieee80211_alloc_hw_nm()
528 if (!wiphy) in ieee80211_alloc_hw_nm()
531 wiphy->mgmt_stypes = ieee80211_default_mgmt_stypes; in ieee80211_alloc_hw_nm()
533 wiphy->privid = mac80211_wiphy_privid; in ieee80211_alloc_hw_nm()
535 wiphy->flags |= WIPHY_FLAG_NETNS_OK | in ieee80211_alloc_hw_nm()
542 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; in ieee80211_alloc_hw_nm()
[all …]
Dcfg.c25 static struct wireless_dev *ieee80211_add_iface(struct wiphy *wiphy, in ieee80211_add_iface() argument
32 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_add_iface()
49 static int ieee80211_del_iface(struct wiphy *wiphy, struct wireless_dev *wdev) in ieee80211_del_iface() argument
56 static int ieee80211_change_iface(struct wiphy *wiphy, in ieee80211_change_iface() argument
112 static int ieee80211_start_p2p_device(struct wiphy *wiphy, in ieee80211_start_p2p_device() argument
127 static void ieee80211_stop_p2p_device(struct wiphy *wiphy, in ieee80211_stop_p2p_device() argument
133 static int ieee80211_set_noack_map(struct wiphy *wiphy, in ieee80211_set_noack_map() argument
143 static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev, in ieee80211_add_key() argument
256 static int ieee80211_del_key(struct wiphy *wiphy, struct net_device *dev, in ieee80211_del_key() argument
297 static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev, in ieee80211_get_key() argument
[all …]
Ddebug.h87 void __wiphy_dbg(struct wiphy *wiphy, bool print, const char *fmt, ...)
96 #define _wiphy_dbg(print, wiphy, fmt, ...) \ argument
97 __wiphy_dbg(wiphy, print, fmt, ##__VA_ARGS__)
118 #define _wiphy_dbg(print, wiphy, fmt, ...) \ argument
121 wiphy_dbg((wiphy), fmt, ##__VA_ARGS__); \
154 (hw)->wiphy, fmt, ##__VA_ARGS__)
Dtdls.c42 bool chan_switch = local->hw.wiphy->features & in ieee80211_tdls_add_ext_capab()
68 ch = ieee80211_get_channel(sdata->local->hw.wiphy, i); in ieee80211_tdls_add_subband()
73 if (cfg80211_reg_can_beacon(sdata->local->hw.wiphy, in ieee80211_tdls_add_subband()
378 sband = local->hw.wiphy->bands[band]; in ieee80211_tdls_add_setup_start_ies()
671 ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, in ieee80211_prep_tdls_encap_data() argument
753 ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev, in ieee80211_prep_tdls_direct() argument
830 ret = ieee80211_prep_tdls_encap_data(local->hw.wiphy, in ieee80211_tdls_build_mgmt_packet_data()
836 ret = ieee80211_prep_tdls_direct(local->hw.wiphy, sdata->dev, in ieee80211_tdls_build_mgmt_packet_data()
860 ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev, in ieee80211_tdls_prep_mgmt_packet() argument
997 ieee80211_tdls_mgmt_setup(struct wiphy *wiphy, struct net_device *dev, in ieee80211_tdls_mgmt_setup() argument
[all …]
Dtrace.c60 void __wiphy_dbg(struct wiphy *wiphy, bool print, const char *fmt, ...) in __wiphy_dbg() argument
71 wiphy_dbg(wiphy, "%pV", &vaf); in __wiphy_dbg()
Dibss.c92 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
266 if (!cfg80211_reg_can_beacon(local->hw.wiphy, &chandef, in __ieee80211_sta_join_ibss()
279 if (!cfg80211_reg_can_beacon(local->hw.wiphy, &chandef, in __ieee80211_sta_join_ibss()
287 err = cfg80211_chandef_dfs_required(sdata->local->hw.wiphy, in __ieee80211_sta_join_ibss()
387 bss = cfg80211_inform_bss_width_frame(local->hw.wiphy, chan, in __ieee80211_sta_join_ibss()
390 cfg80211_put_bss(local->hw.wiphy, bss); in __ieee80211_sta_join_ibss()
441 sband = sdata->local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_sta_join_ibss()
496 cbss = cfg80211_get_bss(sdata->local->hw.wiphy, ifibss->chandef.chan, in ieee80211_ibss_csa_beacon()
510 cfg80211_put_bss(sdata->local->hw.wiphy, cbss); in ieee80211_ibss_csa_beacon()
544 cbss = cfg80211_get_bss(sdata->local->hw.wiphy, in ieee80211_ibss_finish_csa()
[all …]
Dled.c56 "%srx", wiphy_name(local->hw.wiphy)); in ieee80211_led_names()
58 "%stx", wiphy_name(local->hw.wiphy)); in ieee80211_led_names()
60 "%sassoc", wiphy_name(local->hw.wiphy)); in ieee80211_led_names()
62 "%sradio", wiphy_name(local->hw.wiphy)); in ieee80211_led_names()
230 "%stpt", wiphy_name(local->hw.wiphy)); in __ieee80211_create_tpt_led_trigger()
Diface.c168 if (is_zero_ether_addr(local->hw.wiphy->addr_mask)) in ieee80211_verify_mac()
176 m = local->hw.wiphy->addr_mask; in ieee80211_verify_mac()
412 wiphy_name(local->hw.wiphy)); in ieee80211_add_virtual_monitor()
570 local->hw.wiphy->perm_addr, in ieee80211_do_open()
1542 memcpy(perm_addr, local->hw.wiphy->perm_addr, ETH_ALEN); in ieee80211_assign_perm_addr()
1544 if (is_zero_ether_addr(local->hw.wiphy->addr_mask) && in ieee80211_assign_perm_addr()
1545 local->hw.wiphy->n_addresses <= 1) in ieee80211_assign_perm_addr()
1580 for (i = 0; i < local->hw.wiphy->n_addresses; i++) { in ieee80211_assign_perm_addr()
1584 if (ether_addr_equal(local->hw.wiphy->addresses[i].addr, in ieee80211_assign_perm_addr()
1593 local->hw.wiphy->addresses[i].addr, in ieee80211_assign_perm_addr()
[all …]
Dethtool.c19 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy); in ieee80211_set_ringparam()
30 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy); in ieee80211_get_ringparam()
230 regs->version = wdev->wiphy->hw_version; in ieee80211_get_regs()
Dscan.c38 cfg80211_put_bss(local->hw.wiphy, in ieee80211_rx_bss_put()
84 cbss = cfg80211_inform_bss_width_frame(local->hw.wiphy, channel, in ieee80211_bss_info_update()
154 local->hw.wiphy->bands[rx_status->band]; in ieee80211_bss_info_update()
216 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq); in ieee80211_scan_rx()
960 if (!local->hw.wiphy->bands[band]) in ieee80211_request_ibss_scan()
963 max_n = local->hw.wiphy->bands[band]->n_channels; in ieee80211_request_ibss_scan()
966 &local->hw.wiphy->bands[band]->channels[i]; in ieee80211_request_ibss_scan()
1092 if (local->hw.wiphy->bands[i]) { in __ieee80211_request_sched_scan_start()
1181 cfg80211_sched_scan_results(hw->wiphy); in ieee80211_sched_scan_results()
1201 cfg80211_sched_scan_stopped(local->hw.wiphy); in ieee80211_sched_scan_end()
Dieee80211_i.h1603 int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev,
1761 wiphy_name(hw->wiphy)); in __ieee80211_resume()
2049 int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
2054 int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
2057 int ieee80211_tdls_channel_switch(struct wiphy *wiphy, struct net_device *dev,
2060 void ieee80211_tdls_cancel_channel_switch(struct wiphy *wiphy,
Dutil.c40 struct ieee80211_hw *wiphy_to_ieee80211_hw(struct wiphy *wiphy) in wiphy_to_ieee80211_hw() argument
43 BUG_ON(!wiphy); in wiphy_to_ieee80211_hw()
45 local = wiphy_priv(wiphy); in wiphy_to_ieee80211_hw()
217 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
261 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
1369 sband = local->hw.wiphy->bands[band]; in ieee80211_build_preq_ies_band()
1638 sband = sdata->local->hw.wiphy->bands[band]; in ieee80211_sta_get_rates()
1729 cfg80211_shutdown_all_interfaces(local->hw.wiphy); in ieee80211_handle_reconfig_failure()
1806 drv_set_frag_threshold(local, hw->wiphy->frag_threshold); in ieee80211_reconfig()
1809 drv_set_rts_threshold(local, hw->wiphy->rts_threshold); in ieee80211_reconfig()
[all …]
Ddebugfs_netdev.c228 if (!(local->hw.wiphy->features & NL80211_FEATURE_STATIC_SMPS) && in ieee80211_set_smps()
233 if (!(local->hw.wiphy->features & NL80211_FEATURE_DYNAMIC_SMPS) && in ieee80211_set_smps()
462 wiphy_info(local->hw.wiphy, "debugfs reset TSF\n"); in ieee80211_if_parse_tsf()
481 wiphy_info(local->hw.wiphy, in ieee80211_if_parse_tsf()
712 sdata->local->hw.wiphy->debugfsdir); in ieee80211_debugfs_add_netdev()
Drate.c158 debugfsdir = debugfs_create_dir("rc", local->hw.wiphy->debugfsdir); in rate_control_alloc()
648 sband = sdata->local->hw.wiphy->bands[info->band]; in ieee80211_get_tx_rates()
738 wiphy_warn(local->hw.wiphy, in ieee80211_init_rate_ctrl_alg()
746 wiphy_debug(local->hw.wiphy, "Selected rate control algorithm '%s'\n", in ieee80211_init_rate_ctrl_alg()
Dmesh.c421 sband = local->hw.wiphy->bands[band]; in mesh_add_ht_cap_ie()
458 sband = local->hw.wiphy->bands[channel->band]; in mesh_add_ht_oper_ie()
894 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, &params.chandef, in ieee80211_mesh_process_chnswitch()
906 err = cfg80211_chandef_dfs_required(sdata->local->hw.wiphy, in ieee80211_mesh_process_chnswitch()
941 if (ieee80211_channel_switch(sdata->local->hw.wiphy, sdata->dev, in ieee80211_mesh_process_chnswitch()
1043 channel = ieee80211_get_channel(local->hw.wiphy, freq); in ieee80211_mesh_rx_bcn_presp()
Dvht.c370 sband = local->hw.wiphy->bands[band]; in __ieee80211_vht_handle_opmode()
417 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode()
Drate.h92 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
Dchan.c1286 wiphy_info(local->hw.wiphy, in ieee80211_vif_use_reserved_switch()
1441 cfg80211_stop_iface(local->hw.wiphy, in ieee80211_vif_use_reserved_switch()
1533 ret = cfg80211_chandef_dfs_required(local->hw.wiphy, in ieee80211_vif_use_channel()
1633 wiphy_info(local->hw.wiphy, in ieee80211_vif_use_reserved_context()
1652 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_vif_change_bandwidth()
Dtx.c69 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration()
657 sband = tx->local->hw.wiphy->bands[info->band]; in ieee80211_tx_h_rate_ctrl()
660 tx->local->hw.wiphy->frag_threshold); in ieee80211_tx_h_rate_ctrl()
683 if (len > tx->local->hw.wiphy->rts_threshold) { in ieee80211_tx_h_rate_ctrl()
907 int frag_threshold = tx->local->hw.wiphy->frag_threshold; in ieee80211_tx_h_fragment()
1203 skb->len + FCS_LEN <= local->hw.wiphy->frag_threshold || in ieee80211_tx_prepare()
1608 wiphy_debug(local->hw.wiphy, in ieee80211_skb_resize()
1868 if (!cfg80211_reg_can_beacon(local->hw.wiphy, chandef, in ieee80211_monitor_start_xmit()
1929 if (sdata->wdev.wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS) { in ieee80211_lookup_ra_sta()
2966 txrc.sband = local->hw.wiphy->bands[band]; in __ieee80211_beacon_get()
Dmlme.c322 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_determine_chantype()
381 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_config_bw()
623 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_send_assoc()
1140 if (!cfg80211_chandef_usable(local->hw.wiphy, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
2493 cfg80211_put_bss(sdata->local->hw.wiphy, auth_data->bss); in ieee80211_destroy_auth_data()
2964 sband = local->hw.wiphy->bands[ieee80211_get_sdata_band(sdata)]; in ieee80211_assoc_success()
3173 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq); in ieee80211_rx_bss_info()
3691 cfg80211_unlink_bss(local->hw.wiphy, auth_data->bss); in ieee80211_probe_auth()
3777 cfg80211_unlink_bss(local->hw.wiphy, assoc_data->bss); in ieee80211_do_assoc()
3943 wiphy_debug(local->hw.wiphy, in ieee80211_sta_work()
[all …]
Dspectmgmt.c82 new_chan = ieee80211_get_channel(sdata->local->hw.wiphy, new_freq); in ieee80211_parse_ch_switch_ie()
Docb.c81 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta()
Drc80211_minstrel.c583 sband = hw->wiphy->bands[i]; in minstrel_alloc_sta()
624 sband = mp->hw->wiphy->bands[IEEE80211_BAND_2GHZ]; in minstrel_init_cck_rates()
Dstatus.c603 sband = hw->wiphy->bands[info->band]; in ieee80211_tx_status_noskb()
673 sband = local->hw.wiphy->bands[info->band]; in ieee80211_tx_status()
Doffchannel.c287 wiphy_warn(local->hw.wiphy, in ieee80211_start_next_roc()
Ddebugfs.c234 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
Dmesh_plink.c98 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in mesh_set_short_slot_time()
387 sband = local->hw.wiphy->bands[band]; in mesh_sta_info_init()
Drx.c2576 cfg80211_report_obss_beacon(rx->local->hw.wiphy, in ieee80211_rx_h_mgmt_check()
2657 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_h_action()
2686 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_h_action()
3128 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_handlers_result()
3434 wiphy_debug(local->hw.wiphy, in ieee80211_prepare_and_rx_handle()
3581 sband = local->hw.wiphy->bands[status->band]; in ieee80211_rx()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dvendor_cmd.c29 wlcore_vendor_cmd_smart_config_start(struct wiphy *wiphy, in wlcore_vendor_cmd_smart_config_start() argument
33 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in wlcore_vendor_cmd_smart_config_start()
73 wlcore_vendor_cmd_smart_config_stop(struct wiphy *wiphy, in wlcore_vendor_cmd_smart_config_stop() argument
77 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in wlcore_vendor_cmd_smart_config_stop()
104 wlcore_vendor_cmd_smart_config_set_group_key(struct wiphy *wiphy, in wlcore_vendor_cmd_smart_config_set_group_key() argument
108 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in wlcore_vendor_cmd_smart_config_set_group_key()
191 void wlcore_set_vendor_commands(struct wiphy *wiphy) in wlcore_set_vendor_commands() argument
193 wiphy->vendor_commands = wlcore_vendor_commands; in wlcore_set_vendor_commands()
194 wiphy->n_vendor_commands = ARRAY_SIZE(wlcore_vendor_commands); in wlcore_set_vendor_commands()
195 wiphy->vendor_events = wlcore_vendor_events; in wlcore_set_vendor_commands()
[all …]
Dvendor_cmd.h15 void wlcore_set_vendor_commands(struct wiphy *wiphy);
Dtestmode.c126 skb = cfg80211_testmode_alloc_reply_skb(wl->hw->wiphy, len); in wl1271_tm_cmd_test()
189 skb = cfg80211_testmode_alloc_reply_skb(wl->hw->wiphy, sizeof(*cmd)); in wl1271_tm_cmd_interrogate()
260 skb = cfg80211_testmode_alloc_reply_skb(wl->hw->wiphy, len); in wl1271_tm_detect_fem()
340 skb = cfg80211_testmode_alloc_reply_skb(wl->hw->wiphy, ETH_ALEN); in wl12xx_tm_cmd_get_mac()
Dmain.c79 static void wl1271_reg_notify(struct wiphy *wiphy, in wl1271_reg_notify() argument
82 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in wl1271_reg_notify()
1136 struct wiphy *wiphy = wl->hw->wiphy; in wl1271_plt_start() local
1180 wiphy->hw_version = wl->chip.id; in wl1271_plt_start()
1181 strncpy(wiphy->fw_version, wl->chip.fw_ver_str, in wl1271_plt_start()
1182 sizeof(wiphy->fw_version)); in wl1271_plt_start()
2345 struct wiphy *wiphy = wl->hw->wiphy; in wl12xx_init_fw() local
2391 wiphy->hw_version = wl->chip.id; in wl12xx_init_fw()
2392 strncpy(wiphy->fw_version, wl->chip.fw_ver_str, in wl12xx_init_fw()
2393 sizeof(wiphy->fw_version)); in wl12xx_init_fw()
[all …]
Dinit.c274 ret = wl1271_acx_rts_threshold(wl, wlvif, wl->hw->wiphy->rts_threshold); in wl12xx_init_phy_vif_config()
730 ret = wl1271_acx_frag_threshold(wl, wl->hw->wiphy->frag_threshold); in wl1271_hw_init()
Dcmd.c1691 struct wiphy *wiphy = wl->hw->wiphy; in wlcore_cmd_regdomain_config_locked() local
1703 band = wiphy->bands[b]; in wlcore_cmd_regdomain_config_locked()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dp2p.h151 struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name,
155 int brcmf_p2p_del_vif(struct wiphy *wiphy, struct wireless_dev *wdev);
158 int brcmf_p2p_start_device(struct wiphy *wiphy, struct wireless_dev *wdev);
159 void brcmf_p2p_stop_device(struct wiphy *wiphy, struct wireless_dev *wdev);
160 int brcmf_p2p_scan_prep(struct wiphy *wiphy,
163 int brcmf_p2p_remain_on_channel(struct wiphy *wiphy, struct wireless_dev *wdev,
Dcfg80211.c556 struct wireless_dev *brcmf_ap_add_vif(struct wiphy *wiphy, const char *name, in brcmf_ap_add_vif() argument
559 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_ap_add_vif()
626 static struct wireless_dev *brcmf_cfg80211_add_iface(struct wiphy *wiphy, in brcmf_cfg80211_add_iface() argument
645 wdev = brcmf_ap_add_vif(wiphy, name, flags, params); in brcmf_cfg80211_add_iface()
652 wdev = brcmf_p2p_add_vif(wiphy, name, name_assign_type, type, flags, params); in brcmf_cfg80211_add_iface()
744 int brcmf_cfg80211_del_iface(struct wiphy *wiphy, struct wireless_dev *wdev) in brcmf_cfg80211_del_iface() argument
746 struct brcmf_cfg80211_info *cfg = wiphy_priv(wiphy); in brcmf_cfg80211_del_iface()
774 return brcmf_p2p_del_vif(wiphy, wdev); in brcmf_cfg80211_del_iface()
783 brcmf_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev, in brcmf_cfg80211_change_iface() argument
787 struct brcmf_cfg80211_info *cfg = wiphy_priv(wiphy); in brcmf_cfg80211_change_iface()
[all …]
Dcfg80211.h235 struct wiphy *wiphy; member
377 struct wiphy *wiphy; member
425 static inline struct wiphy *cfg_to_wiphy(struct brcmf_cfg80211_info *cfg) in cfg_to_wiphy()
427 return cfg->wiphy; in cfg_to_wiphy()
430 static inline struct brcmf_cfg80211_info *wiphy_to_cfg(struct wiphy *w) in wiphy_to_cfg()
Dvendor.c30 static int brcmf_cfg80211_vndr_cmds_dcmd_handler(struct wiphy *wiphy, in brcmf_cfg80211_vndr_cmds_dcmd_handler() argument
91 reply = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, payload); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
Dp2p.c885 int brcmf_p2p_scan_prep(struct wiphy *wiphy, in brcmf_p2p_scan_prep() argument
889 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_scan_prep()
970 int brcmf_p2p_remain_on_channel(struct wiphy *wiphy, struct wireless_dev *wdev, in brcmf_p2p_remain_on_channel() argument
974 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_remain_on_channel()
1948 SET_NETDEV_DEV(p2p_ifp->ndev, wiphy_dev(cfg->wiphy)); in brcmf_p2p_attach()
2161 struct wiphy *wiphy, in brcmf_p2p_create_p2pdev() argument
2254 struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, in brcmf_p2p_add_vif() argument
2259 struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); in brcmf_p2p_add_vif()
2278 return brcmf_p2p_create_p2pdev(&cfg->p2p, wiphy, in brcmf_p2p_add_vif()
2343 int brcmf_p2p_del_vif(struct wiphy *wiphy, struct wireless_dev *wdev) in brcmf_p2p_del_vif() argument
[all …]
Dbtcoex.c469 struct brcmf_cfg80211_info *cfg = wiphy_priv(vif->wdev.wiphy); in brcmf_btcoex_set_mode()
/linux-4.1.27/drivers/net/wireless/libertas/
Dcfg.c440 static int lbs_cfg_set_monitor_channel(struct wiphy *wiphy, in lbs_cfg_set_monitor_channel() argument
443 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_set_monitor_channel()
460 static int lbs_cfg_set_mesh_channel(struct wiphy *wiphy, in lbs_cfg_set_mesh_channel() argument
464 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_set_mesh_channel()
640 struct wiphy *wiphy = priv->wdev->wiphy; in lbs_ret_scan() local
644 ieee80211_get_channel(wiphy, freq); in lbs_ret_scan()
652 bss = cfg80211_inform_bss(wiphy, channel, in lbs_ret_scan()
658 cfg80211_put_bss(wiphy, bss); in lbs_ret_scan()
807 static int lbs_cfg_scan(struct wiphy *wiphy, in lbs_cfg_scan() argument
810 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_scan()
[all …]
Dcfg.h7 struct wiphy;
Dcmd.c741 struct wiphy *wiphy = priv->wdev->wiphy; in lbs_set_11d_domain_info() local
742 struct ieee80211_supported_band **bands = wiphy->bands; in lbs_set_11d_domain_info()
Dmesh.c1010 mesh_wdev->wiphy = priv->wdev->wiphy; in lbs_add_mesh()
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c254 struct wiphy *wiphy = wdev->wiphy; in rtw_cfg80211_inform_bss() local
265 notify_channel = ieee80211_get_channel(wiphy, freq); in rtw_cfg80211_inform_bss()
282 bss = cfg80211_inform_bss(wiphy, notify_channel, in rtw_cfg80211_inform_bss()
296 cfg80211_put_bss(wiphy, bss); in rtw_cfg80211_inform_bss()
317 struct wiphy *wiphy = pwdev->wiphy; in rtw_cfg80211_indicate_connect() local
331 notify_channel = ieee80211_get_channel(wiphy, freq); in rtw_cfg80211_indicate_connect()
865 static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev, in cfg80211_rtw_add_key() argument
870 struct wireless_dev *rtw_wdev = wiphy_to_wdev(wiphy); in cfg80211_rtw_add_key()
871 struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); in cfg80211_rtw_add_key()
937 cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev, in cfg80211_rtw_get_key() argument
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c173 cfg80211_sched_scan_stopped(ar->wiphy); in ath6kl_cfg80211_sscan_disable()
455 static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, in ath6kl_cfg80211_connect() argument
701 bss = cfg80211_get_bss(ar->wiphy, chan, bssid, in ath6kl_add_bss_if_needed()
720 bss = cfg80211_inform_bss(ar->wiphy, chan, in ath6kl_add_bss_if_needed()
784 chan = ieee80211_get_channel(ar->wiphy, (int) channel); in ath6kl_cfg80211_connect_event()
797 cfg80211_put_bss(ar->wiphy, bss); in ath6kl_cfg80211_connect_event()
808 cfg80211_put_bss(ar->wiphy, bss); in ath6kl_cfg80211_connect_event()
816 static int ath6kl_cfg80211_disconnect(struct wiphy *wiphy, in ath6kl_cfg80211_disconnect() argument
987 static int ath6kl_cfg80211_scan(struct wiphy *wiphy, in ath6kl_cfg80211_scan() argument
1106 ieee80211_get_channel(vif->ar->wiphy, freq), in ath6kl_cfg80211_ch_switch_notify()
[all …]
Dtestmode.h23 int ath6kl_tm_cmd(struct wiphy *wiphy, struct wireless_dev *wdev,
33 static inline int ath6kl_tm_cmd(struct wiphy *wiphy, in ath6kl_tm_cmd() argument
Dtestmode.c53 skb = cfg80211_testmode_alloc_event_skb(ar->wiphy, buf_len, GFP_KERNEL); in ath6kl_tm_rx_event()
69 int ath6kl_tm_cmd(struct wiphy *wiphy, struct wireless_dev *wdev, in ath6kl_tm_cmd() argument
72 struct ath6kl *ar = wiphy_priv(wiphy); in ath6kl_tm_cmd()
Dcore.c105 ar->wiphy->hw_version = le32_to_cpu(targ_info.version); in ath6kl_core_init()
204 wiphy_unregister(ar->wiphy); in ath6kl_core_init()
222 wiphy_unregister(ar->wiphy); in ath6kl_core_init()
Dhif.c105 ath6kl_info("hw 0x%x fw %s\n", ar->wiphy->hw_version, in ath6kl_hif_dump_fw_crash()
106 ar->wiphy->fw_version); in ath6kl_hif_dump_fw_crash()
Dinit.c996 strlcpy(ar->wiphy->fw_version, data, in ath6kl_fetch_fw_apin()
997 sizeof(ar->wiphy->fw_version)); in ath6kl_fetch_fw_apin()
1001 ar->wiphy->fw_version); in ath6kl_fetch_fw_apin()
1765 ar->wiphy->fw_version, in __ath6kl_init_hw_start()
Dcore.h697 struct wiphy *wiphy; member
Dmain.c537 if (strlen(ar->wiphy->fw_version) == 0) { in ath6kl_ready_event()
538 snprintf(ar->wiphy->fw_version, in ath6kl_ready_event()
539 sizeof(ar->wiphy->fw_version), in ath6kl_ready_event()
Dwmi.c521 chan = ieee80211_get_channel(ar->wiphy, freq); in ath6kl_wmi_remain_on_chnl_event_rx()
555 chan = ieee80211_get_channel(ar->wiphy, freq); in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
1015 regulatory_hint(wmi->parent_dev->wiphy, alpha2); in ath6kl_wmi_regdomain_event()
1085 cfg80211_sched_scan_results(vif->ar->wiphy); in ath6kl_wmi_sscan_timer()
1121 channel = ieee80211_get_channel(ar->wiphy, le16_to_cpu(bih->ch)); in ath6kl_wmi_bssinfo_event_rx()
1140 bss = cfg80211_inform_bss(ar->wiphy, channel, in ath6kl_wmi_bssinfo_event_rx()
1151 cfg80211_put_bss(ar->wiphy, bss); in ath6kl_wmi_bssinfo_event_rx()
2047 sband = ar->wiphy->bands[band]; in ath6kl_wmi_beginscan_cmd()
/linux-4.1.27/drivers/net/wireless/
Drndis_wlan.c480 static int rndis_change_virtual_intf(struct wiphy *wiphy,
485 static int rndis_scan(struct wiphy *wiphy,
488 static int rndis_set_wiphy_params(struct wiphy *wiphy, u32 changed);
490 static int rndis_set_tx_power(struct wiphy *wiphy,
494 static int rndis_get_tx_power(struct wiphy *wiphy,
498 static int rndis_connect(struct wiphy *wiphy, struct net_device *dev,
501 static int rndis_disconnect(struct wiphy *wiphy, struct net_device *dev,
504 static int rndis_join_ibss(struct wiphy *wiphy, struct net_device *dev,
507 static int rndis_leave_ibss(struct wiphy *wiphy, struct net_device *dev);
509 static int rndis_add_key(struct wiphy *wiphy, struct net_device *netdev,
[all …]
Dat76c50x-usb.c644 wiphy_err(priv->hw->wiphy, "cannot get HW Config (error %d)\n", in at76_get_hw_config()
780 wiphy_err(priv->hw->wiphy, in at76_wait_completion()
788 wiphy_name(priv->hw->wiphy), cmd, status, in at76_wait_completion()
797 wiphy_err(priv->hw->wiphy, in at76_wait_completion()
819 wiphy_info(priv->hw->wiphy, in at76_set_mib()
841 wiphy_err(priv->hw->wiphy, in at76_set_radio()
862 wiphy_err(priv->hw->wiphy, "set_mib (pm_mode) failed: %d\n", in at76_set_pm_mode()
879 wiphy_err(priv->hw->wiphy, "set_mib (preamble) failed: %d\n", in at76_set_preamble()
896 wiphy_err(priv->hw->wiphy, in at76_set_frag()
913 wiphy_err(priv->hw->wiphy, "set_mib (rts) failed: %d\n", ret); in at76_set_rts()
[all …]
Dmac80211_hwsim.c345 static int mac80211_hwsim_vendor_cmd_test(struct wiphy *wiphy, in mac80211_hwsim_vendor_cmd_test() argument
361 wiphy_debug(wiphy, "%s: test=%u\n", __func__, val); in mac80211_hwsim_vendor_cmd_test()
370 skb = cfg80211_vendor_event_alloc(wiphy, wdev, 100, 0, GFP_KERNEL); in mac80211_hwsim_vendor_cmd_test()
384 skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, 10); in mac80211_hwsim_vendor_cmd_test()
618 wiphy_debug(data->hw->wiphy, in hwsim_send_ps_poll()
649 wiphy_debug(data->hw->wiphy, in hwsim_send_nullfunc()
1279 wiphy_debug(hw->wiphy, "Trying to TX when idle - reject\n"); in mac80211_hwsim_tx()
1328 wiphy_debug(hw->wiphy, "%s\n", __func__); in mac80211_hwsim_start()
1339 wiphy_debug(hw->wiphy, "%s\n", __func__); in mac80211_hwsim_stop()
1346 wiphy_debug(hw->wiphy, "%s (type=%d mac_addr=%pM)\n", in mac80211_hwsim_add_interface()
[all …]
Dmwl8k.c855 wiphy_err(priv->hw->wiphy, in mwl8k_add_dma_header()
1164 wiphy_err(hw->wiphy, "failed to alloc RX descriptors\n"); in mwl8k_rxq_init()
1455 wiphy_err(hw->wiphy, "failed to alloc TX descriptors\n"); in mwl8k_txq_init()
1515 wiphy_err(hw->wiphy, in mwl8k_dump_tx_rings()
1587 wiphy_notice(hw->wiphy, "tx rings drained\n"); in mwl8k_tx_wait_empty()
1598 wiphy_notice(hw->wiphy, in mwl8k_tx_wait_empty()
1607 wiphy_err(hw->wiphy, "tx rings stuck for %d ms\n", in mwl8k_tx_wait_empty()
1788 wiphy_debug(hw->wiphy, "Added a new stream for %pM %d", in mwl8k_add_stream()
1806 wiphy_debug(hw->wiphy, "Failed to start stream for %pM %d: " in mwl8k_start_stream()
1809 wiphy_debug(hw->wiphy, "Started stream for %pM %d\n", in mwl8k_start_stream()
[all …]
Dadm8211.c377 wiphy_debug(dev->wiphy, "frame too long (%d)\n", in adm8211_interrupt_rci()
461 wiphy_debug(dev->wiphy, "%s\n", #x); \ in adm8211_interrupt()
574 wiphy_debug(dev->wiphy, in adm8211_write_bbp()
609 wiphy_debug(dev->wiphy, in adm8211_write_bbp()
679 wiphy_debug(dev->wiphy, "unsupported transceiver type %d\n", in adm8211_rf_set_channel()
736 wiphy_debug(dev->wiphy, "unsupported BBP type %d\n", in adm8211_rf_set_channel()
1031 wiphy_debug(dev->wiphy, "unsupported transceiver %d\n", in adm8211_hw_init_bbp()
1036 wiphy_debug(dev->wiphy, "unsupported BBP %d\n", priv->bbp_type); in adm8211_hw_init_bbp()
1514 wiphy_err(dev->wiphy, "hardware reset failed\n"); in adm8211_start()
1520 wiphy_err(dev->wiphy, "failed to initialize rings\n"); in adm8211_start()
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c633 static void brcms_reg_apply_radar_flags(struct wiphy *wiphy) in brcms_reg_apply_radar_flags() argument
639 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in brcms_reg_apply_radar_flags()
661 brcms_reg_apply_beaconing_flags(struct wiphy *wiphy, in brcms_reg_apply_beaconing_flags() argument
670 sband = wiphy->bands[band]; in brcms_reg_apply_beaconing_flags()
682 rule = freq_reg_info(wiphy, in brcms_reg_apply_beaconing_flags()
696 static void brcms_reg_notifier(struct wiphy *wiphy, in brcms_reg_notifier() argument
699 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in brcms_reg_notifier()
707 brcms_reg_apply_radar_flags(wiphy); in brcms_reg_notifier()
710 brcms_reg_apply_beaconing_flags(wiphy, request->initiator); in brcms_reg_notifier()
714 sband = wiphy->bands[band]; in brcms_reg_notifier()
[all …]
Dled.c93 wiphy_err(wl->wiphy, "requesting led gpio %d failed (err: %d)\n", in brcms_led_register()
99 wiphy_err(wl->wiphy, "cannot set led gpio %d to output (err: %d)\n", in brcms_led_register()
105 "brcmsmac-%s:radio", wiphy_name(wl->wiphy)); in brcms_led_register()
111 err = led_classdev_register(wiphy_dev(wl->wiphy), &wl->led_dev); in brcms_led_register()
114 wiphy_err(wl->wiphy, "cannot register led device: %s (err: %d)\n", in brcms_led_register()
119 wiphy_info(wl->wiphy, "registered radio enabled led device: %s gpio: %d\n", in brcms_led_register()
Dmac80211_if.c340 wiphy_rfkill_set_hw_state(wl->pub->ieee_hw->wiphy, false); in brcms_remove()
341 wiphy_rfkill_stop_polling(wl->pub->ieee_hw->wiphy); in brcms_remove()
383 wiphy_err(wl->wiphy, "%s: fail to load firmware %s\n", in brcms_request_fw()
391 wiphy_err(wl->wiphy, "%s: fail to load firmware %s\n", in brcms_request_fw()
440 wiphy_rfkill_stop_polling(wl->pub->ieee_hw->wiphy); in brcms_ops_start()
636 bi = hw->wiphy->bands[brcms_c_get_curband(wl->wlc)]; in brcms_ops_bss_info_changed()
698 hw->wiphy->flags & WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD) { in brcms_ops_bss_info_changed()
890 wiphy_rfkill_set_hw_state(wl->pub->ieee_hw->wiphy, blocked); in brcms_ops_rfkill_poll()
1030 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = NULL; in ieee_hw_rate_init()
1031 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; in ieee_hw_rate_init()
[all …]
Dmac80211_if.h83 struct wiphy *wiphy; member
Dmain.c1865 wiphy_err(wlc_hw->wlc->wiphy, "unsupported core rev %d\n", in brcms_c_isgoodchip()
2760 struct wiphy *wiphy = wlc_hw->wlc->wiphy; in brcms_b_validate_chip_access() local
2777 wiphy_err(wiphy, "wl%d: validate_chip_access: SHM = 0x%x, " in brcms_b_validate_chip_access()
2790 wiphy_err(wiphy, "wl%d: validate_chip_access: SHM = 0x%x, " in brcms_b_validate_chip_access()
2805 wiphy_err(wiphy, "wl%d: validate_chip_access: maccontrol = " in brcms_b_validate_chip_access()
3996 BCMMSG(wlc->wiphy, "idx %d, val %d\n", idx, val); in brcms_c_protection_upd()
4287 wiphy_err(wlc->wiphy, "wl%d: wl_init_timer for wdtimer " in brcms_c_timers_init()
4295 wiphy_err(wlc->wiphy, "wl%d: wl_init_timer for radio_timer " in brcms_c_timers_init()
4368 wiphy_err(wlc->wiphy, "wl%d: attach: antsel_attach " in brcms_c_attach_module()
4376 wiphy_err(wlc->wiphy, "wl%d: attach: ampdu_attach " in brcms_c_attach_module()
[all …]
Dmain.h564 struct wiphy *wiphy; member
Dtypes.h278 struct wiphy;
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dinit.c193 static void ath9k_reg_notifier(struct wiphy *wiphy, in ath9k_reg_notifier() argument
196 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath9k_reg_notifier()
201 ath_reg_notifier_apply(wiphy, request, reg); in ath9k_reg_notifier()
809 hw->wiphy->interface_modes &= ~ BIT(NL80211_IFTYPE_WDS); in ath9k_set_mcc_capab()
810 hw->wiphy->iface_combinations = if_comb_multi; in ath9k_set_mcc_capab()
811 hw->wiphy->n_iface_combinations = ARRAY_SIZE(if_comb_multi); in ath9k_set_mcc_capab()
812 hw->wiphy->max_scan_ssids = 255; in ath9k_set_mcc_capab()
813 hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN; in ath9k_set_mcc_capab()
814 hw->wiphy->max_remain_on_channel_duration = 10000; in ath9k_set_mcc_capab()
851 hw->wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR | in ath9k_set_hw_capab()
[all …]
Dhtc_drv_init.c107 wiphy_rfkill_stop_polling(hw->wiphy); in ath9k_deinit_device()
220 static void ath9k_reg_notifier(struct wiphy *wiphy, in ath9k_reg_notifier() argument
223 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath9k_reg_notifier()
226 ath_reg_notifier_apply(wiphy, request, in ath9k_reg_notifier()
733 hw->wiphy->interface_modes = in ath9k_set_hw_capab()
741 hw->wiphy->iface_combinations = &if_comb; in ath9k_set_hw_capab()
742 hw->wiphy->n_iface_combinations = 1; in ath9k_set_hw_capab()
744 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; in ath9k_set_hw_capab()
746 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN | in ath9k_set_hw_capab()
749 hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; in ath9k_set_hw_capab()
[all …]
Dhtc_drv_gpio.c289 "ath9k_htc-%s", wiphy_name(priv->hw->wiphy)); in ath9k_init_leds()
293 ret = led_classdev_register(wiphy_dev(priv->hw->wiphy), &priv->led_cdev); in ath9k_init_leds()
325 wiphy_rfkill_set_hw_state(hw->wiphy, blocked); in ath9k_htc_rfkill_poll_state()
331 wiphy_rfkill_start_polling(priv->hw->wiphy); in ath9k_start_rfkill_poll()
Dtx99.c76 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); in ath9k_build_tx99_skb()
77 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); in ath9k_build_tx99_skb()
78 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); in ath9k_build_tx99_skb()
Dgpio.c57 "ath9k-%s", wiphy_name(sc->hw->wiphy)); in ath_init_leds()
61 ret = led_classdev_register(wiphy_dev(sc->hw->wiphy), &sc->led_cdev); in ath_init_leds()
122 wiphy_rfkill_set_hw_state(hw->wiphy, blocked); in ath9k_rfkill_poll_state()
130 wiphy_rfkill_start_polling(sc->hw->wiphy); in ath_start_rfkill_poll()
Dwow.c334 hw->wiphy->wowlan = &ath9k_wowlan_support; in ath9k_init_wow()
336 hw->wiphy->wowlan = &ath9k_wowlan_support_legacy; in ath9k_init_wow()
Dlink.c245 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate()
246 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate()
247 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); in ath_paprd_calibrate()
Dahb.c150 wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n", in ath_ahb_probe()
Dcommon.c181 sband = hw->wiphy->bands[band]; in ath9k_cmn_process_rate()
Ddynack.c350 ah->hw->wiphy->features |= NL80211_FEATURE_ACKTO_ESTIMATION; in ath_dynack_init()
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8187/
Drfkill.c41 wiphy_rfkill_set_hw_state(hw->wiphy, !priv->rfkill_off); in rtl8187_rfkill_init()
42 wiphy_rfkill_start_polling(hw->wiphy); in rtl8187_rfkill_init()
56 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in rtl8187_rfkill_poll()
63 wiphy_rfkill_stop_polling(hw->wiphy); in rtl8187_rfkill_exit()
Dleds.c208 "rtl8187-%s::radio", wiphy_name(dev->wiphy)); in rtl8187_leds_init()
215 "rtl8187-%s::tx", wiphy_name(dev->wiphy)); in rtl8187_leds_init()
222 "rtl8187-%s::rx", wiphy_name(dev->wiphy)); in rtl8187_leds_init()
Ddev.c631 wiphy_err(dev->wiphy, "Reset timeout!\n"); in rtl8187_cmd_reset()
647 wiphy_err(dev->wiphy, "eeprom reset timeout!\n"); in rtl8187_cmd_reset()
1478 dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in rtl8187_probe()
1609 dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in rtl8187_probe()
1633 wiphy_info(dev->wiphy, "hwaddr %pM, %s V%d + %s, rfkill mask %d\n", in rtl8187_probe()
Drtl8225.c368 wiphy_warn(dev->wiphy, "RF Calibration Failed! %x\n", in rtl8225_rf_init()
737 wiphy_warn(dev->wiphy, "RF Calibration Failed! %x\n", in rtl8225z2_rf_init()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_module.c147 ieee->wdev.wiphy = wiphy_new(&libipw_config_ops, 0); in alloc_libipw()
148 if (!ieee->wdev.wiphy) { in alloc_libipw()
159 ieee->wdev.wiphy->privid = libipw_wiphy_privid; in alloc_libipw()
161 ieee->wdev.wiphy->max_scan_ssids = 1; in alloc_libipw()
162 ieee->wdev.wiphy->max_scan_ie_len = 0; in alloc_libipw()
163 ieee->wdev.wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) in alloc_libipw()
205 wiphy_free(ieee->wdev.wiphy); in alloc_libipw()
223 wiphy_free(ieee->wdev.wiphy); in free_libipw()
Dipw2100.c1176 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false); in rf_kill_active()
1188 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true); in rf_kill_active()
1191 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false); in rf_kill_active()
1910 memcpy(wdev->wiphy->perm_addr, priv->mac_addr, ETH_ALEN); in ipw2100_wdev_init()
1948 wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = bg_band; in ipw2100_wdev_init()
1951 wdev->wiphy->cipher_suites = ipw_cipher_suites; in ipw2100_wdev_init()
1952 wdev->wiphy->n_cipher_suites = ARRAY_SIZE(ipw_cipher_suites); in ipw2100_wdev_init()
1954 set_wiphy_dev(wdev->wiphy, &priv->pci_dev->dev); in ipw2100_wdev_init()
1955 if (wiphy_register(wdev->wiphy)) in ipw2100_wdev_init()
2171 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true); in isr_indicate_rf_kill()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Drx.c70 wiphy_info(ar->hw->wiphy, "FW: %.*s\n", len, buf); in carl9170_dbg_message()
118 wiphy_err(ar->hw->wiphy, "lost %d command responses/traps! " in carl9170_check_sequence()
175 wiphy_err(ar->hw->wiphy, "FW: received over-/under" in carl9170_handle_command_response()
248 wiphy_dbg(ar->hw->wiphy, "FW: HD %d\n", len - 4); in carl9170_handle_command_response()
257 wiphy_info(ar->hw->wiphy, "FW: RADAR! Please report this " in carl9170_handle_command_response()
282 wiphy_err(ar->hw->wiphy, "FW: received unhandled event %x\n", in carl9170_handle_command_response()
346 wiphy_dbg(ar->hw->wiphy, "received frame with " in carl9170_rx_mac_status()
377 wiphy_err(ar->hw->wiphy, "invalid plcp cck " in carl9170_rx_mac_status()
414 wiphy_err(ar->hw->wiphy, "invalid plcp ofdm " in carl9170_rx_mac_status()
742 wiphy_err(ar->hw->wiphy, "plcp info " in carl9170_rx_untie_data()
[all …]
Dfw.c121 strlcpy(ar->hw->wiphy->fw_version, motd_desc->release, in carl9170_fw_info()
122 sizeof(ar->hw->wiphy->fw_version)); in carl9170_fw_info()
232 ar->hw->wiphy->iface_combinations = ar->if_combs; in carl9170_fw_set_if_combinations()
233 ar->hw->wiphy->n_iface_combinations = ARRAY_SIZE(ar->if_combs); in carl9170_fw_set_if_combinations()
352 ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC); in carl9170_fw()
368 ar->hw->wiphy->interface_modes |= if_comb_types; in carl9170_fw()
370 ar->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; in carl9170_fw()
373 ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL | in carl9170_fw()
Dled.c130 "carl9170-%s::%s", wiphy_name(ar->hw->wiphy), name); in carl9170_led_register_led()
138 err = led_classdev_register(wiphy_dev(ar->hw->wiphy), in carl9170_led_register_led()
141 wiphy_err(ar->hw->wiphy, "failed to register %s LED (%d).\n", in carl9170_led_register_led()
Dcmd.c55 wiphy_err(ar->hw->wiphy, "writing reg %#x " in carl9170_write_reg()
81 wiphy_err(ar->hw->wiphy, "reading regs failed (%d)\n", in carl9170_read_mreg()
111 wiphy_info(ar->hw->wiphy, "wrong echo %x != %x", v, echores); in carl9170_echo_test()
Dmain.c1522 wiphy_name(ar->hw->wiphy)); in carl9170_register_wps_button()
1525 "ieee80211/%s/input0", wiphy_name(ar->hw->wiphy)); in carl9170_register_wps_button()
1530 input->dev.parent = &ar->hw->wiphy->dev; in carl9170_register_wps_button()
1621 "%s_%s", KBUILD_MODNAME, wiphy_name(ar->hw->wiphy)); in carl9170_register_hwrng()
1669 band = ar->hw->wiphy->bands[b]; in carl9170_op_get_survey()
1846 hw->wiphy->interface_modes = 0; in carl9170_alloc()
1943 ar->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = in carl9170_parse_eeprom()
1949 ar->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = in carl9170_parse_eeprom()
1971 static void carl9170_reg_notifier(struct wiphy *wiphy, in carl9170_reg_notifier() argument
1974 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in carl9170_reg_notifier()
[all …]
Dphy.c686 wiphy_err(ar->hw->wiphy, "rf init failed\n"); in carl9170_init_rf_banks_0_7()
1690 wiphy_err(ar->hw->wiphy, "channel change: %d -> %d " in carl9170_set_channel()
1718 wiphy_err(ar->hw->wiphy, "failed to set " in carl9170_set_channel()
/linux-4.1.27/drivers/net/wireless/cw1200/
Dmain.c290 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in cw1200_init_common()
298 hw->wiphy->wowlan = &cw1200_wowlan_support; in cw1200_init_common()
301 hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD; in cw1200_init_common()
314 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &cw1200_band_2ghz; in cw1200_init_common()
316 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = &cw1200_band_5ghz; in cw1200_init_common()
320 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in cw1200_init_common()
330 hw->wiphy->max_scan_ssids = 2; in cw1200_init_common()
331 hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN; in cw1200_init_common()
339 if (hw->wiphy->perm_addr[3] == 0 && in cw1200_init_common()
340 hw->wiphy->perm_addr[4] == 0 && in cw1200_init_common()
[all …]
Dscan.c33 wiphy_dbg(priv->hw->wiphy, "[SCAN] hw req, type %d, %d channels, flags: 0x%x.\n", in cw1200_scan_start()
75 wiphy_dbg(hw->wiphy, "[SCAN] Scan request for %d SSIDs.\n", in cw1200_hw_scan()
177 wiphy_warn(priv->hw->wiphy, in cw1200_scan_work()
181 wiphy_dbg(priv->hw->wiphy, in cw1200_scan_work()
184 wiphy_dbg(priv->hw->wiphy, in cw1200_scan_work()
281 wiphy_dbg(priv->hw->wiphy, "[CQM] Requeue BSS loss.\n"); in cw1200_scan_restart_delayed()
291 wiphy_dbg(priv->hw->wiphy, "[SCAN] Direct probe complete.\n"); in cw1200_scan_complete()
343 wiphy_warn(priv->hw->wiphy, in cw1200_scan_timeout()
383 wiphy_dbg(priv->hw->wiphy, "[SCAN] Direct probe work.\n"); in cw1200_probe_work()
Dbh.c134 wiphy_warn(priv->hw->wiphy, "BH error -- can't suspend\n"); in cw1200_bh_suspend()
149 wiphy_warn(priv->hw->wiphy, "BH error -- can't resume\n"); in cw1200_bh_resume()
484 wiphy_warn(priv->hw->wiphy, in cw1200_bh()
507 wiphy_warn(priv->hw->wiphy, in cw1200_bh()
535 wiphy_err(priv->hw->wiphy, in cw1200_bh()
Dwsm.c852 priv->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = NULL; in wsm_startup_indication()
854 priv->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; in wsm_startup_indication()
1220 …wiphy_err(priv->hw->wiphy, "[WSM] TX Frames (%d) stuck in firmware, killing BH\n", priv->hw_bufs_u… in wsm_flush_tx()
1270 wiphy_err(priv->hw->wiphy, in wsm_handle_exception()
1274 wiphy_err(priv->hw->wiphy, in wsm_handle_exception()
1279 wiphy_err(priv->hw->wiphy, in wsm_handle_exception()
1283 wiphy_err(priv->hw->wiphy, in wsm_handle_exception()
1287 wiphy_err(priv->hw->wiphy, in wsm_handle_exception()
1296 wiphy_err(priv->hw->wiphy, "Firmware exception.\n"); in wsm_handle_exception()
1389 wiphy_warn(priv->hw->wiphy, in wsm_handle_rx()
[all …]
Dtxrx.c435 return &priv->hw->wiphy->bands[priv->channel->band]-> in cw1200_get_tx_rate()
463 wiphy_err(priv->hw->wiphy, in cw1200_tx_h_calc_link_ids()
530 wiphy_err(priv->hw->wiphy, in cw1200_tx_h_align()
537 wiphy_err(priv->hw->wiphy, in cw1200_tx_h_align()
571 wiphy_err(priv->hw->wiphy, in cw1200_tx_h_wsm()
885 wiphy_warn(priv->hw->wiphy, "Requeue for link_id %d (try %d). STAs asleep: 0x%.8X\n", in cw1200_tx_confirm_cb()
1072 wiphy_warn(priv->hw->wiphy, "Mailformed SDU rx'ed. Size is lesser than IEEE header.\n"); in cw1200_rx_cb()
1139 wiphy_warn(priv->hw->wiphy, "Malformed SDU rx'ed. Size is lesser than crypto headers.\n"); in cw1200_rx_cb()
1359 wiphy_info(priv->hw->wiphy, in cw1200_alloc_link_id()
Dpm.c154 wiphy_dbg(priv->hw->wiphy, "Suspend interrupted.\n"); in cw1200_can_suspend()
268 wiphy_err(priv->hw->wiphy, in cw1200_wow_suspend()
Dsta.c81 memcpy(priv->mac_addr, dev->wiphy->perm_addr, ETH_ALEN); in cw1200_start()
509 wiphy_err(priv->hw->wiphy, in cw1200_update_filtering()
1014 wiphy_info(priv->hw->wiphy, "radar pulse detected\n"); in cw1200_event_handler()
1243 bss = cfg80211_get_bss(priv->hw->wiphy, priv->channel, bssid, NULL, 0, in cw1200_do_join()
1376 cfg80211_put_bss(priv->hw->wiphy, bss); in cw1200_do_join()
1402 wiphy_dbg(priv->hw->wiphy, "Delayed unjoin is already scheduled.\n"); in cw1200_do_unjoin()
1566 wiphy_info(priv->hw->wiphy, in cw1200_sta_add()
2130 wiphy_warn(priv->hw->wiphy, in cw1200_mcast_timeout()
Ddebug.c397 priv->hw->wiphy->debugfsdir); in cw1200_debug_init()
/linux-4.1.27/drivers/net/wireless/p54/
Deeprom.c182 wiphy_err(dev->wiphy, "%s%s%s is/are missing for " in p54_generate_band()
208 wiphy_err(dev->wiphy, "Disabling totally damaged %d GHz band\n", in p54_generate_band()
332 wiphy_err(dev->wiphy, in p54_generate_channel_lists()
529 wiphy_err(dev->wiphy, "rssical size mismatch.\n"); in p54_parse_rssical()
546 wiphy_err(dev->wiphy, "invalid rssi database.\n"); in p54_parse_rssical()
595 wiphy_err(dev->wiphy, in p54_parse_rssical()
601 wiphy_err(dev->wiphy, "please report this issue.\n"); in p54_parse_rssical()
642 wiphy_err(dev->wiphy, in p54_parse_default_country()
649 wiphy_err(dev->wiphy, "please report this issue.\n"); in p54_parse_default_country()
655 regulatory_hint(dev->wiphy, country->alpha2); in p54_parse_default_country()
[all …]
Dled.c59 wiphy_err(priv->hw->wiphy, in p54_update_leds()
95 wiphy_name(priv->hw->wiphy), name); in p54_register_led()
102 err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev); in p54_register_led()
104 wiphy_err(priv->hw->wiphy, in p54_register_led()
Dfwio.c65 wiphy_info(priv->hw->wiphy, in p54_parse_firmware()
72 wiphy_err(priv->hw->wiphy, in p54_parse_firmware()
127 wiphy_info(priv->hw->wiphy, in p54_parse_firmware()
130 snprintf(dev->wiphy->fw_version, sizeof(dev->wiphy->fw_version), in p54_parse_firmware()
136 wiphy_info(priv->hw->wiphy, in p54_parse_firmware()
158 wiphy_info(priv->hw->wiphy, in p54_parse_firmware()
256 wiphy_err(priv->hw->wiphy, in p54_download_eeprom()
535 wiphy_err(priv->hw->wiphy, "frequency change to channel %d failed.\n", in p54_scan()
696 wiphy_err(priv->hw->wiphy, in p54_upload_key()
Dtxrx.c42 wiphy_debug(priv->hw->wiphy, "/ --- tx queue dump (%d entries) ---\n", in p54_dump_tx_queue()
52 wiphy_debug(priv->hw->wiphy, in p54_dump_tx_queue()
66 wiphy_debug(priv->hw->wiphy, in p54_dump_tx_queue()
615 wiphy_info(priv->hw->wiphy, "radar (freq:%d MHz)\n", freq); in p54_rx_trap()
628 wiphy_rfkill_set_hw_state(priv->hw->wiphy, true); in p54_rx_trap()
631 wiphy_rfkill_set_hw_state(priv->hw->wiphy, false); in p54_rx_trap()
634 wiphy_info(priv->hw->wiphy, "received event:%x freq:%d\n", in p54_rx_trap()
660 wiphy_debug(priv->hw->wiphy, in p54_rx_control()
Dmain.c758 dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in p54_init_common()
788 dev->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; in p54_init_common()
824 dev_info(pdev, "is registered as '%s'\n", wiphy_name(dev->wiphy)); in p54_register_common()
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1046 struct wiphy *wiphy = NULL; in rsi_mac80211_attach() local
1058 wiphy = hw->wiphy; in rsi_mac80211_attach()
1082 ether_addr_copy(hw->wiphy->addr_mask, addr_mask); in rsi_mac80211_attach()
1084 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in rsi_mac80211_attach()
1085 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in rsi_mac80211_attach()
1086 wiphy->retry_short = RETRY_SHORT; in rsi_mac80211_attach()
1087 wiphy->retry_long = RETRY_LONG; in rsi_mac80211_attach()
1088 wiphy->frag_threshold = IEEE80211_MAX_FRAG_THRESHOLD; in rsi_mac80211_attach()
1089 wiphy->rts_threshold = IEEE80211_MAX_RTS_THRESHOLD; in rsi_mac80211_attach()
1090 wiphy->flags = 0; in rsi_mac80211_attach()
[all …]
Drsi_91x_debugfs.c298 wiphy_name(adapter->hw->wiphy)); in rsi_init_dbgfs()
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00firmware.c33 struct device *device = wiphy_dev(rt2x00dev->hw->wiphy); in rt2x00lib_request_firmware()
65 snprintf(rt2x00dev->hw->wiphy->fw_version, in rt2x00lib_request_firmware()
66 sizeof(rt2x00dev->hw->wiphy->fw_version), "%d.%d", in rt2x00lib_request_firmware()
Drt2x00dev.c982 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = in rt2x00lib_probe_hw_modes()
1000 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = in rt2x00lib_probe_hw_modes()
1019 if (likely(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ])) { in rt2x00lib_remove_hw()
1020 kfree(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ]->channels); in rt2x00lib_remove_hw()
1021 kfree(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ]->bitrates); in rt2x00lib_remove_hw()
1022 rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = NULL; in rt2x00lib_remove_hw()
1023 rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; in rt2x00lib_remove_hw()
1264 rt2x00dev->hw->wiphy->iface_combinations = rt2x00dev->if_combinations; in rt2x00lib_set_if_combinations()
1265 rt2x00dev->hw->wiphy->n_iface_combinations = 1; in rt2x00lib_set_if_combinations()
1320 rt2x00dev->hw->wiphy->addr_mask[ETH_ALEN - 1] = in rt2x00lib_probe_dev()
[all …]
Drt2x00lib.h409 wiphy_rfkill_start_polling(rt2x00dev->hw->wiphy); in rt2x00rfkill_register()
415 wiphy_rfkill_stop_polling(rt2x00dev->hw->wiphy); in rt2x00rfkill_unregister()
Drt2x00leds.c106 struct device *device = wiphy_dev(rt2x00dev->hw->wiphy); in rt2x00leds_register_led()
129 const char *phy_name = wiphy_name(rt2x00dev->hw->wiphy); in rt2x00leds_register()
Drt2x00.h70 wiphy_err((dev)->hw->wiphy, "%s: Error - " fmt, \
73 wiphy_warn((dev)->hw->wiphy, "%s: Warning - " fmt, \
76 wiphy_info((dev)->hw->wiphy, "%s: Info - " fmt, \
81 wiphy_dbg((dev)->hw->wiphy, "%s: Debug - " fmt, \
84 wiphy_dbg((dev)->hw->wiphy, "%s: EEPROM recovery - " fmt, \
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c305 struct ieee80211_regdomain *iwl_mvm_get_regdomain(struct wiphy *wiphy, in iwl_mvm_get_regdomain() argument
311 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in iwl_mvm_get_regdomain()
363 regulatory_set_wiphy_regd(mvm->hw->wiphy, regd); in iwl_mvm_update_changed_regdom()
372 return iwl_mvm_get_regdomain(mvm->hw->wiphy, "ZZ", in iwl_mvm_get_current_regdomain()
385 rtnl_dereference(mvm->hw->wiphy->regd); in iwl_mvm_init_fw_regd()
400 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, r->alpha2, used_src, in iwl_mvm_init_fw_regd()
407 ret = regulatory_set_wiphy_regd_sync_rtnl(mvm->hw->wiphy, regd); in iwl_mvm_init_fw_regd()
454 hw->wiphy->features |= in iwl_mvm_mac_setup_register()
462 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in iwl_mvm_mac_setup_register()
469 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; in iwl_mvm_mac_setup_register()
[all …]
Dled.c111 wiphy_name(mvm->hw->wiphy)); in iwl_mvm_leds_init()
Dnvm.c831 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, in iwl_mvm_init_mcc()
837 retval = regulatory_set_wiphy_regd_sync_rtnl(mvm->hw->wiphy, regd); in iwl_mvm_init_mcc()
865 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, src, NULL); in iwl_mvm_rx_chub_update_mcc()
869 regulatory_set_wiphy_regd(mvm->hw->wiphy, regd); in iwl_mvm_rx_chub_update_mcc()
Dops.c493 snprintf(mvm->hw->wiphy->fw_version, in iwl_op_mode_mvm_start()
494 sizeof(mvm->hw->wiphy->fw_version), in iwl_op_mode_mvm_start()
808 wiphy_rfkill_set_hw_state(mvm->hw->wiphy, iwl_mvm_is_radio_killed(mvm)); in iwl_mvm_set_hw_ctkill_state()
821 wiphy_rfkill_set_hw_state(mvm->hw->wiphy, iwl_mvm_is_radio_killed(mvm)); in iwl_mvm_set_hw_rfkill_state()
/linux-4.1.27/drivers/net/wireless/b43legacy/
Dleds.c151 "b43legacy-%s::tx", wiphy_name(hw->wiphy)); in b43legacy_map_led()
156 "b43legacy-%s::rx", wiphy_name(hw->wiphy)); in b43legacy_map_led()
166 "b43legacy-%s::radio", wiphy_name(hw->wiphy)); in b43legacy_map_led()
177 "b43legacy-%s::assoc", wiphy_name(hw->wiphy)); in b43legacy_map_led()
Drfkill.c76 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in b43legacy_rfkill_poll()
Dmain.c194 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43legacyinfo()
213 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43legacyerr()
232 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43legacywarn()
249 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43legacydbg()
1685 struct wiphy *wiphy = dev->wl->hw->wiphy; in b43legacy_upload_microcode() local
1795 snprintf(wiphy->fw_version, sizeof(wiphy->fw_version), "%u.%u", in b43legacy_upload_microcode()
1797 wiphy->hw_version = dev->dev->id.coreid; in b43legacy_upload_microcode()
2462 "%s_%s", KBUILD_MODNAME, wiphy_name(wl->hw->wiphy)); in b43legacy_rng_init()
2797 dev->wl->hw->wiphy->bands[IEEE80211_BAND_2GHZ]; in b43legacy_update_basic_rates()
3516 wiphy_rfkill_start_polling(hw->wiphy); in b43legacy_op_start()
[all …]
Ddebugfs.c407 snprintf(devdir, sizeof(devdir), "%s", wiphy_name(dev->wl->hw->wiphy)); in b43legacy_debugfs_add_device()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dmac80211.c128 hw->wiphy->features |= NL80211_FEATURE_DYNAMIC_SMPS | in iwlagn_mac_setup_register()
144 hw->wiphy->interface_modes |= ctx->interface_modes; in iwlagn_mac_setup_register()
145 hw->wiphy->interface_modes |= ctx->exclusive_interface_modes; in iwlagn_mac_setup_register()
150 if (hw->wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) { in iwlagn_mac_setup_register()
151 hw->wiphy->iface_combinations = in iwlagn_mac_setup_register()
153 hw->wiphy->n_iface_combinations = in iwlagn_mac_setup_register()
157 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; in iwlagn_mac_setup_register()
158 hw->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | in iwlagn_mac_setup_register()
180 hw->wiphy->wowlan = &priv->wowlan_support; in iwlagn_mac_setup_register()
185 hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; in iwlagn_mac_setup_register()
[all …]
Dled.c186 wiphy_name(priv->hw->wiphy)); in iwl_leds_init()
Dmain.c1313 priv->hw->wiphy->addresses = priv->addresses; in iwl_op_mode_dvm_start()
1314 priv->hw->wiphy->n_addresses = 1; in iwl_op_mode_dvm_start()
1320 priv->hw->wiphy->n_addresses++; in iwl_op_mode_dvm_start()
1368 snprintf(priv->hw->wiphy->fw_version, in iwl_op_mode_dvm_start()
1369 sizeof(priv->hw->wiphy->fw_version), in iwl_op_mode_dvm_start()
2027 wiphy_rfkill_set_hw_state(priv->hw->wiphy, state); in iwl_set_hw_rfkill_state()
Dagn.h192 return priv->hw->wiphy->bands[band]; in iwl_get_hw_mode()
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8180/
Drtl8225se.c135 wiphy_err(dev->wiphy, PFX in rtl8187se_three_wire_io()
153 wiphy_err(dev->wiphy, PFX in rtl8187se_three_wire_io()
316 wiphy_info(dev->wiphy, "RTL8225-SE version %s\n", in rtl8225se_rf_init()
378 wiphy_info(dev->wiphy, "Xtal cal\n"); in rtl8225se_rf_init()
381 wiphy_info(dev->wiphy, "NO Xtal cal\n"); in rtl8225se_rf_init()
Ddev.c419 wiphy_err(dev->wiphy, "No RX DMA Descriptor avail\n"); in rtl8187se_interrupt()
835 wiphy_err(dev->wiphy, "reset timeout!\n"); in rtl8180_init_hw()
1010 wiphy_err(dev->wiphy, "Cannot allocate RX ring\n"); in rtl8180_init_rx_ring()
1021 wiphy_err(dev->wiphy, "Cannot allocate RX skb\n"); in rtl8180_init_rx_ring()
1031 wiphy_err(dev->wiphy, "Cannot map DMA for RX skb\n"); in rtl8180_init_rx_ring()
1075 wiphy_err(dev->wiphy, "Cannot allocate TX ring (prio = %d)\n", in rtl8180_init_tx_ring()
1140 wiphy_err(dev->wiphy, "failed to register IRQ handler\n"); in rtl8180_start()
1803 dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in rtl8180_probe()
1808 dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in rtl8180_probe()
1927 wiphy_info(dev->wiphy, "hwaddr %pm, %s + %s\n", in rtl8180_probe()
/linux-4.1.27/drivers/net/wireless/b43/
Dleds.c178 "b43-%s::tx", wiphy_name(hw->wiphy)); in b43_map_led()
183 "b43-%s::rx", wiphy_name(hw->wiphy)); in b43_map_led()
193 "b43-%s::radio", wiphy_name(hw->wiphy)); in b43_map_led()
201 "b43-%s::assoc", wiphy_name(hw->wiphy)); in b43_map_led()
Drfkill.c59 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in b43_rfkill_poll()
Dmain.c401 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43info()
422 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43err()
443 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43warn()
462 (wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan", &vaf); in b43dbg()
2621 struct wiphy *wiphy = dev->wl->hw->wiphy; in b43_upload_microcode() local
2743 snprintf(wiphy->fw_version, sizeof(wiphy->fw_version), "%u.%u", in b43_upload_microcode()
2745 wiphy->hw_version = dev->dev->core_id; in b43_upload_microcode()
3584 "%s_%s", KBUILD_MODNAME, wiphy_name(wl->hw->wiphy)); in b43_rng_init()
4073 dev->wl->hw->wiphy->bands[b43_current_band(dev->wl)]; in b43_update_basic_rates()
5099 wiphy_rfkill_start_polling(hw->wiphy); in b43_op_start()
[all …]
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Devent.c80 skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, NULL, 20, in wlcore_smart_config_sync_event()
101 skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, NULL, in wlcore_smart_config_decode_event()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dmac.c455 value = clamp_t(u32, arvif->ar->hw->wiphy->frag_threshold, in ath10k_mac_set_frag()
1414 bss = cfg80211_get_bss(ar->hw->wiphy, ar->hw->conf.chandef.chan, in ath10k_peer_assoc_h_crypto()
1430 cfg80211_put_bss(ar->hw->wiphy, bss); in ath10k_peer_assoc_h_crypto()
1457 sband = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; in ath10k_peer_assoc_h_rates()
2115 bands = hw->wiphy->bands; in ath10k_update_channel_list()
2248 static void ath10k_reg_notifier(struct wiphy *wiphy, in ath10k_reg_notifier() argument
2251 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath10k_reg_notifier()
2255 ath_reg_notifier_apply(wiphy, request, &ar->ath_common.regulatory); in ath10k_reg_notifier()
3391 ret = ath10k_mac_set_rts(arvif, ar->hw->wiphy->rts_threshold); in ath10k_add_interface()
3398 ret = ath10k_mac_set_frag(arvif, ar->hw->wiphy->frag_threshold); in ath10k_add_interface()
[all …]
Dtestmode.c66 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath10k_tm_event_wmi()
120 skb = cfg80211_testmode_alloc_reply_skb(ar->hw->wiphy, in ath10k_tm_cmd_get_version()
Dcore.c606 if (ie_len > sizeof(ar->hw->wiphy->fw_version) - 1) in ath10k_core_fetch_firmware_api_n()
609 memcpy(ar->hw->wiphy->fw_version, data, ie_len); in ath10k_core_fetch_firmware_api_n()
610 ar->hw->wiphy->fw_version[ie_len] = '\0'; in ath10k_core_fetch_firmware_api_n()
614 ar->hw->wiphy->fw_version); in ath10k_core_fetch_firmware_api_n()
1091 ar->hw->wiphy->fw_version); in ath10k_core_start()
1213 ar->hw->wiphy->hw_version = target_info.version; in ath10k_core_probe_fw()
/linux-4.1.27/drivers/staging/vt6656/
Dchannel.c160 priv->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = in vnt_init_bands()
174 priv->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = in vnt_init_bands()
Dmain_usb.c953 struct wiphy *wiphy; in vt6656_probe() local
983 wiphy = priv->hw->wiphy; in vt6656_probe()
985 wiphy->frag_threshold = FRAG_THRESH_DEF; in vt6656_probe()
986 wiphy->rts_threshold = RTS_THRESH_DEF; in vt6656_probe()
987 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in vt6656_probe()
Ddpc.c100 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dmain.c69 struct device *dev = wiphy_dev(wl->hw->wiphy); in wl1251_fetch_firmware()
108 struct device *dev = wiphy_dev(wl->hw->wiphy); in wl1251_fetch_nvs()
391 struct wiphy *wiphy = hw->wiphy; in wl1251_op_start() local
426 wiphy->hw_version = wl->chip_id; in wl1251_op_start()
427 strncpy(wiphy->fw_version, wl->fw_ver, sizeof(wiphy->fw_version)); in wl1251_op_start()
1486 wl->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in wl1251_init_ieee80211()
1488 wl->hw->wiphy->max_scan_ssids = 1; in wl1251_init_ieee80211()
1489 wl->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &wl1251_band_2ghz; in wl1251_init_ieee80211()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Dled.c191 snprintf(name, sizeof(name), "ath5k-%s::rx", wiphy_name(hw->wiphy)); in ath5k_init_leds()
197 snprintf(name, sizeof(name), "ath5k-%s::tx", wiphy_name(hw->wiphy)); in ath5k_init_leds()
Dbase.c253 static void ath5k_reg_notifier(struct wiphy *wiphy, in ath5k_reg_notifier() argument
256 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath5k_reg_notifier()
260 ath_reg_notifier_apply(wiphy, request, regulatory); in ath5k_reg_notifier()
384 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in ath5k_setup_bands()
410 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in ath5k_setup_bands()
430 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband; in ath5k_setup_bands()
708 return &hw->wiphy->bands[info->band]->bitrates[ bf->rates[idx].idx ]; in ath5k_get_rate()
2547 hw->wiphy->interface_modes = in ath5k_init_ah()
2553 hw->wiphy->iface_combinations = &if_comb; in ath5k_init_ah()
2554 hw->wiphy->n_iface_combinations = 1; in ath5k_init_ah()
[all …]
Drfkill.c82 wiphy_rfkill_set_hw_state(ah->hw->wiphy, blocked); in ath5k_tasklet_rfkill_toggle()
Dpci.c257 dev_info(&pdev->dev, "registered as '%s'\n", wiphy_name(hw->wiphy)); in ath5k_pci_probe()
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/
Dmain.c954 wcn->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in wcn36xx_init_ieee80211()
959 wcn->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &wcn_band_2ghz; in wcn36xx_init_ieee80211()
960 wcn->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = &wcn_band_5ghz; in wcn36xx_init_ieee80211()
962 wcn->hw->wiphy->cipher_suites = cipher_suites; in wcn36xx_init_ieee80211()
963 wcn->hw->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); in wcn36xx_init_ieee80211()
965 wcn->hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD; in wcn36xx_init_ieee80211()
968 wcn->hw->wiphy->wowlan = &wowlan_support; in wcn36xx_init_ieee80211()
Ddebug.c164 wcn->hw->wiphy->debugfsdir); in wcn36xx_debugfs_init()
/linux-4.1.27/drivers/staging/vt6655/
Dchannel.c147 priv->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = in vnt_init_bands()
162 priv->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = in vnt_init_bands()
Ddpc.c68 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
Ddevice_main.c1681 struct wiphy *wiphy; in vt6655_probe() local
1803 wiphy = priv->hw->wiphy; in vt6655_probe()
1805 wiphy->frag_threshold = FRAG_THRESH_DEF; in vt6655_probe()
1806 wiphy->rts_threshold = RTS_THRESH_DEF; in vt6655_probe()
1807 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in vt6655_probe()
/linux-4.1.27/Documentation/networking/
Dregulatory.txt81 registering on its struct wiphy a reg_notifier() callback. This notifier
129 was found. You need to do this after you have registered your wiphy. You
134 regulatory_hint(hw->wiphy, alpha2);
170 Then in some part of your code after your wiphy has been registered:
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_hal.h185 struct wiphy *wiphy);
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D3945-mac.c827 wiphy_rfkill_set_hw_state(il->hw->wiphy, in il3945_hdl_card_state()
1925 snprintf(il->hw->wiphy->fw_version, sizeof(il->hw->wiphy->fw_version), in il3945_read_ucode()
2514 wiphy_rfkill_set_hw_state(il->hw->wiphy, new_rfkill); in il3945_rfkill_poll()
3567 hw->wiphy->interface_modes = in il3945_setup_mac()
3570 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; in il3945_setup_mac()
3571 hw->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | in il3945_setup_mac()
3574 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; in il3945_setup_mac()
3576 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; in il3945_setup_mac()
3578 hw->wiphy->max_scan_ie_len = IL3945_MAX_PROBE_REQUEST - 24 - 2; in il3945_setup_mac()
3584 il->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = in il3945_setup_mac()
[all …]
D4965-mac.c4169 wiphy_rfkill_set_hw_state(il->hw->wiphy, in il4965_hdl_card_state()
4464 wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill); in il4965_irq_tasklet()
4846 snprintf(il->hw->wiphy->fw_version, sizeof(il->hw->wiphy->fw_version), in il4965_ucode_callback()
5565 wiphy_rfkill_set_hw_state(il->hw->wiphy, true); in __il4965_up()
5760 hw->wiphy->features |= NL80211_FEATURE_DYNAMIC_SMPS | in il4965_mac_setup_register()
5766 hw->wiphy->interface_modes = in il4965_mac_setup_register()
5769 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; in il4965_mac_setup_register()
5770 hw->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | in il4965_mac_setup_register()
5777 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; in il4965_mac_setup_register()
5779 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX; in il4965_mac_setup_register()
[all …]
/linux-4.1.27/drivers/net/wireless/zd1211rw/
Dzd_mac.h302 return mac->hw->wiphy->perm_addr; in zd_mac_get_perm_addr()
Dzd_chip.c1026 struct wiphy *wiphy = zd_chip_to_mac(chip)->hw->wiphy; in print_fw_version() local
1037 snprintf(wiphy->fw_version, sizeof(wiphy->fw_version), in print_fw_version()
Dzd_mac.c227 r = regulatory_hint(hw->wiphy, alpha2); in zd_mac_init_hw()
1398 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &mac->band; in zd_mac_alloc_hw()
1405 hw->wiphy->interface_modes = in zd_mac_alloc_hw()
/linux-4.1.27/drivers/net/wireless/ath/ar5523/
Dar5523.c1005 ar5523_config_multi(ar, CFG_MAC_ADDR, &ar->hw->wiphy->perm_addr, in ar5523_start()
1157 band = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; in ar5523_get_wlan_mode()
1205 band = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; in ar5523_create_rateset()
1480 ar->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &ar->band; in ar5523_init_modes()
1691 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in ar5523_probe()
/linux-4.1.27/drivers/net/wireless/libertas_tf/
Dmain.c648 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in lbtf_add_card()
649 hw->wiphy->interface_modes = in lbtf_add_card()

12