/linux/net/wireless/ |
H A D | reg.h | 7 * Copyright 2008-2011 Luis R. Rodriguez <mcgrof@qca.qualcomm.com> 34 enum nl80211_dfs_regions reg_get_dfs_region(struct wiphy *wiphy); 40 * regulatory_hint_indoor - hint operation in indoor env. or not 48 * regulatory_netlink_notify - notify on released netlink socket 53 void wiphy_regulatory_register(struct wiphy *wiphy); 54 void wiphy_regulatory_deregister(struct wiphy *wiphy); 68 * regulatory_hint_found_beacon - hints a beacon was found on a channel 69 * @wiphy: the wireless device where the beacon was found on 76 * world roaming -- when we do not know our current location. This is 78 * 1-11 are already enabled by the world regulatory domain; and on [all …]
|
H A D | of.c | 21 static bool wiphy_freq_limits_valid_chan(struct wiphy *wiphy, in wiphy_freq_limits_valid_chan() argument 33 MHZ_TO_KHZ(chan->center_freq), in wiphy_freq_limits_valid_chan() 41 static void wiphy_freq_limits_apply(struct wiphy *wiphy, in wiphy_freq_limits_apply() argument 52 struct ieee80211_supported_band *sband = wiphy->bands[band]; in wiphy_freq_limits_apply() 57 for (i = 0; i < sband->n_channels; i++) { in wiphy_freq_limits_apply() 58 struct ieee80211_channel *chan = &sband->channels[i]; in wiphy_freq_limits_apply() 60 if (chan->flags & IEEE80211_CHAN_DISABLED) in wiphy_freq_limits_apply() 63 if (!wiphy_freq_limits_valid_chan(wiphy, freq_limits, in wiphy_freq_limits_apply() 67 chan->center_freq); in wiphy_freq_limits_apply() 68 chan->flags |= IEEE80211_CHAN_DISABLED; in wiphy_freq_limits_apply() [all …]
|
H A D | reg.c | 2 * Copyright 2002-2005, Instant802 Networks, Inc. 3 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2008-2011 Luis R. Rodriguez <mcgrof@qca.qualcomm.com> 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2018 - 2025 Intel Corporation 29 * looking up the allowable channels in a driver-local table and finally 30 * registering those channels in the wiphy structure. 42 * Note: When number of rules --> infinity we will not be able to 65 #include "rdev-op 150 get_wiphy_regdom(struct wiphy * wiphy) get_wiphy_regdom() argument 173 reg_get_dfs_region(struct wiphy * wiphy) reg_get_dfs_region() argument 1145 reg_get_regdomain(struct wiphy * wiphy) reg_get_regdomain() argument 1650 __freq_reg_info(struct wiphy * wiphy,u32 center_freq,u32 min_bw) __freq_reg_info() argument 1667 freq_reg_info(struct wiphy * wiphy,u32 center_freq) freq_reg_info() argument 1776 handle_channel_single_rule(struct wiphy * wiphy,enum nl80211_reg_initiator initiator,struct ieee80211_channel * chan,u32 flags,struct regulatory_request * lr,struct wiphy * request_wiphy,const struct ieee80211_reg_rule * reg_rule) handle_channel_single_rule() argument 1855 handle_channel_adjacent_rules(struct wiphy * wiphy,enum nl80211_reg_initiator initiator,struct ieee80211_channel * chan,u32 flags,struct regulatory_request * lr,struct wiphy * request_wiphy,const struct ieee80211_reg_rule * rrule1,const struct ieee80211_reg_rule * rrule2,struct ieee80211_freq_range * comb_range) handle_channel_adjacent_rules() argument 1975 handle_channel(struct wiphy * wiphy,enum nl80211_reg_initiator initiator,struct ieee80211_channel * chan) handle_channel() argument 2059 handle_band(struct wiphy * wiphy,enum nl80211_reg_initiator initiator,struct ieee80211_supported_band * sband) handle_band() argument 2102 reg_dev_ignore_cell_hint(struct wiphy * wiphy) reg_dev_ignore_cell_hint() argument 2113 reg_dev_ignore_cell_hint(struct wiphy * wiphy) reg_dev_ignore_cell_hint() argument 2119 wiphy_strict_alpha2_regd(struct wiphy * wiphy) wiphy_strict_alpha2_regd() argument 2127 ignore_reg_update(struct wiphy * wiphy,enum nl80211_reg_initiator initiator) ignore_reg_update() argument 2166 reg_is_world_roaming(struct wiphy * wiphy) reg_is_world_roaming() argument 2182 reg_call_notifier(struct wiphy * wiphy,struct regulatory_request * request) reg_call_notifier() argument 2189 handle_reg_beacon(struct wiphy * wiphy,unsigned int chan_idx,struct reg_beacon * reg_beacon) handle_reg_beacon() argument 2233 wiphy_update_new_beacon(struct wiphy * wiphy,struct reg_beacon * reg_beacon) wiphy_update_new_beacon() argument 2251 wiphy_update_beacon_reg(struct wiphy * wiphy) wiphy_update_beacon_reg() argument 2267 reg_process_beacons(struct wiphy * wiphy) reg_process_beacons() argument 2290 reg_process_ht_flags_channel(struct wiphy * wiphy,struct ieee80211_channel * channel) reg_process_ht_flags_channel() argument 2346 reg_process_ht_flags_band(struct wiphy * wiphy,struct ieee80211_supported_band * sband) reg_process_ht_flags_band() argument 2358 reg_process_ht_flags(struct wiphy * wiphy) reg_process_ht_flags() argument 2369 reg_wdev_chan_valid(struct wiphy * wiphy,struct wireless_dev * wdev) reg_wdev_chan_valid() argument 2466 reg_leave_invalid_chans(struct wiphy * wiphy) reg_leave_invalid_chans() argument 2471 guard(wiphy)(wiphy); reg_leave_invalid_chans() local 2502 wiphy_update_regulatory(struct wiphy * wiphy,enum nl80211_reg_initiator initiator) wiphy_update_regulatory() argument 2535 struct wiphy *wiphy; update_all_wiphy_regulatory() local 2547 handle_channel_custom(struct wiphy * wiphy,struct ieee80211_channel * chan,const struct ieee80211_regdomain * regd,u32 min_bw) handle_channel_custom() argument 2607 handle_band_custom(struct wiphy * wiphy,struct ieee80211_supported_band * sband,const struct ieee80211_regdomain * regd) handle_band_custom() argument 2627 wiphy_apply_custom_regulatory(struct wiphy * wiphy,const struct ieee80211_regdomain * regd) wiphy_apply_custom_regulatory() argument 2808 reg_process_hint_driver(struct wiphy * wiphy,struct regulatory_request * driver_request) reg_process_hint_driver() argument 2860 __reg_process_hint_country_ie(struct wiphy * wiphy,struct regulatory_request * country_ie_request) __reg_process_hint_country_ie() argument 2912 reg_process_hint_country_ie(struct wiphy * wiphy,struct regulatory_request * country_ie_request) reg_process_hint_country_ie() argument 3016 wiphy_all_share_dfs_chan_state(struct wiphy * wiphy) wiphy_all_share_dfs_chan_state() argument 3032 struct wiphy *wiphy = NULL; reg_process_hint() local 3086 struct wiphy *wiphy; notify_self_managed_wiphys() local 3163 reg_process_self_managed_hint(struct wiphy * wiphy) reg_process_self_managed_hint() argument 3333 regulatory_hint(struct wiphy * wiphy,const char * alpha2) regulatory_hint() argument 3361 regulatory_hint_country_ie(struct wiphy * wiphy,enum nl80211_band band,const u8 * country_ie,u8 country_ie_len) regulatory_hint_country_ie() argument 3458 restore_custom_reg_settings(struct wiphy * wiphy) restore_custom_reg_settings() argument 3668 regulatory_hint_found_beacon(struct wiphy * wiphy,struct ieee80211_channel * beacon_chan,gfp_t gfp) regulatory_hint_found_beacon() argument 4031 __regulatory_set_wiphy_regd(struct wiphy * wiphy,struct ieee80211_regdomain * rd) __regulatory_set_wiphy_regd() argument 4067 regulatory_set_wiphy_regd(struct wiphy * wiphy,struct ieee80211_regdomain * rd) regulatory_set_wiphy_regd() argument 4080 regulatory_set_wiphy_regd_sync(struct wiphy * wiphy,struct ieee80211_regdomain * rd) regulatory_set_wiphy_regd_sync() argument 4098 wiphy_regulatory_register(struct wiphy * wiphy) wiphy_regulatory_register() argument 4124 wiphy_regulatory_deregister(struct wiphy * wiphy) wiphy_regulatory_deregister() argument 4198 regulatory_pre_cac_allowed(struct wiphy * wiphy) regulatory_pre_cac_allowed() argument 4260 regulatory_propagate_dfs_state(struct wiphy * wiphy,struct cfg80211_chan_def * chandef,enum nl80211_dfs_state dfs_state,enum nl80211_radar_event event) regulatory_propagate_dfs_state() argument [all...] |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 7 * Copyright 2015-2017 Intel Deutschland GmbH 8 * Copyright (C) 2018-2025 Intel Corporation 31 #include "wext-compat.h" 32 #include "rdev-op 73 get_wiphy_idx(struct wiphy * wiphy) get_wiphy_idx() argument 268 cfg80211_shutdown_all_interfaces(struct wiphy * wiphy) cfg80211_shutdown_all_interfaces() argument 283 guard(wiphy)(wiphy); cfg80211_shutdown_all_interfaces() local 365 cfg80211_sched_scan_stop_wk(struct wiphy * wiphy,struct wiphy_work * work) cfg80211_sched_scan_stop_wk() argument 600 wiphy_verify_iface_combinations(struct wiphy * wiphy,const struct ieee80211_iface_combination * iface_comb,int n_iface_comb,bool combined_radio) wiphy_verify_iface_combinations() argument 705 wiphy_verify_combinations(struct wiphy * wiphy) wiphy_verify_combinations() argument 733 wiphy_register(struct wiphy * wiphy) wiphy_register() argument 1100 wiphy_rfkill_start_polling(struct wiphy * wiphy) wiphy_rfkill_start_polling() argument 1142 wiphy_unregister(struct wiphy * wiphy) wiphy_unregister() argument 1241 wiphy_free(struct wiphy * wiphy) wiphy_free() argument 1248 wiphy_rfkill_set_hw_state_reason(struct wiphy * wiphy,bool blocked,enum rfkill_hard_block_reasons reason) wiphy_rfkill_set_hw_state_reason() argument 1408 cfg80211_stop_iface(struct wiphy * wiphy,struct wireless_dev * wdev,gfp_t gfp) cfg80211_stop_iface() argument 1680 wiphy_work_queue(struct wiphy * wiphy,struct wiphy_work * work) wiphy_work_queue() argument 1696 wiphy_work_cancel(struct wiphy * wiphy,struct wiphy_work * work) wiphy_work_cancel() argument 1712 wiphy_work_flush(struct wiphy * wiphy,struct wiphy_work * work) wiphy_work_flush() argument 1737 wiphy_delayed_work_queue(struct wiphy * wiphy,struct wiphy_delayed_work * dwork,unsigned long delay) wiphy_delayed_work_queue() argument 1754 wiphy_delayed_work_cancel(struct wiphy * wiphy,struct wiphy_delayed_work * dwork) wiphy_delayed_work_cancel() argument 1764 wiphy_delayed_work_flush(struct wiphy * wiphy,struct wiphy_delayed_work * dwork) wiphy_delayed_work_flush() argument 1774 wiphy_delayed_work_pending(struct wiphy * wiphy,struct wiphy_delayed_work * dwork) wiphy_delayed_work_pending() argument [all...] |
H A D | wext-compat.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cfg80211 - wext compat code 9 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net> 10 * Copyright (C) 2019-2023 Intel Corporation 21 #include <net/cfg80211-wext.h> 22 #include "wext-compat.h" 24 #include "rdev-ops.h" 30 strcpy(wrqu->name, "IEEE 802.11"); in cfg80211_wext_giwname() 37 __u32 *mode = &wrqu->mode; in cfg80211_wext_siwmode() 38 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_siwmode() [all …]
|
H A D | mlme.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2019-2020, 2022-2025 Intel Corporation 21 #include "rdev-ops.h" 27 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_rx_assoc_resp() 28 struct wiphy *wiphy = wdev->wiphy; in cfg80211_rx_assoc_resp() local 29 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_assoc_resp() 30 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)data->buf; in cfg80211_rx_assoc_resp() 33 .req_ie = data->req_ies, in cfg80211_rx_assoc_resp() 34 .req_ie_len = data->req_ies_len, in cfg80211_rx_assoc_resp() 35 .resp_ie = mgmt->u.assoc_resp.variable, in cfg80211_rx_assoc_resp() [all …]
|
/linux/include/net/ |
H A D | cfg80211.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH 9 * Copyright 2015-2017 Intel Deutschland GmbH 10 * Copyright (C) 2018-2025 Intel Corporation 50 * The fundamental structure for each device is the 'wiphy', of which each 52 * such wiphy ca 732 wiphy_read_of_freq_limits(struct wiphy * wiphy) wiphy_read_of_freq_limits() argument 2811 struct wiphy *wiphy; global() member 2947 struct wiphy *wiphy; global() member 5851 struct wiphy { global() struct 5854 mtxwiphy global() argument 5856 perm_addrwiphy global() argument 5857 addr_maskwiphy global() argument 5859 addresseswiphy global() argument 5861 mgmt_stypeswiphy global() argument 5863 iface_combinationswiphy global() argument 5864 n_iface_combinationswiphy global() argument 5865 software_iftypeswiphy global() argument 5867 n_addresseswiphy global() argument 5870 interface_modeswiphy global() argument 5872 max_acl_mac_addrswiphy global() argument 5874 featureswiphy global() argument 5898 iftype_akm_suiteswiphy global() argument 5911 wowlanwiphy global() argument 5927 iftype_ext_capabwiphy global() argument 5934 reg_notifierwiphy global() argument 5937 radio_cfgwiphy global() argument 5960 coalescewiphy global() argument 5962 vendor_commandswiphy global() argument 5963 vendor_eventswiphy global() argument 5964 n_vendor_eventswiphy global() argument 5966 max_ap_assoc_stawiphy global() argument 5968 max_num_csa_counterswiphy global() argument 5970 bss_select_supportwiphy global() argument 5972 nan_supported_bandswiphy global() argument 5974 txq_limitwiphy global() argument 5975 txq_memory_limitwiphy global() argument 5976 txq_quantumwiphy global() argument 5978 tx_queue_lenwiphy global() argument 6003 radiowiphy global() argument 6008 wiphy_net(struct wiphy * wiphy) wiphy_net() argument 6013 wiphy_net_set(struct wiphy * wiphy,struct net * net) wiphy_net_set() argument 6024 wiphy_priv(struct wiphy * wiphy) wiphy_priv() argument 6048 set_wiphy_dev(struct wiphy * wiphy,struct device * dev) set_wiphy_dev() argument 6059 wiphy_dev(struct wiphy * wiphy) wiphy_dev() argument 6070 wiphy_name(const struct wiphy * wiphy) wiphy_name() argument 6120 lockdep_assert_wiphy(wiphy) global() argument 6130 rcu_dereference_wiphy(wiphy,p) global() argument 6141 wiphy_dereference(wiphy,p) global() argument 6194 wiphy_lock(struct wiphy * wiphy) wiphy_lock() argument 6205 wiphy_unlock(struct wiphy * wiphy) wiphy_unlock() argument 6267 struct wiphy *wiphy; global() member 6460 struct wiphy *wiphy; global() member 6724 ieee80211_get_channel(struct wiphy * wiphy,int freq) ieee80211_get_channel() argument 7491 cfg80211_inform_bss_frame(struct wiphy * wiphy,struct ieee80211_channel * rx_channel,struct ieee80211_mgmt * mgmt,size_t len,s32 signal,gfp_t gfp) cfg80211_inform_bss_frame() argument 7623 cfg80211_inform_bss(struct wiphy * wiphy,struct ieee80211_channel * rx_channel,enum cfg80211_bss_frame_type ftype,const u8 * bssid,u64 tsf,u16 capability,u16 beacon_interval,const u8 * ie,size_t ielen,s32 signal,gfp_t gfp) cfg80211_inform_bss() argument 7676 cfg80211_get_bss(struct wiphy * wiphy,struct ieee80211_channel * channel,const u8 * bssid,const u8 * ssid,size_t ssid_len,enum ieee80211_bss_type bss_type,enum ieee80211_privacy privacy) cfg80211_get_bss() argument 7687 cfg80211_get_ibss(struct wiphy * wiphy,struct ieee80211_channel * channel,const u8 * ssid,size_t ssid_len) cfg80211_get_ibss() argument 7954 wiphy_rfkill_set_hw_state(struct wiphy * wiphy,bool blocked) wiphy_rfkill_set_hw_state() argument 7970 wiphy_rfkill_stop_polling(struct wiphy * wiphy) wiphy_rfkill_stop_polling() argument 8034 cfg80211_vendor_cmd_alloc_reply_skb(struct wiphy * wiphy,int approxlen) cfg80211_vendor_cmd_alloc_reply_skb() argument 8086 cfg80211_vendor_event_alloc(struct wiphy * wiphy,struct wireless_dev * wdev,int approxlen,int event_idx,gfp_t gfp) cfg80211_vendor_event_alloc() argument 8119 cfg80211_vendor_event_alloc_ucast(struct wiphy * wiphy,struct wireless_dev * wdev,unsigned int portid,int approxlen,int event_idx,gfp_t gfp) cfg80211_vendor_event_alloc_ucast() argument 8178 cfg80211_testmode_alloc_reply_skb(struct wiphy * wiphy,int approxlen) cfg80211_testmode_alloc_reply_skb() argument 8223 cfg80211_testmode_alloc_event_skb(struct wiphy * wiphy,int approxlen,gfp_t gfp) cfg80211_testmode_alloc_event_skb() argument 8972 cfg80211_radar_event(struct wiphy * wiphy,struct cfg80211_chan_def * chandef,gfp_t gfp) cfg80211_radar_event() argument 8980 cfg80211_background_radar_event(struct wiphy * wiphy,struct cfg80211_chan_def * chandef,gfp_t gfp) cfg80211_background_radar_event() argument 9122 cfg80211_report_obss_beacon(struct wiphy * wiphy,const u8 * frame,size_t len,int freq,int sig_dbm) cfg80211_report_obss_beacon() argument 9168 cfg80211_reg_can_beacon(struct wiphy * wiphy,struct cfg80211_chan_def * chandef,enum nl80211_iftype iftype) cfg80211_reg_can_beacon() argument 9193 cfg80211_reg_can_beacon_relax(struct wiphy * wiphy,struct cfg80211_chan_def * chandef,enum nl80211_iftype iftype) cfg80211_reg_can_beacon_relax() argument 9595 wiphy_ext_feature_set(struct wiphy * wiphy,enum nl80211_ext_feature_index ftidx) wiphy_ext_feature_set() argument 9616 wiphy_ext_feature_isset(struct wiphy * wiphy,enum nl80211_ext_feature_index ftidx) wiphy_ext_feature_isset() argument 9758 wiphy_printk(level,wiphy,format,args...) global() argument 9760 wiphy_emerg(wiphy,format,args...) global() argument 9762 wiphy_alert(wiphy,format,args...) global() argument 9764 wiphy_crit(wiphy,format,args...) global() argument 9766 wiphy_err(wiphy,format,args...) global() argument 9768 wiphy_warn(wiphy,format,args...) global() argument 9770 wiphy_notice(wiphy,format,args...) global() argument 9772 wiphy_info(wiphy,format,args...) global() argument 9774 wiphy_info_once(wiphy,format,args...) global() argument 9777 wiphy_err_ratelimited(wiphy,format,args...) global() argument 9779 wiphy_warn_ratelimited(wiphy,format,args...) global() argument 9782 wiphy_debug(wiphy,format,args...) global() argument 9785 wiphy_dbg(wiphy,format,args...) global() argument 9791 wiphy_vdbg(wiphy,format,args...) global() argument 9804 wiphy_WARN(wiphy,format,args...) global() argument [all...] |
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 50 mac = bus->mac[macid]; in qtnf_core_get_mac() 81 struct qtnf_vif *vif = qtnf_netdev_get_priv(skb->dev); in qtnf_packet_send_hi_pri() 83 skb_queue_tail(&vif->high_pri_tx_queue, skb); in qtnf_packet_send_hi_pri() 84 queue_work(vif->mac->bus->hprio_workqueue, &vif->high_pri_tx_work); in qtnf_packet_send_hi_pri() 97 if (unlikely(skb->dev != ndev)) { in qtnf_netdev_hard_start_xmit() 98 pr_err_ratelimited("invalid skb->dev"); in qtnf_netdev_hard_start_xmit() 103 if (unlikely(vif->wdev.iftype == NL80211_IFTYPE_UNSPECIFIED)) { in qtnf_netdev_hard_start_xmit() 104 pr_err_ratelimited("%s: VIF not initialized\n", ndev->name); in qtnf_netdev_hard_start_xmit() [all …]
|
H A D | cfg80211.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 74 qtnf_validate_iface_combinations(struct wiphy *wiphy, in qtnf_validate_iface_combinations() argument 86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations() 88 return -EFAULT; in qtnf_validate_iface_combinations() 91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations() 92 if (vif->wdev.iftype != NL80211_IFTYPE_UNSPECIFIED) in qtnf_validate_iface_combinations() 93 params.iftype_num[vif->wdev.iftype]++; in qtnf_validate_iface_combinations() 98 params.iftype_num[change_vif->wdev.iftype]--; in qtnf_validate_iface_combinations() 103 ret = cfg80211_check_combinations(wiphy, ¶ms); in qtnf_validate_iface_combinations() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mld/ |
H A D | mcc.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2024-2025 Intel Corporation 10 #include <iwl-nvm-parse.h> 20 const struct iwl_mcc_update_resp_v8 *mcc_resp_v8 = (const void *)pkt->data; in iwl_mld_copy_mcc_resp() 21 int n_channels = __le32_to_cpu(mcc_resp_v8->n_channels); in iwl_mld_copy_mcc_resp() 26 return ERR_PTR(-EINVAL); in iwl_mld_copy_mcc_resp() 30 return ERR_PTR(-ENOMEM); in iwl_mld_copy_mcc_resp() 68 mcc = le16_to_cpu(resp_cp->mcc); in iwl_mld_update_mcc() 74 le32_to_cpu(resp_cp->status), mcc, mcc >> 8, mcc & 0xff); in iwl_mld_update_mcc() 90 u8 resp_ver = iwl_fw_lookup_notif_ver(mld->fw, IWL_ALWAYS_LONG_GROUP, in iwl_mld_get_regdomain() [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | cfg80211.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2011-2020 NXP 63 * The mapping is as follows - 64 * NL80211_CHAN_NO_HT -> IEEE80211_HT_PARAM_CHA_SEC_NONE 65 * NL80211_CHAN_HT20 -> IEEE80211_HT_PARAM_CHA_SEC_NONE 66 * NL80211_CHAN_HT40PLUS -> IEEE80211_HT_PARAM_CHA_SEC_ABOVE 67 * NL80211_CHAN_HT40MINUS -> IEEE80211_HT_PARAM_CHA_SEC_BELOW 68 * Others -> IEEE80211_HT_PARAM_CHA_SEC_NONE 133 * This function retrieves the private structure from kernel wiphy structure. 135 static void *mwifiex_cfg80211_get_adapter(struct wiphy *wiphy) in mwifiex_cfg80211_get_adapter() argument [all …]
|
/linux/drivers/net/wireless/marvell/libertas/ |
H A D | cfg.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Holger Schurig <hs4233@mail.mn-solutions.de> 109 int ret = -ENOTSUPP; in lbs_auth_to_authtype() 132 * the hight-bit set for basic rates 170 * TLV-ID SSID 00 00 in lbs_add_ssid_tlv() 174 ssid_tlv->header.type = cpu_to_le16(TLV_TYPE_SSID); in lbs_add_ssid_tlv() 175 ssid_tlv->header.len = cpu_to_le16(ssid_len); in lbs_add_ssid_tlv() 176 memcpy(ssid_tlv->ssid, ssid, ssid_len); in lbs_add_ssid_tlv() 177 return sizeof(ssid_tlv->header) + ssid_len; in lbs_add_ssid_tlv() 184 * Actual channel data comes from priv->wdev->wiphy->channels. [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | led.c | 1 // SPDX-License-Identifier: GPL-2.0 24 if (!wl->radio_led.gpiod) in brcms_radio_led_ctrl() 28 gpiod_set_value(wl->radio_led.gpiod, 1); in brcms_radio_led_ctrl() 30 gpiod_set_value(wl->radio_led.gpiod, 0); in brcms_radio_led_ctrl() 45 if (wl->led_dev.dev) in brcms_led_unregister() 46 led_classdev_unregister(&wl->led_dev); in brcms_led_unregister() 47 if (wl->radio_led.gpiod) in brcms_led_unregister() 48 gpiochip_free_own_desc(wl->radio_led.gpiod); in brcms_led_unregister() 54 struct brcms_led *radio_led = &wl->radio_led; in brcms_led_register() 55 /* get CC core */ in brcms_led_register() [all …]
|
/linux/net/mac80211/ |
H A D | offchannel.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Off-channel operation helpers 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 11 * Copyright (C) 2019, 2022-2025 Intel Corporation 16 #include "driver-ops.h" 21 * the frames while we are doing off-channel work. This is optional 22 * because we *may* be doing work on-operatin 261 ieee80211_hw_roc_start(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_hw_roc_start() argument 488 ieee80211_roc_work(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_roc_work() argument 498 ieee80211_hw_roc_done(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_hw_roc_done() argument 674 struct wiphy *wiphy = local->hw.wiphy; ieee80211_start_roc_work() local 707 ieee80211_remain_on_channel(struct wiphy * wiphy,struct wireless_dev * wdev,struct ieee80211_channel * chan,unsigned int duration,u64 * cookie) ieee80211_remain_on_channel() argument 804 ieee80211_cancel_remain_on_channel(struct wiphy * wiphy,struct wireless_dev * wdev,u64 cookie) ieee80211_cancel_remain_on_channel() argument 813 ieee80211_mgmt_tx(struct wiphy * wiphy,struct wireless_dev * wdev,struct cfg80211_mgmt_tx_params * params,u64 * cookie) ieee80211_mgmt_tx() argument 1047 ieee80211_mgmt_tx_cancel_wait(struct wiphy * wiphy,struct wireless_dev * wdev,u64 cookie) ieee80211_mgmt_tx_cancel_wait() argument [all...] |
H A D | ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copied from cfg.c - originally 6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright (C) 2018, 2022-2023 Intel Corporation 14 #include "driver-ops.h" 21 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiph in ieee80211_set_ringparam() [all...] |
H A D | iface.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2002-2005, Instant802 Networks, Inc. 6 * Copyright 2005-2006, Devicescape Software, Inc. 9 * Copyright 2013-2014 Intel Mobile Communications GmbH 11 * Copyright (C) 2018-2025 Intel Corporation 26 #include "driver-ops.h" 34 * three-fol 1730 ieee80211_iface_work(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_iface_work() argument 1790 ieee80211_activate_links_work(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_activate_links_work() argument [all...] |
H A D | scan.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 10 * Copyright 2013-2015 Intel Mobile Communications GmbH 11 * Copyright 2016-2017 Intel Deutschland GmbH 12 * Copyright (C) 2018-2025 Intel Corporation 25 #include "driver-ops.h" 37 cfg80211_put_bss(local->h in ieee80211_rx_bss_put() 63 ieee80211_inform_bss(struct wiphy * wiphy,struct cfg80211_bss * cbss,const struct cfg80211_bss_ies * ies,void * data) ieee80211_inform_bss() argument 1086 ieee80211_scan_work(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_scan_work() argument 1446 ieee80211_sched_scan_stopped_work(struct wiphy * wiphy,struct wiphy_work * work) ieee80211_sched_scan_stopped_work() argument [all...] |
H A D | tdls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2015 - 2016 Intel Deutschland GmbH 9 * Copyright (C) 2019, 2021-2024 Intel Corporation 17 #include "driver-ops.h" 24 void ieee80211_tdls_peer_del_work(struct wiphy *wiphy, struct wiphy_work *wk) in ieee80211_tdls_peer_del_work() argument 31 local = sdata->local; in ieee80211_tdls_peer_del_work() 33 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_tdls_peer_del_work() 35 if (!is_zero_ether_addr(sdata->u.mgd.tdls_peer)) { in ieee80211_tdls_peer_del_work() 36 tdls_dbg(sdata, "TDLS del peer %pM\n", sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work() [all …]
|
H A D | driver-ops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2022-2025 Intel Corporation 9 #include "driver-ops.h" 18 lockdep_assert_wiphy(local->hw.wiphy); in drv_start() 20 if (WARN_ON(local->started)) in drv_start() 21 return -EALREADY; in drv_start() 24 local->started = true; in drv_start() 27 ret = local->ops->start(&local->hw); in drv_start() 31 local->started = false; in drv_start() 39 lockdep_assert_wiphy(local->hw.wiphy); in drv_stop() [all …]
|
H A D | agg-tx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2002-2005, Instant802 Networks, Inc. 7 * Copyright 2005-2006, Devicescape Software, Inc. 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 10 * Copyright 2007-2010, Intel Corporation 11 * Copyright(c) 2015-2017 Intel Deutschland GmbH 12 * Copyright (C) 2018 - 2024 Intel Corporation 20 #include "driver-ops.h" 24 * DOC: TX A-MPDU aggregation 28 * packets with a flag indicating A-MPDU aggregation. The driver [all …]
|
/linux/drivers/net/wireless/atmel/ |
H A D | at76c50x-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2002 - 2003 Oliver Kurth 20 * https://wireless.wiki.kernel.org/en/users/Drivers/at76c50x-usb#TODO 43 #include "at76c50x-usb.h" 46 #define DRIVER_NAME "at76c50x-usb" 67 #define DBG_RX_ATMEL_HDR 0x00010000 /* Atmel-specific Rx headers */ 108 [BOARD_503_ISL3861] = { "atmel_at76c503-i3861.bin" }, 109 [BOARD_503_ISL3863] = { "atmel_at76c503-i3863.bin" }, 110 [BOARD_503] = { "atmel_at76c503-rfmd.bin" }, 111 [BOARD_503_ACC] = { "atmel_at76c503-rfmd-acc.bin" }, [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 103 /* Operating Classes 131-135 */ 245 #define ath12k_a_rates_size (ARRAY_SIZE(ath12k_legacy_rates) - 4) 274 return "11na-ht20"; in ath12k_mac_phymode_str() 276 return "11ng-ht20"; in ath12k_mac_phymode_str() 278 return "11na-ht40"; in ath12k_mac_phymode_str() 280 return "11ng-ht40"; in ath12k_mac_phymode_str() 282 return "11ac-vht20"; in ath12k_mac_phymode_str() 284 return "11ac-vht40"; in ath12k_mac_phymode_str() [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | regd.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 19 const struct rtw_regd *__r = &__d->regd; \ 23 __r->regulatory->alpha2[0], \ 24 __r->regulatory->alpha2[1], \ 25 __r->regulatory->txpwr_regd_2g, \ 26 __r->regulatory->txpwr_regd_5g, \ 27 __r->dfs_region); \ 278 static void rtw_regd_apply_hw_cap_flags(struct wiphy *wiphy) in rtw_regd_apply_hw_cap_flags() argument 280 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in rtw_regd_apply_hw_cap_flags() [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | cfg80211.c | 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 28 #include "hif-ops.h" 147 struct ath6kl *ar = vif->ar; in __ath6kl_cfg80211_sscan_stop() 149 if (!test_and_clear_bit(SCHED_SCANNING, &vif->flags)) in __ath6kl_cfg80211_sscan_stop() 152 timer_delete_sync(&vif->sched_scan_timer); in __ath6kl_cfg80211_sscan_stop() 154 if (ar->state == ATH6KL_STATE_RECOVERY) in __ath6kl_cfg80211_sscan_stop() 157 ath6kl_wmi_enable_sched_scan_cmd(ar->wmi, vif->fw_vif_idx, false); in __ath6kl_cfg80211_sscan_stop() 164 struct ath6kl *ar = vif->ar; in ath6kl_cfg80211_sscan_disable() 172 cfg80211_sched_scan_stopped(ar->wiphy, 0); in ath6kl_cfg80211_sscan_disable() [all …]
|
/linux/drivers/net/wireless/ath/ |
H A D | main.c | 38 * Cache-line-align. This is important (for the in ath_rxbuf_alloc() 47 * Unfortunately this means we may get 8 KB here from the in ath_rxbuf_alloc() 50 skb = __dev_alloc_skb(len + common->cachelsz - 1, gfp_mask); in ath_rxbuf_alloc() 52 off = ((unsigned long) skb->data) % common->cachelsz; in ath_rxbuf_alloc() 54 skb_reserve(skb, common->cachelsz - off); in ath_rxbuf_alloc() 66 return ieee80211_is_beacon(hdr->frame_control) && in ath_is_mybeacon() 67 !is_zero_ether_addr(common->curbssid) && in ath_is_mybeacon() 68 ether_addr_equal_64bits(hdr->addr3, common->curbssid); in ath_is_mybeacon() 83 if (common && common->hw && common->hw->wiphy) { in ath_printk() 85 level, wiphy_name(common->hw->wiphy), &vaf); in ath_printk() [all …]
|