Lines Matching +full:ieee80211 +full:- +full:freq +full:- +full:limit

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-2021 Intel Corporation
23 #include <linux/ieee80211.h>
72 * enum ieee80211_channel_flags - channel flags
143 * struct ieee80211_channel - channel definition
150 * @hw_value: hardware-specific value for the channel
186 * enum ieee80211_rate_flags - rate flags
219 * enum ieee80211_bss_type - BSS type filter
236 * enum ieee80211_privacy - BSS privacy filter
252 * struct ieee80211_rate - bitrate definition
259 * @flags: rate-specific flags
272 * struct ieee80211_he_obss_pd - AP settings for spatial reuse
276 * @non_srg_max_offset: non-SRG maximum tx power offset
295 * struct cfg80211_he_bss_color - AP settings for BSS coloring
308 * struct ieee80211_sta_ht_cap - STA's HT capabilities
315 * @ampdu_factor: Maximum A-MPDU length factor
316 * @ampdu_density: Minimum A-MPDU spacing
328 * struct ieee80211_sta_vht_cap - STA's VHT capabilities
346 * struct ieee80211_sta_he_cap - STA's HE capabilities
364 * struct ieee80211_sband_iftype_data - sband data per interface type
389 * enum ieee80211_edmg_bw_config - allowed channel bandwidth configurations
425 * struct ieee80211_edmg - EDMG configuration
443 * struct ieee80211_sta_s1g_cap - STA's S1G capabilities
459 * struct ieee80211_supported_band - frequency band definition
498 * ieee80211_get_sband_iftype_data - return sband data for a given iftype
513 for (i = 0; i < sband->n_iftype_data; i++) { in ieee80211_get_sband_iftype_data()
515 &sband->iftype_data[i]; in ieee80211_get_sband_iftype_data()
517 if (data->types_mask & BIT(iftype)) in ieee80211_get_sband_iftype_data()
525 * ieee80211_get_he_iftype_cap - return HE capabilities for an sband's iftype
538 if (data && data->he_cap.has_he) in ieee80211_get_he_iftype_cap()
539 return &data->he_cap; in ieee80211_get_he_iftype_cap()
545 * ieee80211_get_he_6ghz_capa - return HE 6 GHz capabilities
558 if (WARN_ON(!data || !data->he_cap.has_he)) in ieee80211_get_he_6ghz_capa()
561 return data->he_6ghz_capa.capa; in ieee80211_get_he_6ghz_capa()
565 * wiphy_read_of_freq_limits - read frequency limits from device tree
615 * struct vif_params - describes virtual interface parameters
618 * @use_4addr: use 4-address frames
625 * @vht_mumimo_groups: MU-MIMO groupID, used for monitoring MU-MIMO packets
626 * belonging to that MU-MIMO groupID; %NULL if not changed
627 * @vht_mumimo_follow_addr: MU-MIMO follow address, used for monitoring
628 * MU-MIMO packets going to the specified station; %NULL if not changed
639 * struct key_params - key information
664 * struct cfg80211_chan_def - channel definition
671 * If edmg is requested (i.e. the .channels member is non-zero),
686 * cfg80211_bitrate_mask - masks for bitrate control
702 * struct cfg80211_tid_cfg - TID specific configuration
731 * struct cfg80211_tid_config - TID configuration
743 * cfg80211_get_chandef_type - return old channel type from chandef
746 * Return: The old channel type (NOHT, HT20, HT40+/-) from a given
752 switch (chandef->width) { in cfg80211_get_chandef_type()
758 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
768 * cfg80211_chandef_create - create channel definition using channel type
780 * cfg80211_chandef_identical - check if two channel definitions are identical
791 return (chandef1->chan == chandef2->chan && in cfg80211_chandef_identical()
792 chandef1->width == chandef2->width && in cfg80211_chandef_identical()
793 chandef1->center_freq1 == chandef2->center_freq1 && in cfg80211_chandef_identical()
794 chandef1->freq1_offset == chandef2->freq1_offset && in cfg80211_chandef_identical()
795 chandef1->center_freq2 == chandef2->center_freq2); in cfg80211_chandef_identical()
799 * cfg80211_chandef_is_edmg - check if chandef represents an EDMG channel
808 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
812 * cfg80211_chandef_compatible - check if two channel definitions are compatible
824 * cfg80211_chandef_valid - check if a channel definition is valid
831 * cfg80211_chandef_usable - check if secondary channels can be used
842 * cfg80211_chandef_dfs_required - checks if radar detection is required
854 * ieee80211_chandef_rate_flags - returns rate flags for a channel
856 * In some channel types, not all rates may be used - for example CCK
866 switch (chandef->width) { in ieee80211_chandef_rate_flags()
878 * ieee80211_chandef_max_power - maximum transmission power for the chandef
882 * max_power for non-standard (20 MHz) channels.
891 switch (chandef->width) { in ieee80211_chandef_max_power()
893 return min(chandef->chan->max_reg_power - 6, in ieee80211_chandef_max_power()
894 chandef->chan->max_power); in ieee80211_chandef_max_power()
896 return min(chandef->chan->max_reg_power - 3, in ieee80211_chandef_max_power()
897 chandef->chan->max_power); in ieee80211_chandef_max_power()
901 return chandef->chan->max_power; in ieee80211_chandef_max_power()
905 * cfg80211_any_usable_channels - check for usable channels
916 * enum survey_info_flags - survey information flags
944 * struct survey_info - channel survey response
959 * Used by dump_survey() to report back per-channel survey information.
980 * struct cfg80211_crypto_settings - Crypto settings
998 * @control_port_no_preauth: disables pre-auth rx over the nl80211 control
1003 * @psk: PSK (for devices supporting 4-way-handshake offload)
1010 * Not-specified, used to indicate userspace did not specify any
1015 * Allow hunting-and-pecking loop only
1018 * Allow hash-to-element only
1021 * Allow either hunting-and-pecking loop or hash-to-element
1044 * struct cfg80211_beacon_data - beacon data
1061 * @ftm_responder: enable FTM responder functionality; -1 for no change
1094 * struct cfg80211_acl_data - Access control list data
1110 * struct cfg80211_fils_discovery - FILS discovery parameters from
1111 * IEEE Std 802.11ai-2016, Annex C.3 MIB detail.
1113 * @min_interval: Minimum packet interval in TUs (0 - 10000)
1114 * @max_interval: Maximum packet interval in TUs (0 - 10000)
1127 * struct cfg80211_unsol_bcast_probe_resp - Unsolicited broadcast probe
1131 * in IEEE P802.11ax/D6.0 26.17.2.3.2 - AP behavior for fast passive
1143 * enum cfg80211_ap_settings_flags - AP settings flags
1154 * struct cfg80211_ap_settings - AP configuration
1227 * struct cfg80211_csa_settings - channel switch settings
1256 * struct cfg80211_color_change_settings - color change settings
1277 * struct iface_combination_params - input parameters for interface combinations
1301 * enum station_parameters_apply_mask - station parameter values to apply
1306 * Not all station parameters have in-band "no change" signalling,
1317 * struct sta_txpwr - station txpower configuration
1322 * is not provided, the default per-interface tx power setting will be
1324 * power per-interface or per-station.
1337 * struct station_parameters - station parameters
1349 * @listen_interval: listen interval or -1 for no change
1364 * @local_pm: local link-specific mesh power save mode (no change when set
1417 * struct station_del_parameters - station deletion parameters
1433 * enum cfg80211_station_type - the type of station being modified
1463 * cfg80211_check_station_change - validate parameter changes
1479 * enum rate_info_flags - bitrate info flags
1503 * enum rate_info_bw - rate bandwidth information
1526 * struct rate_info - bitrate information
1539 * @n_bonded_ch: In case of EDMG the number of bonded channels (1-4)
1554 * enum bss_param_flags - bitrate info flags
1570 * struct sta_bss_parameters - BSS parameters for the attached station
1585 * struct cfg80211_txq_stats - TXQ statistics for this TID
1594 * @overmemory: number of drops due to memory limit overflow
1616 * struct cfg80211_tid_stats - per-TID statistics
1638 * struct station_info - station information
1657 * @chain_signal: per-chain signal strength of last received packet in dBm
1658 * @chain_signal_avg: per-chain signal strength average in dBm
1665 * @rx_dropped_misc: Dropped for un-specified reason.
1681 * @nonpeer_pm: non-peer mesh STA power save mode
1691 * @pertid: per-TID statistics, see &struct cfg80211_tid_stats, using the last
1692 * (IEEE80211_NUM_TIDS) index for MSDUs not encapsulated in QoS-MPDUs.
1693 * Note that this doesn't use the @filled bit, but is used if non-NULL.
1765 * struct cfg80211_sar_sub_specs - sub specs limit
1775 * struct cfg80211_sar_specs - sar limit specs
1788 * struct cfg80211_sar_freq_ranges - sar frequency ranges
1798 * struct cfg80211_sar_capa - sar limit capability
1801 * @freq_ranges: memory to hold the freq ranges.
1814 * cfg80211_get_station - retrieve information about a given station
1830 return -ENOENT; in cfg80211_get_station()
1835 * enum monitor_flags - monitor flags
1859 * enum mpath_info_flags - mesh path information flags
1887 * struct mpath_info - mesh path information
1922 * struct bss_parameters - BSS parameters
1927 * (0 = no, 1 = yes, -1 = do not change)
1929 * (0 = no, 1 = yes, -1 = do not change)
1931 * (0 = no, 1 = yes, -1 = do not change)
1936 * (0 = no, 1 = yes, -1 = do not change)
1938 * (u16 = opmode, -1 = do not change)
1939 * @p2p_ctwindow: P2P CT Window (-1 = no change)
1940 * @p2p_opp_ps: P2P opportunistic PS (-1 = no change)
1954 * struct mesh_config - 802.11s mesh configuration
2000 * @dot11MeshForwarding: whether the Mesh STA is forwarding or non-forwarding
2001 * entity (default is TRUE - forwarding entity)
2026 * @dot11MeshNolearn: Try to avoid multi-hop path discovery (e.g. PREQ/PREP
2028 * not be the optimal decision as a multi-hop route might be better. So
2067 * struct mesh_setup - 802.11s mesh setup configuration
2116 * struct ocb_setup - 802.11p OCB mode setup configuration
2126 * struct ieee80211_txq_params - TX queue parameters
2129 * @cwmin: Minimum contention window [a value of the form 2^n-1 in the range
2131 * @cwmax: Maximum contention window [a value of the form 2^n-1 in the range
2153 * well-formed, and will not exceed the maximum length the driver advertised
2167 * struct cfg80211_ssid - SSID description
2177 * struct cfg80211_scan_info - information about completed scan
2192 * struct cfg80211_scan_6ghz_params - relevant for 6 GHz only
2213 * struct cfg80211_scan_request - scan request description
2290 * struct cfg80211_match_set - sets of attributes to match
2292 * @ssid: SSID to be matched; may be zero-length in case of BSSID match
2294 * @bssid: BSSID to be matched; may be all-zero BSSID in case of SSID match
2313 * struct cfg80211_sched_scan_plan - scan plan for scheduled scan
2327 * struct cfg80211_bss_select_adjust - BSS selection with RSSI adjustment.
2338 * struct cfg80211_sched_scan_request - scheduled scan request description
2370 * @nl_owner_dead: netlink owner socket was closed - this request be freed
2425 * enum cfg80211_signal_type - signal type
2438 * struct cfg80211_inform_bss - BSS inform data
2455 * @chain_signal: per-chain signal strength of last received BSS in dBm.
2469 * struct cfg80211_bss_ies - BSS entry IE data
2485 * struct cfg80211_bss - BSS description
2496 * are well-formed!); this is a pointer to either the beacon_ies or
2498 * received. It is always non-%NULL.
2507 * points to the same data as hidden_beacon_bss->beacon_ies in that case.
2509 * non-transmitted one (multi-BSSID support)
2510 * @nontrans_list: list of non-transmitted BSS, if this is a transmitted one
2511 * (multi-BSSID support)
2514 * @chain_signal: per-chain signal strength of last received BSS in dBm.
2517 * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes
2547 * ieee80211_bss_get_elem - find element with given ID
2551 * Note that the return value is an RCU-protected pointer, so
2558 * ieee80211_bss_get_ie - find IE with given ID
2562 * Note that the return value is an RCU-protected pointer, so
2573 * struct cfg80211_auth_request - Authentication request data
2587 * the authentication frame body (non-IE and IE data), excluding the
2604 * enum cfg80211_assoc_req_flags - Over-ride default behaviour in association.
2624 * struct cfg80211_assoc_request - (Re)Association request data
2643 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2644 * will be used in ht_capa. Un-supported values will be ignored.
2674 * struct cfg80211_deauth_request - Deauthentication request data
2695 * struct cfg80211_disassoc_request - Disassociation request data
2716 * struct cfg80211_ibss_params - IBSS parameters
2721 * @ssid: The SSID, will always be non-null.
2722 * @ssid_len: The length of the SSID, will always be non-zero.
2726 * @channel_fixed: The channel should be fixed -- do not search for
2743 * @mcast_rate: per-band multicast rate index + 1 (0: disabled)
2744 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2745 * will be used in ht_capa. Un-supported values will be ignored.
2772 * struct cfg80211_bss_selection - connection parameters for BSS selection.
2788 * struct cfg80211_connect_params - Connection parameters
2793 * @channel: The channel to use or %NULL if not specified (auto-select based
2797 * @bssid: The AP BSSID or %NULL if not specified (auto-select based on scan
2808 * @privacy: indicates whether privacy-enabled APs should be used
2816 * or -1 to indicate that default value is to be used.
2817 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2818 * will be used in ht_capa. Un-supported values will be ignored.
2831 * @fils_erp_username: EAP re-authentication protocol (ERP) username part of the
2835 * @fils_erp_realm: EAP re-authentication protocol (ERP) realm part of NAI or
2841 * @fils_erp_rrk: ERP re-authentication Root Key (rRK) used to derive additional
2844 * @want_1x: indicates user-space supports and wants to use 802.1X driver
2845 * offload of 4-way handshake.
2886 * enum cfg80211_connect_params_changed - Connection parameters being updated
2903 * enum wiphy_params_flags - set_wiphy_params bitfield values
2904 * @WIPHY_PARAM_RETRY_SHORT: wiphy->retry_short has changed
2905 * @WIPHY_PARAM_RETRY_LONG: wiphy->retry_long has changed
2906 * @WIPHY_PARAM_FRAG_THRESHOLD: wiphy->frag_threshold has changed
2907 * @WIPHY_PARAM_RTS_THRESHOLD: wiphy->rts_threshold has changed
2910 * @WIPHY_PARAM_TXQ_LIMIT: TXQ packet limit has been changed
2911 * @WIPHY_PARAM_TXQ_MEMORY_LIMIT: TXQ memory limit has been changed
2928 /* The per TXQ device queue limit in airtime */
2932 /* The per interface airtime threshold to switch to lower queue limit */
2936 * struct cfg80211_pmksa - PMK Security Association
2950 * @cache_id: 2-octet cache identifier advertized by a FILS AP identifying the
2951 * scope of PMKSA. This is valid only if @ssid_len is non-zero (may be
2978 * struct cfg80211_pkt_pattern - packet pattern
2995 * struct cfg80211_wowlan_tcp - TCP connection parameters
3030 * struct cfg80211_wowlan - Wake on Wireless-LAN support info
3033 * @any: wake up on any activity -- special trigger if device continues
3041 * @four_way_handshake: wake up on 4-way handshake
3058 * struct cfg80211_coalesce_rules - Coalesce rule parameters
3075 * struct cfg80211_coalesce - Packet coalescing settings
3087 * struct cfg80211_wowlan_nd_match - information about the match
3102 * struct cfg80211_wowlan_nd_info - net detect wake up information
3116 * struct cfg80211_wowlan_wakeup - wakeup report
3121 * @four_way_handshake: woke up by 4-way handshake
3123 * @pattern_idx: pattern that caused wakeup, -1 if not due to pattern
3148 * struct cfg80211_gtk_rekey_data - rekey data
3163 * struct cfg80211_update_ft_ies_params - FT IE Information
3178 * struct cfg80211_mgmt_tx_params - mgmt tx parameters
3205 * struct cfg80211_dscp_exception - DSCP exception
3216 * struct cfg80211_dscp_range - DSCP range definition for user priority
3226 /* QoS Map Set element length defined in IEEE Std 802.11-2012, 8.4.2.97 */
3233 * struct cfg80211_qos_map - QoS Map Information
3249 * struct cfg80211_nan_conf - NAN configuration
3253 * @master_pref: master preference (1 - 255)
3264 * enum cfg80211_nan_conf_changes - indicates changed fields in NAN
3276 * struct cfg80211_nan_func_filter - a NAN function Rx / Tx filter
3287 * struct cfg80211_nan_func - a NAN function
3343 * struct cfg80211_pmk_conf - PMK configuration
3348 * @pmk_r0_name: PMK-R0 Name. NULL if not applicable (i.e., the PMK
3349 * is not PMK-R0). When pmk_r0_name is not NULL, the pmk field
3350 * holds PMK-R0.
3360 * struct cfg80211_external_auth_params - Trigger External authentication.
3389 * struct cfg80211_ftm_responder_stats - FTM responder statistics
3399 * @non_asap_num: number of non-ASAP FTM sessions
3400 * @total_duration_ms: total sessions durations - gives an indication
3402 * @unknown_triggers_num: number of unknown FTM triggers - triggers from
3405 * @reschedule_requests_num: number of FTM reschedule requests - initiator asks
3423 * struct cfg80211_pmsr_ftm_result - FTM result
3428 * in [0 .. num_bursts-1] of the burst that's being reported
3503 * struct cfg80211_pmsr_result - peer measurement result
3533 * struct cfg80211_pmsr_ftm_request_peer - FTM request data
3576 * struct cfg80211_pmsr_request_peer - peer data for a peer measurement request
3590 * struct cfg80211_pmsr_request - peer measurement request
3592 * @nl_portid: netlink portid - used by cfg80211
3603 * @peers: per-peer measurement request data
3622 * struct cfg80211_update_owe_info - OWE Information
3648 * struct mgmt_frame_regs - management frame registrations data
3663 * struct cfg80211_ops - backend description for wireless configuration
3677 * be %NULL or contain the enabled Wake-on-Wireless triggers that are
3705 * not possible to retrieve the key, -ENOENT if it doesn't exist.
3708 * and @key_index, return -ENOENT if the key doesn't exist.
3727 * might come to the driver in invalid combinations -- make sure to check
3731 * @dump_station: dump station callback -- resume dump at index @idx
3737 * @dump_mpath: dump mesh path callback -- resume dump at index @idx
3739 * @dump_mpp: dump mesh proxy path callback -- resume dump at index @idx
3795 * In both the driver-initiated and new connect() call initiated roaming
3829 * always be %NULL unless the driver supports per-vif TX power
3840 * channel for the specified duration to complete an off-channel
3844 * @cancel_remain_on_channel: Cancel an on-going remain-on-channel operation.
3852 * @testmode_dump: Implement a test mode dump. The cb->args[2] and up may be
3854 * return error codes other than -ENOBUFS and -ENOENT will terminate the
3866 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1
3893 * reject TX/RX mask combinations they cannot support by returning -EINVAL
3899 * @tdls_oper: Perform a high-level TDLS operation (e.g. TDLS link setup).
3936 * @channel_switch: initiate channel-switch procedure (with CSA). Driver is
3965 * @tdls_channel_switch: Start channel-switching with a TDLS peer. The driver
3966 * is responsible for continually initiating channel-switching operations
3968 * @tdls_cancel_channel_switch: Stop channel-switching with a TDLS peer. Both
3989 * @set_pmk: configure the PMK to be used for offloaded 802.1X 4-Way handshake.
4359 * enum wiphy_flags - wiphy capability flags
4366 * by default -- this flag will be set depending on the kernel's default
4393 * responds to probe-requests in hardware.
4394 * @WIPHY_FLAG_OFFCHAN_TX: Device supports direct off-channel TX.
4395 * @WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL: Device supports remain-on-channel call.
4431 * struct ieee80211_iface_limit - limit on certain interface types
4441 * struct ieee80211_iface_combination - possible interface combination
4450 * .. code-block:: c
4464 * 2. Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total:
4466 * .. code-block:: c
4480 * 3. Allow #STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total.
4484 * .. code-block:: c
4562 * enum wiphy_wowlan_support_flags - WoWLAN support flags
4564 * trigger that keeps the device operating as-is and
4574 * @WIPHY_WOWLAN_4WAY_HANDSHAKE: supports wakeup on 4-way handshake failure
4575 * @WIPHY_WOWLAN_RFKILL_RELEASE: supports wakeup on RF-kill release
4599 * struct wiphy_wowlan_support - WoWLAN support data
4606 * @max_nd_match_sets: maximum number of matchsets for net-detect,
4624 * struct wiphy_coalesce_support - coalesce support data
4643 * enum wiphy_vendor_command_flags - validation flags for vendor commands
4656 * enum wiphy_opmode_flag - Station's ht/vht operation mode information flags
4670 * struct sta_opmode_info - Station's ht/vht operation mode information
4684 #define VENDOR_CMD_RAW_DATA ((const struct nla_policy *)(long)(-ENODATA))
4687 * struct wiphy_vendor_command - vendor command definition
4691 * flags didn't ask for a wdev and non-%NULL otherwise; the data
4694 * @storage points to cb->args[5], ie. is preserved over the multiple
4717 * struct wiphy_iftype_ext_capab - extended capabilities per interface type
4723 * 802.11-2012 8.4.2.29 for the defined fields.
4735 * struct cfg80211_pmsr_capabilities - cfg80211 peer measurement capabilities
4740 * @ftm.asap: ASAP-mode is supported
4741 * @ftm.non_asap: non-ASAP-mode is supported
4747 * (set to -1 if not limited; note that setting this will necessarily
4775 * struct wiphy_iftype_akm_suites - This structure encapsulates supported akm
4790 * struct wiphy - wireless hardware description
4812 * @retry_short: Retry limit for short frames (dot11ShortRetryLimit)
4813 * @retry_long: Retry limit for long frames (dot11LongRetryLimit)
4815 * -1 = fragmentation disabled, only odd values >= 256 used
4816 * @rts_threshold: RTS threshold (dot11RTSThreshold); -1 = RTS/CTS disabled
4821 * four bits are variable then set it to 00-00-00-00-00-0f. The actual
4828 * all-zeroes. In this case it is assumed that the device can handle
4830 * @registered: protects ->resume and ->suspend sysfs callbacks against
4832 * @debugfsdir: debugfs directory used for this wiphy (ieee80211/<wiphyname>).
4835 * /sys/class/ieee80211/ points to this. You need use set_wiphy_dev()
4863 * @max_scan_ie_len: maximum length of user-controlled IEs device can
4899 * @max_remain_on_channel_duration: Maximum time a remain-on-channel operation
4908 * @ht_capa_mod_mask: Specify what ht_cap values can be over-ridden.
4909 * If null, then none can be over-ridden.
4910 * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden.
4911 * If null, then none can be over-ridden.
4923 * 802.11-2012 8.4.2.29 for the defined fields. These are the default
4939 * (including P2P GO) or 0 to indicate no such limit is advertised. The
4940 * driver is allowed to advertise a theoretical limit that it can reach in
4945 * wishes to limit the number of csa counters. Default (0) means
4956 * @txq_limit: configuration of internal TX queue frame limit
4957 * @txq_memory_limit: configuration internal TX queue memory limit
4970 * @tid_config_support: describes the per-TID config support that the
5071 /* fields below are read-only, assigned by cfg80211 */
5133 return read_pnet(&wiphy->_net); in wiphy_net()
5138 write_pnet(&wiphy->_net, net); in wiphy_net_set()
5142 * wiphy_priv - return priv from wiphy
5150 return &wiphy->priv; in wiphy_priv()
5154 * priv_to_wiphy - return the wiphy containing the priv
5166 * set_wiphy_dev - set device pointer for wiphy
5173 wiphy->dev.parent = dev; in set_wiphy_dev()
5177 * wiphy_dev - get wiphy dev pointer
5184 return wiphy->dev.parent; in wiphy_dev()
5188 * wiphy_name - get wiphy name
5195 return dev_name(&wiphy->dev); in wiphy_name()
5199 * wiphy_new_nm - create a new wiphy for use with cfg80211
5216 * wiphy_new - create a new wiphy for use with cfg80211
5234 * wiphy_register - register a wiphy with cfg80211
5238 * Return: A non-negative wiphy index or a negative error code.
5243 #define lockdep_assert_wiphy(wiphy) lockdep_assert_held(&(wiphy)->mtx)
5246 * rcu_dereference_wiphy - rcu_dereference with debug checking
5254 rcu_dereference_check(p, lockdep_is_held(&wiphy->mtx))
5257 * wiphy_dereference - fetch RCU pointer when updates are prevented by wiphy mtx
5261 * Return the value of the specified RCU-protected pointer, but omit the
5265 rcu_dereference_protected(p, lockdep_is_held(&wiphy->mtx))
5268 * get_wiphy_regdom - get custom regdomain for the given wiphy
5274 * wiphy_unregister - deregister a wiphy from cfg80211
5285 * wiphy_free - free wiphy
5298 * wiphy_lock - lock the wiphy
5309 __acquires(&wiphy->mtx) in wiphy_lock()
5311 mutex_lock(&wiphy->mtx); in wiphy_lock()
5312 __acquire(&wiphy->mtx); in wiphy_lock()
5316 * wiphy_unlock - unlock the wiphy again
5320 __releases(&wiphy->mtx) in wiphy_unlock()
5322 __release(&wiphy->mtx); in wiphy_unlock()
5323 mutex_unlock(&wiphy->mtx); in wiphy_unlock()
5327 * struct wireless_dev - wireless device state
5335 * unregistering netdevs if they pre-create any netdevs (in ops
5338 * For non-netdev uses, it must also be allocated by the driver
5354 * the user-set channel definition.
5376 * netdev and may otherwise be used by driver read-only, will be update
5386 * @is_running: true if this is a non-netdev device that has been started, e.g.
5399 * @disconnect_wk: (private) auto-disconnect work
5400 * @disconnect_bssid: (private) the BSSID to use for auto-disconnect
5433 /* currently used for IBSS and SME - might be rearranged later */
5495 if (wdev->netdev) in wdev_address()
5496 return wdev->netdev->dev_addr; in wdev_address()
5497 return wdev->address; in wdev_address()
5502 if (wdev->netdev) in wdev_running()
5503 return netif_running(wdev->netdev); in wdev_running()
5504 return wdev->is_running; in wdev_running()
5508 * wdev_priv - return wiphy priv from wireless_dev
5516 return wiphy_priv(wdev->wiphy); in wdev_priv()
5526 * ieee80211_channel_equal - compare two struct ieee80211_channel
5536 return (a->center_freq == b->center_freq && in ieee80211_channel_equal()
5537 a->freq_offset == b->freq_offset); in ieee80211_channel_equal()
5541 * ieee80211_channel_to_khz - convert ieee80211_channel to frequency in KHz
5548 return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset; in ieee80211_channel_to_khz()
5552 * ieee80211_s1g_channel_width - get allowed channel width from @chan
5562 * ieee80211_channel_to_freq_khz - convert channel number to frequency
5570 * ieee80211_channel_to_frequency - convert channel number to frequency
5582 * ieee80211_freq_khz_to_channel - convert frequency to channel number
5583 * @freq: center frequency in KHz
5586 int ieee80211_freq_khz_to_channel(u32 freq);
5589 * ieee80211_frequency_to_channel - convert frequency to channel number
5590 * @freq: center frequency in MHz
5594 ieee80211_frequency_to_channel(int freq) in ieee80211_frequency_to_channel() argument
5596 return ieee80211_freq_khz_to_channel(MHZ_TO_KHZ(freq)); in ieee80211_frequency_to_channel()
5600 * ieee80211_get_channel_khz - get channel struct from wiphy for specified
5603 * @freq: the center frequency (in KHz) of the channel
5604 * Return: The channel struct from @wiphy at @freq.
5607 ieee80211_get_channel_khz(struct wiphy *wiphy, u32 freq);
5610 * ieee80211_get_channel - get channel struct from wiphy for specified frequency
5613 * @freq: the center frequency (in MHz) of the channel
5614 * Return: The channel struct from @wiphy at @freq.
5617 ieee80211_get_channel(struct wiphy *wiphy, int freq) in ieee80211_get_channel() argument
5619 return ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(freq)); in ieee80211_get_channel()
5623 * cfg80211_channel_is_psc - Check if the channel is a 6 GHz PSC
5631 if (chan->band != NL80211_BAND_6GHZ) in cfg80211_channel_is_psc()
5634 return ieee80211_frequency_to_channel(chan->center_freq) % 16 == 5; in cfg80211_channel_is_psc()
5638 * ieee80211_get_response_rate - get basic rate for a given rate
5654 * ieee80211_mandatory_rates - get mandatory rates for a given band
5665 * Radiotap parsing functions -- for controlled injection support
5668 * Documentation in Documentation/networking/radiotap-headers.rst
5688 * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args
5750 * ieee80211_get_hdrlen_from_skb - get header length from data
5764 * ieee80211_hdrlen - get header length in bytes from frame control
5765 * @fc: frame control field in little-endian format
5771 * ieee80211_get_mesh_hdrlen - get mesh extension header length
5788 * ieee80211_data_to_8023_exthdr - convert an 802.11 data frame to 802.3
5795 * Return: 0 on success. Non-zero on error.
5802 * ieee80211_data_to_8023 - convert an 802.11 data frame to 802.3
5806 * Return: 0 on success. Non-zero on error.
5815 * ieee80211_amsdu_to_8023s - decode an IEEE 802.11n A-MSDU frame
5817 * Decode an IEEE 802.11 A-MSDU and convert it to a list of 802.3 frames.
5819 * header-less before being passed in here; it is freed in this function.
5821 * @skb: The input A-MSDU frame without any headers.
5836 * cfg80211_classify8021d - determine the 802.1p/1d tag for a data frame
5845 * cfg80211_find_elem_match - match information element and byte array in data
5872 * cfg80211_find_ie_match - match information element and byte array in data
5910 match_offset - 2 : 0); in cfg80211_find_ie_match()
5914 * cfg80211_find_elem - find information element in data
5935 * cfg80211_find_ie - find information element in data
5955 * cfg80211_find_ext_elem - find information element with EID Extension in data
5977 * cfg80211_find_ext_ie - find information element with EID Extension in data
5998 * cfg80211_find_vendor_elem - find vendor specific information element in data
6001 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
6017 * cfg80211_find_vendor_ie - find vendor specific information element in data
6020 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
6040 * cfg80211_send_layer2_update - send layer 2 update frame
6057 * regulatory_hint - driver hint to the wireless core a regulatory domain
6062 * set this to NULL you should still set rd->alpha2 to some accepted
6077 * an -ENOMEM.
6079 * Return: 0 on success. -ENOMEM.
6084 * regulatory_set_wiphy_regd - set regdom info for self managed drivers
6088 * Set the regulatory domain information for self-managed wiphys, only they
6092 * Return: 0 on success. -EINVAL, -EPERM
6098 * regulatory_set_wiphy_regd_sync - set regdom for self-managed drivers
6106 * Return: 0 on success. -EINVAL, -EPERM
6112 * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain
6130 * freq_reg_info - get regulatory information for the given frequency
6142 * value will be -ERANGE if we determine the given center_freq does not even
6144 * See freq_in_rule_band() for our current definition of a band -- this is
6151 * reg_initiator_name - map regulatory request initiator enum to name
6160 * regulatory_pre_cac_allowed - check if pre-CAC allowed in the current regdom
6161 * @wiphy: wiphy for which pre-CAC capability is checked.
6163 * Pre-CAC is allowed only in some regdomains (notable ETSI).
6173 * reg_query_regdb_wmm - Query internal regulatory db for wmm rule
6174 * Regulatory self-managed driver can use it to proactively
6177 * @freq: the freqency(in MHz) to be queried.
6180 * Self-managed wireless drivers can use this function to query
6182 * ISO/IEC 3166 alpha2 country and freq have wmm rule limitations.
6185 * an -ENODATA.
6187 * Return: 0 on success. -ENODATA.
6189 int reg_query_regdb_wmm(char *alpha2, int freq,
6198 * cfg80211_scan_done - notify that scan finished
6207 * cfg80211_sched_scan_results - notify that new scan results are available
6215 * cfg80211_sched_scan_stopped - notify that the scheduled scan has stopped
6227 * cfg80211_sched_scan_stopped_locked - notify that the scheduled scan has stopped
6240 * cfg80211_inform_bss_frame_data - inform cfg80211 of a received BSS frame
6291 * cfg80211_gen_new_bssid - generate a nontransmitted BSSID for multi-BSSID
6301 u64 mask = GENMASK_ULL(max_bssid - 1, 0); in cfg80211_gen_new_bssid()
6312 * cfg80211_is_element_inherited - returns if element ID should be inherited
6320 * cfg80211_merge_profile - merges a MBSSID profile if it is split between IEs
6334 * enum cfg80211_bss_frame_type - frame type that the BSS data came from
6347 * cfg80211_inform_bss_data - inform cfg80211 of a new BSS
6414 * cfg80211_get_bss - get a BSS reference
6440 * cfg80211_ref_bss - reference BSS struct
6449 * cfg80211_put_bss - unref BSS struct
6458 * cfg80211_unlink_bss - unlink BSS from internal data structures
6470 * cfg80211_bss_iter - iterate all BSS entries
6492 switch (chandef->width) { in cfg80211_chandef_to_scan_width()
6503 * cfg80211_rx_mlme_mgmt - notification of processed MLME management frame
6524 * cfg80211_auth_timeout - notification of timed out authentication
6534 * cfg80211_rx_assoc_resp - notification of processed association response
6557 * cfg80211_assoc_timeout - notification of timed out association
6566 * cfg80211_abandon_assoc - notify cfg80211 of abandoned association attempt
6570 * Call this whenever - for reasons reported through other API, like deauth RX,
6577 * cfg80211_tx_mlme_mgmt - notification of transmitted deauth/disassoc frame
6592 * cfg80211_rx_unprot_mlme_mgmt - notification of unprotected mlme mgmt frame
6609 * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP)
6613 * @key_id: Key identifier (0..3). Can be -1 if missing.
6618 * received frame. This matches with MLME-MICHAELMICFAILURE.indication()
6626 * cfg80211_ibss_joined - notify cfg80211 that device joined an IBSS
6637 * with the locally generated beacon -- this guarantees that there is
6644 * cfg80211_notify_new_peer_candidate - notify cfg80211 of a new mesh peer
6676 * wiphy_rfkill_set_hw_state_reason - notify cfg80211 about hw block state
6691 * wiphy_rfkill_start_polling - start polling rfkill
6697 * wiphy_rfkill_stop_polling - stop polling rfkill
6702 rfkill_pause_polling(wiphy->rfkill); in wiphy_rfkill_stop_polling()
6711 * (typically closed-source) userspace and firmware, using nl80211 as
6721 * "normal" functionality that higher-level userspace like connection
6741 * cfg80211_vendor_cmd_alloc_reply_skb - allocate vendor command reply
6746 * This function allocates and pre-fills an skb for a reply to
6750 * The returned skb is pre-filled with some identifying data in
6761 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6771 * cfg80211_vendor_cmd_reply - send the reply skb
6785 * cfg80211_vendor_cmd_get_sender - get the current sender netlink ID
6794 * cfg80211_vendor_event_alloc - allocate vendor-specific event skb
6802 * This function allocates and pre-fills an skb for an event on the
6803 * vendor-specific multicast group.
6812 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6824 * cfg80211_vendor_event_alloc_ucast - alloc unicast vendor-specific event skb
6833 * This function allocates and pre-fills an skb for an event to send to
6845 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6859 * cfg80211_vendor_event - send the event
6876 * interact with driver-specific tools to aid, for instance,
6884 * cfg80211_testmode_alloc_reply_skb - allocate testmode reply
6889 * This function allocates and pre-fills an skb for a reply to
6893 * The returned skb is pre-filled with the wiphy index and set up in
6904 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6914 * cfg80211_testmode_reply - send the reply skb
6931 * cfg80211_testmode_alloc_event_skb - allocate testmode event
6937 * This function allocates and pre-fills an skb for an event on the
6949 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6955 NL80211_ATTR_TESTDATA, 0, -1, in cfg80211_testmode_alloc_event_skb()
6960 * cfg80211_testmode_event - send the event
6982 * struct cfg80211_fils_resp_params - FILS connection response params
7006 * struct cfg80211_connect_resp_params - Connection response params
7011 * from the AP) instead of an explicit rejection by the AP, -1 is used to
7047 * cfg80211_connect_done - notify cfg80211 of connection result
7065 * cfg80211_connect_bss - notify cfg80211 of connection result
7083 * from the AP) instead of an explicit rejection by the AP, -1 is used to
7125 * cfg80211_connect_result - notify cfg80211 of connection result
7156 * cfg80211_connect_timeout - notify cfg80211 of connection timeout
7178 cfg80211_connect_bss(dev, bssid, NULL, req_ie, req_ie_len, NULL, 0, -1, in cfg80211_connect_timeout()
7183 * struct cfg80211_roam_info - driver initiated roaming information
7206 * cfg80211_roamed - notify cfg80211 of roaming
7219 * rdev->event_work. In case of any failures, the reference is released
7227 * cfg80211_port_authorized - notify cfg80211 of successful security association
7244 * cfg80211_disconnected - notify cfg80211 that connection was dropped
7261 * cfg80211_ready_on_channel - notification of remain_on_channel start
7274 * cfg80211_remain_on_channel_expired - remain_on_channel duration expired
7285 * cfg80211_tx_mgmt_expired - tx_mgmt duration expired
7295 * cfg80211_sinfo_alloc_tid_stats - allocate per-tid statistics.
7303 * cfg80211_sinfo_release_content - release contents of station info
7306 * Releases any potentially allocated sub-information of the station
7312 kfree(sinfo->pertid); in cfg80211_sinfo_release_content()
7316 * cfg80211_new_sta - notify userspace about station
7327 * cfg80211_del_sta_sinfo - notify userspace about deletion of a station
7337 * cfg80211_del_sta - notify userspace about deletion of a station
7350 * cfg80211_conn_failed - connection request failed notification
7369 * cfg80211_rx_mgmt_khz - notification of received, unprocessed management frame
7371 * @freq: Frequency on which the frame was received in KHz
7385 bool cfg80211_rx_mgmt_khz(struct wireless_dev *wdev, int freq, int sig_dbm,
7389 * cfg80211_rx_mgmt - notification of received, unprocessed management frame
7391 * @freq: Frequency on which the frame was received in MHz
7405 static inline bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, in cfg80211_rx_mgmt() argument
7409 return cfg80211_rx_mgmt_khz(wdev, MHZ_TO_KHZ(freq), sig_dbm, buf, len, in cfg80211_rx_mgmt()
7414 * cfg80211_mgmt_tx_status - notification of TX status for management frame
7430 * cfg80211_control_port_tx_status - notification of TX status for control
7448 * cfg80211_rx_control_port - notification about a received control port frame
7451 * is 802.3 formatted (with 802.3 header). The skb can be non-linear.
7454 * skb->protocol is set appropriately.
7470 * cfg80211_cqm_rssi_notify - connection quality monitoring rssi event
7484 * cfg80211_cqm_pktloss_notify - notify userspace about packetloss to peer
7487 * @num_packets: how many packets were lost -- should be a fixed threshold
7496 * cfg80211_cqm_txe_notify - TX error rate event
7511 * cfg80211_cqm_beacon_loss_notify - beacon loss event
7520 * cfg80211_radar_event - radar detection event
7531 * cfg80211_sta_opmode_change_notify - STA's ht/vht operation mode change event
7545 * cfg80211_cac_event - Channel availability check (CAC) event
7553 * also by full-MAC drivers.
7561 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying
7571 * cfg80211_pmksa_candidate_notify - notify about PMKSA caching candidate
7575 * @preauth: Whether AP advertises support for RSN pre-authentication
7582 * cfg80211_rx_spurious_frame - inform userspace about a spurious frame
7597 * cfg80211_rx_unexpected_4addr_frame - inform about unexpected WDS frame
7613 * cfg80211_probe_status - notify userspace about probe status
7627 * cfg80211_report_obss_beacon_khz - report beacon from other APs
7631 * @freq: frequency the frame was received on in KHz
7639 size_t len, int freq, int sig_dbm);
7642 * cfg80211_report_obss_beacon - report beacon from other APs
7646 * @freq: frequency the frame was received on
7655 int freq, int sig_dbm) in cfg80211_report_obss_beacon() argument
7657 cfg80211_report_obss_beacon_khz(wiphy, frame, len, MHZ_TO_KHZ(freq), in cfg80211_report_obss_beacon()
7662 * cfg80211_reg_can_beacon - check if beaconing is allowed
7675 * cfg80211_reg_can_beacon_relax - check if beaconing is allowed with relaxation
7682 * also checks if IR-relaxation conditions apply, to allow beaconing under
7692 * cfg80211_ch_switch_notify - update wdev channel and notify userspace
7703 * cfg80211_ch_switch_started_notify - notify channel switch start
7718 * ieee80211_operating_class_to_band - convert operating class to band
7729 * ieee80211_chandef_to_operating_class - convert chandef to operation class
7740 * ieee80211_chandef_to_khz - convert chandef to frequency in KHz
7749 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in ieee80211_chandef_to_khz()
7753 * cfg80211_tdls_oper_request - request userspace to perform TDLS operation
7772 * cfg80211_calculate_bitrate - calculate actual bitrate (in 100Kbps units)
7780 * cfg80211_unregister_wdev - remove the given wdev
7794 * cfg80211_register_netdevice - register the given netdev
7807 * cfg80211_unregister_netdevice - unregister the given netdev
7819 cfg80211_unregister_wdev(dev->ieee80211_ptr); in cfg80211_unregister_netdevice()
7823 * struct cfg80211_ft_event_params - FT Information Elements
7839 * cfg80211_ft_event - notify userspace about FT IE and RIC IE
7847 * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer
7858 * Return: A negative error code (-%EILSEQ or -%ENOENT) if the data is
7867 * ieee80211_ie_split_ric - split an IE buffer according to ordering (with RIC)
7872 * EID in the list is a sub-element of the EXTENSION IE.
7882 * It assumes that the given IE buffer is well-formed, this
7899 * ieee80211_ie_split - split an IE buffer according to ordering
7904 * EID in the list is a sub-element of the EXTENSION IE.
7912 * It assumes that the given IE buffer is well-formed, this
7930 * cfg80211_report_wowlan_wakeup - report wakeup from WoWLAN
7945 * cfg80211_crit_proto_stopped() - indicate critical protocol stopped by driver.
7957 * ieee80211_get_num_supported_channels - get number of channels device has
7965 * cfg80211_check_combinations - check interface combinations
7978 * cfg80211_iter_combinations - iterate over matching combinations
7996 * cfg80211_stop_iface - trigger interface disconnection
8011 * cfg80211_shutdown_all_interfaces - shut down all interfaces for a wiphy
8015 * calling dev_close() (and treating non-netdev interfaces as needed).
8025 * wiphy_ext_feature_set - set the extended feature flag
8038 ft_byte = &wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_set()
8043 * wiphy_ext_feature_isset - check the extended feature flag
8057 ft_byte = wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_isset()
8062 * cfg80211_free_nan_func - free NAN function
8070 * struct cfg80211_nan_match_params - NAN match parameters
8094 * cfg80211_nan_match - report a match for a NAN function.
8107 * cfg80211_nan_func_terminated - notify about NAN function termination.
8126 * cfg80211_external_auth_request - userspace request for authentication
8137 * cfg80211_pmsr_report - report peer measurement result data
8149 * cfg80211_pmsr_complete - report peer measurement completed
8162 * cfg80211_iftype_allowed - check whether the interface can be allowed
8181 dev_printk(level, &(wiphy)->dev, format, ##args)
8183 dev_emerg(&(wiphy)->dev, format, ##args)
8185 dev_alert(&(wiphy)->dev, format, ##args)
8187 dev_crit(&(wiphy)->dev, format, ##args)
8189 dev_err(&(wiphy)->dev, format, ##args)
8191 dev_warn(&(wiphy)->dev, format, ##args)
8193 dev_notice(&(wiphy)->dev, format, ##args)
8195 dev_info(&(wiphy)->dev, format, ##args)
8197 dev_info_once(&(wiphy)->dev, format, ##args)
8200 dev_err_ratelimited(&(wiphy)->dev, format, ##args)
8202 dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
8208 dev_dbg(&(wiphy)->dev, format, ##args)
8230 * cfg80211_update_owe_info_event - Notify the peer's OWE info to user space
8240 * cfg80211_bss_flush - resets all the scan entries
8246 * cfg80211_bss_color_notify - notify about bss color event
8258 * cfg80211_obss_color_collision_notify - notify about bss color collision
8271 * cfg80211_color_change_started_notify - notify color change start
8286 * cfg80211_color_change_aborted_notify - notify color change abort
8299 * cfg80211_color_change_notify - notify color change completion