Lines Matching +full:setup +full:- +full:duration +full:- +full:ns

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
72 * enum ieee80211_channel_flags - channel flags
167 * struct ieee80211_channel - channel definition
174 * @hw_value: hardware-specific value for the channel
212 * enum ieee80211_rate_flags - rate flags
245 * enum ieee80211_bss_type - BSS type filter
262 * enum ieee80211_privacy - BSS privacy filter
278 * struct ieee80211_rate - bitrate definition
285 * @flags: rate-specific flags from &enum ieee80211_rate_flags
298 * struct ieee80211_he_obss_pd - AP settings for spatial reuse
302 * @non_srg_max_offset: non-SRG maximum tx power offset
321 * struct cfg80211_he_bss_color - AP settings for BSS coloring
334 * struct ieee80211_sta_ht_cap - STA's HT capabilities
341 * @ampdu_factor: Maximum A-MPDU length factor
342 * @ampdu_density: Minimum A-MPDU spacing
354 * struct ieee80211_sta_vht_cap - STA's VHT capabilities
372 * struct ieee80211_sta_he_cap - STA's HE capabilities
390 * struct ieee80211_eht_mcs_nss_supp - EHT max supported NSS per MCS
392 * See P802.11be_D1.3 Table 9-401k - "Subfields of the Supported EHT-MCS
395 * @only_20mhz: MCS/NSS support for 20 MHz-only STA.
415 * struct ieee80211_sta_eht_cap - STA's EHT capabilities
432 /* sparse defines __CHECKER__; see Documentation/dev-tools/sparse.rst */
435 * This is used to mark the sband->iftype_data pointer which is supposed
446 * struct ieee80211_sband_iftype_data - sband data per interface type
473 * enum ieee80211_edmg_bw_config - allowed channel bandwidth configurations
509 * struct ieee80211_edmg - EDMG configuration
527 * struct ieee80211_sta_s1g_cap - STA's S1G capabilities
543 * struct ieee80211_supported_band - frequency band definition
582 * _ieee80211_set_sband_iftype_data - set sband iftype data array
596 sband->iftype_data = (const void __iftd __force *)iftd;
597 sband->n_iftype_data = n_iftd;
601 * ieee80211_set_sband_iftype_data - set sband iftype data array
609 * for_each_sband_iftype_data - iterate sband iftype data entries
615 for (i = 0, iftd = (const void __force *)&(sband)->iftype_data[i]; \
616 i < (sband)->n_iftype_data; \
617 i++, iftd = (const void __force *)&(sband)->iftype_data[i])
620 * ieee80211_get_sband_iftype_data - return sband data for a given iftype
640 if (data->types_mask & BIT(iftype))
648 * ieee80211_get_he_iftype_cap - return HE capabilities for an sband's iftype
661 if (data && data->he_cap.has_he)
662 return &data->he_cap;
668 * ieee80211_get_he_6ghz_capa - return HE 6 GHz capabilities
681 if (WARN_ON(!data || !data->he_cap.has_he))
684 return data->he_6ghz_capa.capa;
688 * ieee80211_get_eht_iftype_cap - return ETH capabilities for an sband's iftype
701 if (data && data->eht_cap.has_eht)
702 return &data->eht_cap;
708 * wiphy_read_of_freq_limits - read frequency limits from device tree
758 * struct vif_params - describes virtual interface parameters
761 * @use_4addr: use 4-address frames
768 * @vht_mumimo_groups: MU-MIMO groupID, used for monitoring MU-MIMO packets
769 * belonging to that MU-MIMO groupID; %NULL if not changed
770 * @vht_mumimo_follow_addr: MU-MIMO follow address, used for monitoring
771 * MU-MIMO packets going to the specified station; %NULL if not changed
782 * struct key_params - key information
807 * struct cfg80211_chan_def - channel definition
814 * If edmg is requested (i.e. the .channels member is non-zero),
837 * cfg80211_bitrate_mask - masks for bitrate control
856 * struct cfg80211_tid_cfg - TID specific configuration
885 * struct cfg80211_tid_config - TID configuration
897 * struct cfg80211_fils_aad - FILS AAD data
913 * struct cfg80211_set_hw_timestamp - enable/disable HW timestamping
925 * cfg80211_get_chandef_type - return old channel type from chandef
928 * Return: The old channel type (NOHT, HT20, HT40+/-) from a given
934 switch (chandef->width) {
940 if (chandef->center_freq1 > chandef->chan->center_freq)
950 * cfg80211_chandef_create - create channel definition using channel type
962 * cfg80211_chandef_identical - check if two channel definitions are identical
973 return (chandef1->chan == chandef2->chan &&
974 chandef1->width == chandef2->width &&
975 chandef1->center_freq1 == chandef2->center_freq1 &&
976 chandef1->freq1_offset == chandef2->freq1_offset &&
977 chandef1->center_freq2 == chandef2->center_freq2 &&
978 chandef1->punctured == chandef2->punctured);
982 * cfg80211_chandef_is_edmg - check if chandef represents an EDMG channel
991 return chandef->edmg.channels || chandef->edmg.bw_config;
995 * cfg80211_chandef_is_s1g - check if chandef represents an S1G channel
1003 return chandef->chan->band == NL80211_BAND_S1GHZ;
1007 * cfg80211_chandef_compatible - check if two channel definitions are compatible
1019 * nl80211_chan_width_to_mhz - get the channel width in MHz
1023 * is valid. -1 otherwise.
1028 * cfg80211_chandef_get_width - return chandef width in MHz
1035 return nl80211_chan_width_to_mhz(c->width);
1039 * cfg80211_chandef_valid - check if a channel definition is valid
1046 * cfg80211_chandef_usable - check if secondary channels can be used
1057 * cfg80211_chandef_dfs_required - checks if radar detection is required
1069 * cfg80211_chandef_dfs_usable - checks if chandef is DFS usable and we
1081 * cfg80211_chandef_dfs_cac_time - get the DFS CAC time (in ms) for given
1093 * cfg80211_chandef_primary - calculate primary 40/80/160 MHz freq
1096 * @punctured: punctured sub-channel bitmap, will be recalculated
1099 * Returns: the primary 40/80/160 MHz channel center frequency, or -1
1107 * nl80211_send_chandef - sends the channel definition.
1116 * ieee80211_chandef_max_power - maximum transmission power for the chandef
1120 * max_power for non-standard (20 MHz) channels.
1129 switch (chandef->width) {
1131 return min(chandef->chan->max_reg_power - 6,
1132 chandef->chan->max_power);
1134 return min(chandef->chan->max_reg_power - 3,
1135 chandef->chan->max_power);
1139 return chandef->chan->max_power;
1143 * cfg80211_any_usable_channels - check for usable channels
1156 * enum survey_info_flags - survey information flags
1184 * struct survey_info - channel survey response
1199 * Used by dump_survey() to report back per-channel survey information.
1220 * struct cfg80211_crypto_settings - Crypto settings
1238 * @control_port_no_preauth: disables pre-auth rx over the nl80211 control
1240 * @psk: PSK (for devices supporting 4-way-handshake offload)
1247 * Not-specified, used to indicate userspace did not specify any
1252 * Allow hunting-and-pecking loop only
1255 * Allow hash-to-element only
1258 * Allow either hunting-and-pecking loop or hash-to-element
1279 * struct cfg80211_mbssid_config - AP settings for multi bssid
1294 * struct cfg80211_mbssid_elems - Multiple BSSID elements
1311 * struct cfg80211_rnr_elems - Reduced neighbor report (RNR) elements
1328 * struct cfg80211_beacon_data - beacon data
1348 * @ftm_responder: enable FTM responder functionality; -1 for no change
1390 * struct cfg80211_acl_data - Access control list data
1406 * struct cfg80211_fils_discovery - FILS discovery parameters from
1407 * IEEE Std 802.11ai-2016, Annex C.3 MIB detail.
1410 * @min_interval: Minimum packet interval in TUs (0 - 10000)
1411 * @max_interval: Maximum packet interval in TUs (0 - 10000)
1425 * struct cfg80211_unsol_bcast_probe_resp - Unsolicited broadcast probe
1430 * in IEEE P802.11ax/D6.0 26.17.2.3.2 - AP behavior for fast passive
1443 * struct cfg80211_s1g_short_beacon - S1G short beacon data.
1460 * struct cfg80211_ap_settings - AP configuration
1540 * struct cfg80211_ap_update - AP configuration update
1557 * struct cfg80211_csa_settings - channel switch settings
1573 * MLO. 0 in case of non-MLO.
1591 * struct cfg80211_color_change_settings - color change settings
1603 * 0 in case of non-MLO.
1617 * struct iface_combination_params - input parameters for interface combinations
1621 * @radio_idx: wiphy radio index or -1 for global
1643 * enum station_parameters_apply_mask - station parameter values to apply
1648 * Not all station parameters have in-band "no change" signalling,
1658 * struct sta_txpwr - station txpower configuration
1663 * is not provided, the default per-interface tx power setting will be
1665 * power per-interface or per-station.
1678 * struct link_station_parameters - link station parameters
1683 * @link_id: the link id (-1 for non-MLD station)
1722 * struct link_station_del_parameters - link station deletion parameters
1740 * (TID-To-Link Mapping element) in Draft P802.11be_D4.0.
1742 * (TID-To-Link Mapping element) in Draft P802.11be_D4.0.
1750 * struct station_parameters - station parameters
1759 * @listen_interval: listen interval or -1 for no change
1772 * @local_pm: local link-specific mesh power save mode (no change when set
1816 * struct station_del_parameters - station deletion parameters
1825 * using; valid only for MLO, but can also be -1 for MLO to really
1836 * enum cfg80211_station_type - the type of station being modified
1845 * while TDLS setup is in progress, it moves out of this state when
1846 * being marked authorized; use this only if TDLS with external setup is
1866 * cfg80211_check_station_change - validate parameter changes
1884 * enum rate_info_flags - bitrate info flags
1891 * @RATE_INFO_FLAGS_SHORT_GI: 400ns guard interval
1912 * enum rate_info_bw - rate bandwidth information
1949 * struct rate_info - bitrate information
1962 * @n_bonded_ch: In case of EDMG the number of bonded channels (1-4)
1982 * enum bss_param_flags - bitrate info flags
1998 * struct sta_bss_parameters - BSS parameters for the attached station
2013 * struct cfg80211_txq_stats - TXQ statistics for this TID
2044 * struct cfg80211_tid_stats - per-TID statistics
2066 * struct link_station_info - link station information
2075 * @assoc_at: bootime (ns) of the last association of link of station
2083 * @chain_signal: per-chain signal strength of last received packet in dBm
2084 * @chain_signal_avg: per-chain signal strength average in dBm
2091 * @rx_dropped_misc: Dropped for un-specified reason.
2099 * @rx_duration: aggregate PPDU duration(usecs) for all the frames from a peer
2100 * @tx_duration: aggregate PPDU duration(usecs) for all the frames to a peer
2102 * @pertid: per-TID statistics, see &struct cfg80211_tid_stats, using the last
2103 * (IEEE80211_NUM_TIDS) index for MSDUs not encapsulated in QoS-MPDUs.
2104 * Note that this doesn't use the @filled bit, but is used if non-NULL.
2159 * struct station_info - station information
2167 * @assoc_at: bootime (ns) of the last association
2175 * @chain_signal: per-chain signal strength of last received packet in dBm
2176 * @chain_signal_avg: per-chain signal strength average in dBm
2183 * @rx_dropped_misc: Dropped for un-specified reason.
2205 * @nonpeer_pm: non-peer mesh STA power save mode
2211 * @rx_duration: aggregate PPDU duration(usecs) for all the frames from a peer
2212 * @tx_duration: aggregate PPDU duration(usecs) for all the frames to a peer
2214 * @pertid: per-TID statistics, see &struct cfg80211_tid_stats, using the last
2215 * (IEEE80211_NUM_TIDS) index for MSDUs not encapsulated in QoS-MPDUs.
2216 * Note that this doesn't use the @filled bit, but is used if non-NULL.
2231 * and non-MLO STA connections when the AP affiliated with an MLD.
2233 * For non-MLO STA connection, filled with all zeros.
2242 * @valid_links: bitmap of valid links, or 0 for non-MLO. Drivers fill this
2317 * struct cfg80211_sar_sub_specs - sub specs limit
2327 * struct cfg80211_sar_specs - sar limit specs
2340 * struct cfg80211_sar_freq_ranges - sar frequency ranges
2350 * struct cfg80211_sar_capa - sar limit capability
2366 * cfg80211_get_station - retrieve information about a given station
2382 return -ENOENT;
2387 * enum monitor_flags - monitor flags
2413 * enum mpath_info_flags - mesh path information flags
2441 * struct mpath_info - mesh path information
2476 * enum wiphy_bss_param_flags - bit positions for supported bss parameters.
2485 * @WIPHY_BSS_PARAM_P2P_OPPPS: support changing P2P opportunistic power-save.
2499 * struct bss_parameters - BSS parameters
2503 * @link_id: link_id or -1 for non-MLD
2505 * (0 = no, 1 = yes, -1 = do not change)
2507 * (0 = no, 1 = yes, -1 = do not change)
2509 * (0 = no, 1 = yes, -1 = do not change)
2514 * (0 = no, 1 = yes, -1 = do not change)
2516 * (u16 = opmode, -1 = do not change)
2517 * @p2p_ctwindow: P2P CT Window (-1 = no change)
2518 * @p2p_opp_ps: P2P opportunistic PS (-1 = no change)
2533 * struct mesh_config - 802.11s mesh configuration
2579 * @dot11MeshForwarding: whether the Mesh STA is forwarding or non-forwarding
2580 * entity (default is TRUE - forwarding entity)
2596 * @dot11MeshAwakeWindowDuration: The duration in TUs the STA will remain awake
2608 * @dot11MeshNolearn: Try to avoid multi-hop path discovery (e.g. PREQ/PREP
2610 * not be the optimal decision as a multi-hop route might be better. So
2649 * struct mesh_setup - 802.11s mesh setup configuration
2698 * struct ocb_setup - 802.11p OCB mode setup configuration
2708 * struct ieee80211_txq_params - TX queue parameters
2711 * @cwmin: Minimum contention window [a value of the form 2^n-1 in the range
2713 * @cwmax: Maximum contention window [a value of the form 2^n-1 in the range
2716 * @link_id: link_id or -1 for non-MLD
2737 * well-formed, and will not exceed the maximum length the driver advertised
2751 * struct cfg80211_ssid - SSID description
2761 * struct cfg80211_scan_info - information about completed scan
2776 * struct cfg80211_scan_6ghz_params - relevant for 6 GHz only
2799 * struct cfg80211_scan_request - scan request description
2807 * @duration: how long to listen on each channel, in TUs. If
2810 * @duration_mandatory: if set, the scan duration must be as specified by the
2811 * %duration field.
2831 * used for TSF reporting. Can be set to -1 to indicate no preference.
2839 u16 duration;
2875 * struct cfg80211_match_set - sets of attributes to match
2877 * @ssid: SSID to be matched; may be zero-length in case of BSSID match
2879 * @bssid: BSSID to be matched; may be all-zero BSSID in case of SSID match
2890 * struct cfg80211_sched_scan_plan - scan plan for scheduled scan
2904 * struct cfg80211_bss_select_adjust - BSS selection with RSSI adjustment.
2915 * struct cfg80211_sched_scan_request - scheduled scan request description
2946 * @nl_owner_dead: netlink owner socket was closed - this request be freed
3000 * enum cfg80211_signal_type - signal type
3013 * struct cfg80211_inform_bss - BSS inform data
3029 * @chain_signal: per-chain signal strength of last received BSS in dBm.
3055 * struct cfg80211_bss_ies - BSS entry IE data
3071 * struct cfg80211_bss - BSS description
3081 * are well-formed!); this is a pointer to either the beacon_ies or
3083 * received. It is always non-%NULL.
3094 * points to the same data as hidden_beacon_bss->beacon_ies in that case.
3096 * non-transmitted one (multi-BSSID support)
3097 * @nontrans_list: list of non-transmitted BSS, if this is a transmitted one
3098 * (multi-BSSID support)
3102 * @chain_signal: per-chain signal strength of last received BSS in dBm.
3110 * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes
3146 * ieee80211_bss_get_elem - find element with given ID
3150 * Note that the return value is an RCU-protected pointer, so
3157 * ieee80211_bss_get_ie - find IE with given ID
3161 * Note that the return value is an RCU-protected pointer, so
3172 * struct cfg80211_auth_request - Authentication request data
3190 * the authentication frame body (non-IE and IE data), excluding the
3218 * struct cfg80211_assoc_link - per-link information for MLO association
3221 * @elems: extra elements for the per-STA profile for this link
3225 * @error: per-link error code, must be <= 0. If there is an error, then the
3237 * struct cfg80211_ml_reconf_req - MLO link reconfiguration request
3250 * enum cfg80211_assoc_req_flags - Over-ride default behaviour in association.
3264 * @ASSOC_REQ_SPP_AMSDU: SPP A-MSDUs will be used on this connection (if any)
3278 * struct cfg80211_assoc_request - (Re)Association request data
3303 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
3304 * will be used in ht_capa. Un-supported values will be ignored.
3316 * @links: per-link information for MLO connections
3347 * struct cfg80211_deauth_request - Deauthentication request data
3368 * struct cfg80211_disassoc_request - Disassociation request data
3389 * struct cfg80211_ibss_params - IBSS parameters
3394 * @ssid: The SSID, will always be non-null.
3395 * @ssid_len: The length of the SSID, will always be non-zero.
3399 * @channel_fixed: The channel should be fixed -- do not search for
3416 * @mcast_rate: per-band multicast rate index + 1 (0: disabled)
3417 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
3418 * will be used in ht_capa. Un-supported values will be ignored.
3445 * struct cfg80211_bss_selection - connection parameters for BSS selection.
3461 * struct cfg80211_connect_params - Connection parameters
3466 * @channel: The channel to use or %NULL if not specified (auto-select based
3470 * @bssid: The AP BSSID or %NULL if not specified (auto-select based on scan
3481 * @privacy: indicates whether privacy-enabled APs should be used
3489 * or -1 to indicate that default value is to be used.
3490 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
3491 * will be used in ht_capa. Un-supported values will be ignored.
3504 * @fils_erp_username: EAP re-authentication protocol (ERP) username part of the
3508 * @fils_erp_realm: EAP re-authentication protocol (ERP) realm part of NAI or
3514 * @fils_erp_rrk: ERP re-authentication Root Key (rRK) used to derive additional
3517 * @want_1x: indicates user-space supports and wants to use 802.1X driver
3518 * offload of 4-way handshake.
3559 * enum cfg80211_connect_params_changed - Connection parameters being updated
3576 * enum wiphy_params_flags - set_wiphy_params bitfield values
3577 * @WIPHY_PARAM_RETRY_SHORT: wiphy->retry_short has changed
3578 * @WIPHY_PARAM_RETRY_LONG: wiphy->retry_long has changed
3579 * @WIPHY_PARAM_FRAG_THRESHOLD: wiphy->frag_threshold has changed
3580 * @WIPHY_PARAM_RTS_THRESHOLD: wiphy->rts_threshold has changed
3609 * struct cfg80211_pmksa - PMK Security Association
3623 * @cache_id: 2-octet cache identifier advertized by a FILS AP identifying the
3624 * scope of PMKSA. This is valid only if @ssid_len is non-zero (may be
3651 * struct cfg80211_pkt_pattern - packet pattern
3668 * struct cfg80211_wowlan_tcp - TCP connection parameters
3703 * struct cfg80211_wowlan - Wake on Wireless-LAN support info
3706 * @any: wake up on any activity -- special trigger if device continues
3714 * @four_way_handshake: wake up on 4-way handshake
3731 * struct cfg80211_coalesce_rules - Coalesce rule parameters
3748 * struct cfg80211_coalesce - Packet coalescing settings
3760 * struct cfg80211_wowlan_nd_match - information about the match
3775 * struct cfg80211_wowlan_nd_info - net detect wake up information
3789 * struct cfg80211_wowlan_wakeup - wakeup report
3794 * @four_way_handshake: woke up by 4-way handshake
3796 * @pattern_idx: pattern that caused wakeup, -1 if not due to pattern
3824 * struct cfg80211_gtk_rekey_data - rekey data
3839 * struct cfg80211_update_ft_ies_params - FT IE Information
3854 * struct cfg80211_mgmt_tx_params - mgmt tx parameters
3860 * @wait: duration for ROC
3867 * @link_id: for MLO, the link ID to transmit on, -1 if not given; note
3885 * struct cfg80211_dscp_exception - DSCP exception
3896 * struct cfg80211_dscp_range - DSCP range definition for user priority
3906 /* QoS Map Set element length defined in IEEE Std 802.11-2012, 8.4.2.97 */
3913 * struct cfg80211_qos_map - QoS Map Information
3929 * struct cfg80211_nan_band_config - NAN band specific configuration
3938 * Transition" of Wi-Fi Aware Specification v4.0. If not
3940 * be greater than -60 dBm.
3943 * Transition" of Wi-Fi Aware Specification v4.0. If not
3945 * greater than -75 dBm and less than rssi_close.
3946 * @awake_dw_interval: Committed DW interval. Valid values range: 0-5. 0
3948 * 2^(n-1).
3961 * struct cfg80211_nan_conf - NAN configuration
3965 * @master_pref: master preference (1 - 255)
3970 * that can take a value from 50-6F-9A-01-00-00 to 50-6F-9A-01-FF-FF.
3981 * @vendor_elems: pointer to vendor-specific elements.
3982 * @vendor_elems_len: length of the vendor-specific elements.
4000 * enum cfg80211_nan_conf_changes - indicates changed fields in NAN
4019 * struct cfg80211_nan_func_filter - a NAN function Rx / Tx filter
4030 * struct cfg80211_nan_func - a NAN function
4086 * struct cfg80211_pmk_conf - PMK configuration
4091 * @pmk_r0_name: PMK-R0 Name. NULL if not applicable (i.e., the PMK
4092 * is not PMK-R0). When pmk_r0_name is not NULL, the pmk field
4093 * holds PMK-R0.
4103 * struct cfg80211_external_auth_params - Trigger External authentication.
4144 * struct cfg80211_ftm_responder_stats - FTM responder statistics
4154 * @non_asap_num: number of non-ASAP FTM sessions
4155 * @total_duration_ms: total sessions durations - gives an indication
4157 * @unknown_triggers_num: number of unknown FTM triggers - triggers from
4160 * @reschedule_requests_num: number of FTM reschedule requests - initiator asks
4178 * struct cfg80211_pmsr_ftm_result - FTM result
4183 * in [0 .. num_bursts-1] of the burst that's being reported
4190 * @burst_duration: actual burst duration negotiated
4258 * struct cfg80211_pmsr_result - peer measurement result
4289 * struct cfg80211_pmsr_ftm_request_peer - FTM request data
4295 * @burst_duration: burst duration
4332 * struct cfg80211_pmsr_request_peer - peer data for a peer measurement request
4346 * struct cfg80211_pmsr_request - peer measurement request
4348 * @nl_portid: netlink portid - used by cfg80211
4359 * @peers: per-peer measurement request data
4378 * struct cfg80211_update_owe_info - OWE Information
4396 * by peer. This will be filled by driver for both MLO and non-MLO station
4397 * connections when the AP affiliated with an MLD. For non-MLD AP mode, it
4398 * will be -1. Used only with OWE update event (driver to user space).
4399 * @peer_mld_addr: For MLO connection, MLD address of the peer. For non-MLO
4401 * @assoc_link_id is not -1, i.e., the AP affiliated with an MLD. Used only
4414 * struct mgmt_frame_regs - management frame registrations data
4429 * struct cfg80211_ops - backend description for wireless configuration
4443 * be %NULL or contain the enabled Wake-on-Wireless triggers that are
4465 * the wdev->link[] data structure has been updated, so the new link
4470 * when adding a group key. @link_id will be -1 for non-MLO connection.
4471 * For MLO connection, @link_id will be >= 0 for group key and -1 for
4478 * not possible to retrieve the key, -ENOENT if it doesn't exist.
4479 * @link_id will be -1 for non-MLO connection. For MLO connection,
4480 * @link_id will be >= 0 for group key and -1 for pairwise key, @mac_addr
4484 * and @key_index, return -ENOENT if the key doesn't exist. @link_id will
4485 * be -1 for non-MLO connection. For MLO connection, @link_id will be >= 0
4486 * for group key and -1 for pairwise key, @mac_addr will be peer's MLD
4490 * for MLO connection and -1 for non-MLO connection.
4493 * @link_id will be >= 0 for MLO connection and -1 for non-MLO connection.
4496 * @link_id will be >= 0 for MLO connection and -1 for non-MLO connection.
4509 * might come to the driver in invalid combinations -- make sure to check
4513 * @dump_station: dump station callback -- resume dump at index @idx
4519 * @dump_mpath: dump mesh path callback -- resume dump at index @idx
4521 * @dump_mpp: dump mesh proxy path callback -- resume dump at index @idx
4584 * In both the driver-initiated and new connect() call initiated roaming
4618 * always be %NULL unless the driver supports per-vif TX power
4629 * channel for the specified duration to complete an off-channel
4633 * @cancel_remain_on_channel: Cancel an on-going remain-on-channel operation.
4635 * the duration value.
4641 * @testmode_dump: Implement a test mode dump. The cb->args[2] and up may be
4643 * return error codes other than -ENOBUFS and -ENOENT will terminate the
4655 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1
4682 * reject TX/RX mask combinations they cannot support by returning -EINVAL
4688 * @tdls_oper: Perform a high-level TDLS operation (e.g. TDLS link setup).
4719 * for a given duration (milliseconds). The protocol is provided so the
4725 * @channel_switch: initiate channel-switch procedure (with CSA). Driver is
4754 * @tdls_channel_switch: Start channel-switching with a TDLS peer. The driver
4755 * is responsible for continually initiating channel-switching operations
4757 * @tdls_cancel_channel_switch: Stop channel-switching with a TDLS peer. Both
4778 * @set_pmk: configure the PMK to be used for offloaded 802.1X 4-Way handshake.
4832 * @assoc_ml_reconf: Request a non-AP MLO connection to perform ML
4932 const struct mesh_setup *setup);
4936 struct ocb_setup *setup);
5022 unsigned int duration,
5107 u16 duration);
5220 * enum wiphy_flags - wiphy capability flags
5227 * by default -- this flag will be set depending on the kernel's default
5245 * link setup/discovery operations internally. Setup, discovery and
5254 * responds to probe-requests in hardware.
5255 * @WIPHY_FLAG_OFFCHAN_TX: Device supports direct off-channel TX.
5256 * @WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL: Device supports remain-on-channel call.
5265 * @WIPHY_FLAG_SUPPORTS_EXT_KCK_32: The device supports 32-byte KCK keys.
5270 * @WIPHY_FLAG_SUPPORTS_NSTR_NONPRIMARY: support connection to non-primary link
5304 * struct ieee80211_iface_limit - limit on certain interface types
5314 * struct ieee80211_iface_combination - possible interface combination
5325 * .. code-block:: c
5339 * 2. Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total:
5341 * .. code-block:: c
5355 * 3. Allow #STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total.
5359 * .. code-block:: c
5437 * enum wiphy_wowlan_support_flags - WoWLAN support flags
5439 * trigger that keeps the device operating as-is and
5449 * @WIPHY_WOWLAN_4WAY_HANDSHAKE: supports wakeup on 4-way handshake failure
5450 * @WIPHY_WOWLAN_RFKILL_RELEASE: supports wakeup on RF-kill release
5474 * struct wiphy_wowlan_support - WoWLAN support data
5481 * @max_nd_match_sets: maximum number of matchsets for net-detect,
5499 * struct wiphy_coalesce_support - coalesce support data
5518 * enum wiphy_vendor_command_flags - validation flags for vendor commands
5531 * enum wiphy_opmode_flag - Station's ht/vht operation mode information flags
5545 * struct sta_opmode_info - Station's ht/vht operation mode information
5559 #define VENDOR_CMD_RAW_DATA ((const struct nla_policy *)(long)(-ENODATA))
5562 * struct wiphy_vendor_command - vendor command definition
5566 * flags didn't ask for a wdev and non-%NULL otherwise; the data
5569 * @storage points to cb->args[5], ie. is preserved over the multiple
5592 * struct wiphy_iftype_ext_capab - extended capabilities per interface type
5598 * 802.11-2012 8.4.2.29 for the defined fields.
5614 * cfg80211_get_iftype_ext_capa - lookup interface type extended capability
5624 * struct cfg80211_pmsr_capabilities - cfg80211 peer measurement capabilities
5630 * @ftm.asap: ASAP-mode is supported
5631 * @ftm.non_asap: non-ASAP-mode is supported
5637 * (set to -1 if not limited; note that setting this will necessarily
5665 * struct wiphy_iftype_akm_suites - This structure encapsulates supported akm
5680 * struct wiphy_radio_cfg - physical radio config of a wiphy
5682 * wiphy. It is used to denote per-radio attributes belonging to a wiphy.
5685 * -1 (default) = RTS/CTS disabled
5692 * struct wiphy_radio_freq_range - wiphy frequency range
5703 * struct wiphy_radio - physical radio of a wiphy
5705 * It is used to describe concurrent-channel capabilities. Only one channel
5728 * enum wiphy_nan_flags - NAN capabilities
5740 * struct wiphy_nan_capa - NAN capabilities
5745 * @op_mode: NAN operation mode, as defined in Wi-Fi Aware (TM) specification
5752 * @dev_capabilities: NAN device capabilities as defined in Wi-Fi Aware (TM)
5766 * struct wiphy - wireless hardware description
5791 * -1 = fragmentation disabled, only odd values >= 256 used
5792 * @rts_threshold: RTS threshold (dot11RTSThreshold); -1 = RTS/CTS disabled
5797 * four bits are variable then set it to 00-00-00-00-00-0f. The actual
5804 * all-zeroes. In this case it is assumed that the device can handle
5806 * @registered: protects ->resume and ->suspend sysfs callbacks against
5839 * @max_scan_ie_len: maximum length of user-controlled IEs device can
5875 * @max_remain_on_channel_duration: Maximum time a remain-on-channel operation
5884 * @ht_capa_mod_mask: Specify what ht_cap values can be over-ridden.
5885 * If null, then none can be over-ridden.
5886 * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden.
5887 * If null, then none can be over-ridden.
5899 * 802.11-2012 8.4.2.29 for the defined fields. These are the default
5952 * @tid_config_support: describes the per-TID config support that the
5968 * in a multiple BSSID set. This field must be set to a non-zero value
5971 * the driver. Setting this field to a non-zero value indicates that the
5972 * driver supports enhanced multi-BSSID advertisements (EMA AP).
5983 * non-zero value indicates that the driver supports HW timestamping.
5988 * @radio_cfg: configuration of radios belonging to a muli-radio wiphy. This
5990 * used only for multi-radio wiphy.
6083 /* fields below are read-only, assigned by cfg80211 */
6156 return read_pnet(&wiphy->_net);
6161 write_pnet(&wiphy->_net, net);
6165 * wiphy_priv - return priv from wiphy
6173 return &wiphy->priv;
6177 * priv_to_wiphy - return the wiphy containing the priv
6189 * set_wiphy_dev - set device pointer for wiphy
6196 wiphy->dev.parent = dev;
6200 * wiphy_dev - get wiphy dev pointer
6207 return wiphy->dev.parent;
6211 * wiphy_name - get wiphy name
6218 return dev_name(&wiphy->dev);
6222 * wiphy_new_nm - create a new wiphy for use with cfg80211
6239 * wiphy_new - create a new wiphy for use with cfg80211
6257 * wiphy_register - register a wiphy with cfg80211
6261 * Return: A non-negative wiphy index or a negative error code.
6266 #define lockdep_assert_wiphy(wiphy) lockdep_assert_held(&(wiphy)->mtx)
6269 * rcu_dereference_wiphy - rcu_dereference with debug checking
6277 rcu_dereference_check(p, lockdep_is_held(&wiphy->mtx))
6280 * wiphy_dereference - fetch RCU pointer when updates are prevented by wiphy mtx
6284 * Return: the value of the specified RCU-protected pointer, but omit the
6288 rcu_dereference_protected(p, lockdep_is_held(&wiphy->mtx))
6291 * get_wiphy_regdom - get custom regdomain for the given wiphy
6301 * wiphy_unregister - deregister a wiphy from cfg80211
6312 * wiphy_free - free wiphy
6325 * wiphy_lock - lock the wiphy
6341 __acquires(&wiphy->mtx)
6343 mutex_lock(&wiphy->mtx);
6344 __acquire(&wiphy->mtx);
6348 * wiphy_unlock - unlock the wiphy again
6352 __releases(&wiphy->mtx)
6354 __release(&wiphy->mtx);
6355 mutex_unlock(&wiphy->mtx);
6359 mutex_lock(&_T->mtx),
6360 mutex_unlock(&_T->mtx))
6373 INIT_LIST_HEAD(&work->entry);
6374 work->func = func;
6378 * wiphy_work_queue - queue work for the wiphy
6392 * wiphy_work_cancel - cancel previously queued work
6402 * wiphy_work_flush - flush previously queued work
6422 timer_setup(&dwork->timer, wiphy_delayed_work_timer, 0);
6423 wiphy_work_init(&dwork->work, func);
6427 * wiphy_delayed_work_queue - queue delayed work for the wiphy
6444 * wiphy_delayed_work_cancel - cancel previously queued delayed work
6455 * wiphy_delayed_work_flush - flush previously queued delayed work
6466 * wiphy_delayed_work_pending - Find out whether a wiphy delayable
6489 * mod_timer(wk->timer)
6490 * wiphy_delayed_work_pending(wk) -> true
6493 * expire_timers(wk->timer)
6494 * detach_timer(wk->timer)
6495 * wiphy_delayed_work_pending(wk) -> false
6496 * wk->timer->function() |
6499 * queue_work(cfg80211_wiphy_work) | wk->func() has not
6503 * wk->func() V
6510 * enum ieee80211_ap_reg_power - regulatory power for an Access Point
6525 * struct wireless_dev - wireless device state
6533 * unregistering netdevs if they pre-create any netdevs (in ops
6536 * For non-netdev uses, it must also be allocated by the driver
6566 * netdev and may otherwise be used by driver read-only, will be update
6572 * @is_running: true if this is a non-netdev device that has been started, e.g.
6582 * @disconnect_wk: (private) auto-disconnect work
6583 * @disconnect_bssid: (private) the BSSID to use for auto-disconnect
6622 /* currently used for IBSS and SME - might be rearranged later */
6725 if (wdev->netdev)
6726 return wdev->netdev->dev_addr;
6727 return wdev->address;
6732 if (wdev->netdev)
6733 return netif_running(wdev->netdev);
6734 return wdev->is_running;
6738 * wdev_priv - return wiphy priv from wireless_dev
6746 return wiphy_priv(wdev->wiphy);
6750 * wdev_chandef - return chandef pointer from wireless_dev
6762 WARN_ON(link_id && !wdev->valid_links);
6763 WARN_ON(wdev->valid_links &&
6764 !(wdev->valid_links & BIT(link_id)));
6769 link_id < ((link_info)->valid_links ? \
6770 ARRAY_SIZE((link_info)->links) : 1); \
6772 if (!(link_info)->valid_links || \
6773 ((link_info)->valid_links & BIT(link_id)))
6782 * ieee80211_channel_equal - compare two struct ieee80211_channel
6792 return (a->center_freq == b->center_freq &&
6793 a->freq_offset == b->freq_offset);
6797 * ieee80211_channel_to_khz - convert ieee80211_channel to frequency in KHz
6804 return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset;
6808 * ieee80211_channel_to_freq_khz - convert channel number to frequency
6816 * ieee80211_channel_to_frequency - convert channel number to frequency
6828 * ieee80211_freq_khz_to_channel - convert frequency to channel number
6835 * ieee80211_frequency_to_channel - convert frequency to channel number
6846 * ieee80211_get_channel_khz - get channel struct from wiphy for specified
6856 * ieee80211_get_channel - get channel struct from wiphy for specified frequency
6869 * cfg80211_channel_is_psc - Check if the channel is a 6 GHz PSC
6879 if (chan->band != NL80211_BAND_6GHZ)
6882 return ieee80211_frequency_to_channel(chan->center_freq) % 16 == 5;
6886 * cfg80211_radio_chandef_valid - Check if the radio supports the chandef
6897 * cfg80211_wdev_channel_allowed - Check if the wdev may use the channel
6908 * ieee80211_get_response_rate - get basic rate for a given rate
6924 * ieee80211_mandatory_rates - get mandatory rates for a given band
6933 * Radiotap parsing functions -- for controlled injection support
6936 * Documentation in Documentation/networking/radiotap-headers.rst
6951 const struct ieee80211_radiotap_namespace *ns;
6956 * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args
7018 * ieee80211_get_hdrlen_from_skb - get header length from data
7032 * ieee80211_hdrlen - get header length in bytes from frame control
7033 * @fc: frame control field in little-endian format
7039 * ieee80211_get_mesh_hdrlen - get mesh extension header length
7056 * ieee80211_data_to_8023_exthdr - convert an 802.11 data frame to 802.3
7063 * @is_amsdu: true if the 802.11 header is A-MSDU
7064 * Return: 0 on success. Non-zero on error.
7071 * ieee80211_data_to_8023 - convert an 802.11 data frame to 802.3
7075 * Return: 0 on success. Non-zero on error.
7084 * ieee80211_is_valid_amsdu - check if subframe lengths of an A-MSDU are valid
7086 * This is used to detect non-standard A-MSDU frames, e.g. the ones generated
7090 * @skb: The input A-MSDU frame without any headers.
7092 * 0: non-mesh A-MSDU length field
7093 * 1: big-endian mesh A-MSDU length field
7094 * 2: little-endian mesh A-MSDU length field
7100 * ieee80211_amsdu_to_8023s - decode an IEEE 802.11n A-MSDU frame
7102 * Decode an IEEE 802.11 A-MSDU and convert it to a list of 802.3 frames.
7104 * header-less before being passed in here; it is freed in this function.
7106 * @skb: The input A-MSDU frame without any headers.
7123 * ieee80211_get_8023_tunnel_proto - get RFC1042 or bridge tunnel encap protocol
7135 * ieee80211_strip_8023_mesh_hdr - strip mesh header from converted 802.3 frames
7143 * Return: 0 on success. Non-zero on error.
7148 * cfg80211_classify8021d - determine the 802.1p/1d tag for a data frame
7157 * cfg80211_find_elem_match - match information element and byte array in data
7184 * cfg80211_find_ie_match - match information element and byte array in data
7222 match_offset - 2 : 0);
7226 * cfg80211_find_elem - find information element in data
7247 * cfg80211_find_ie - find information element in data
7267 * cfg80211_find_ext_elem - find information element with EID Extension in data
7289 * cfg80211_find_ext_ie - find information element with EID Extension in data
7310 * cfg80211_find_vendor_elem - find vendor specific information element in data
7313 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
7329 * cfg80211_find_vendor_ie - find vendor specific information element in data
7332 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
7352 * enum cfg80211_rnr_iter_ret - reduced neighbor report iteration state
7364 * cfg80211_iter_rnr - iterate reduced neighbor report entries
7384 * cfg80211_defragment_element - Defrag the given element data into a buffer
7393 * Return: length of @data, or -EINVAL on error
7399 * element in-place.
7406 * cfg80211_send_layer2_update - send layer 2 update frame
7423 * regulatory_hint - driver hint to the wireless core a regulatory domain
7428 * set this to NULL you should still set rd->alpha2 to some accepted
7443 * an -ENOMEM.
7445 * Return: 0 on success. -ENOMEM.
7450 * regulatory_set_wiphy_regd - set regdom info for self managed drivers
7454 * Set the regulatory domain information for self-managed wiphys, only they
7458 * Return: 0 on success. -EINVAL, -EPERM
7464 * regulatory_set_wiphy_regd_sync - set regdom for self-managed drivers
7472 * Return: 0 on success. -EINVAL, -EPERM
7478 * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain
7496 * freq_reg_info - get regulatory information for the given frequency
7508 * value will be -ERANGE if we determine the given center_freq does not even
7510 * See freq_in_rule_band() for our current definition of a band -- this is
7517 * reg_initiator_name - map regulatory request initiator enum to name
7528 * regulatory_pre_cac_allowed - check if pre-CAC allowed in the current regdom
7529 * @wiphy: wiphy for which pre-CAC capability is checked.
7531 * Pre-CAC is allowed only in some regdomains (notable ETSI).
7543 * reg_query_regdb_wmm - Query internal regulatory db for wmm rule
7544 * Regulatory self-managed driver can use it to proactively
7550 * Self-managed wireless drivers can use this function to query
7555 * an -ENODATA.
7557 * Return: 0 on success. -ENODATA.
7568 * cfg80211_scan_done - notify that scan finished
7577 * cfg80211_sched_scan_results - notify that new scan results are available
7585 * cfg80211_sched_scan_stopped - notify that the scheduled scan has stopped
7597 * cfg80211_sched_scan_stopped_locked - notify that the scheduled scan has stopped
7610 * cfg80211_inform_bss_frame_data - inform cfg80211 of a received BSS frame
7644 * cfg80211_gen_new_bssid - generate a nontransmitted BSSID for multi-BSSID
7654 u64 mask = GENMASK_ULL(max_bssid - 1, 0);
7665 * cfg80211_is_element_inherited - returns if element ID should be inherited
7675 * cfg80211_merge_profile - merges a MBSSID profile if it is split between IEs
7691 * enum cfg80211_bss_frame_type - frame type that the BSS data came from
7706 * cfg80211_get_ies_channel_number - returns the channel number from ies
7711 * Return: the channel number, or -1 if none could be determined.
7717 * cfg80211_ssid_eq - compare two SSIDs
7728 if (a->ssid_len != b->ssid_len)
7730 return memcmp(a->ssid, b->ssid, a->ssid_len) ? false : true;
7734 * cfg80211_inform_bss_data - inform cfg80211 of a new BSS
7780 * __cfg80211_get_bss - get a BSS reference
7790 * Return: Reference-counted BSS on success. %NULL on error.
7801 * cfg80211_get_bss - get a BSS reference
7812 * Return: Reference-counted BSS on success. %NULL on error.
7836 * cfg80211_ref_bss - reference BSS struct
7845 * cfg80211_put_bss - unref BSS struct
7854 * cfg80211_unlink_bss - unlink BSS from internal data structures
7866 * cfg80211_bss_iter - iterate all BSS entries
7886 * cfg80211_rx_mlme_mgmt - notification of processed MLME management frame
7907 * cfg80211_auth_timeout - notification of timed out authentication
7917 * struct cfg80211_rx_assoc_resp_data - association response data
7925 * @links: per-link information indexed by link ID, use links[0] for
7926 * non-MLO connections
7947 * cfg80211_rx_assoc_resp - notification of processed association response
7960 * struct cfg80211_assoc_failure - association failure data
7962 * @bss: list of BSSes, must use entry 0 for non-MLO connections
7975 * cfg80211_assoc_failure - notification of association failure
7985 * cfg80211_tx_mlme_mgmt - notification of transmitted deauth/disassoc frame
8000 * cfg80211_rx_unprot_mlme_mgmt - notification of unprotected mlme mgmt frame
8017 * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP)
8021 * @key_id: Key identifier (0..3). Can be -1 if missing.
8026 * received frame. This matches with MLME-MICHAELMICFAILURE.indication()
8034 * cfg80211_ibss_joined - notify cfg80211 that device joined an IBSS
8045 * with the locally generated beacon -- this guarantees that there is
8052 * cfg80211_notify_new_peer_candidate - notify cfg80211 of a new mesh peer
8085 * wiphy_rfkill_set_hw_state_reason - notify cfg80211 about hw block state
8100 * wiphy_rfkill_start_polling - start polling rfkill
8106 * wiphy_rfkill_stop_polling - stop polling rfkill
8111 rfkill_pause_polling(wiphy->rfkill);
8120 * (typically closed-source) userspace and firmware, using nl80211 as
8130 * "normal" functionality that higher-level userspace like connection
8150 * cfg80211_vendor_cmd_alloc_reply_skb - allocate vendor command reply
8155 * This function allocates and pre-fills an skb for a reply to
8159 * The returned skb is pre-filled with some identifying data in
8170 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
8180 * cfg80211_vendor_cmd_reply - send the reply skb
8194 * cfg80211_vendor_cmd_get_sender - get the current sender netlink ID
8204 * cfg80211_vendor_event_alloc - allocate vendor-specific event skb
8212 * This function allocates and pre-fills an skb for an event on the
8213 * vendor-specific multicast group.
8222 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
8234 * cfg80211_vendor_event_alloc_ucast - alloc unicast vendor-specific event skb
8243 * This function allocates and pre-fills an skb for an event to send to
8255 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
8269 * cfg80211_vendor_event - send the event
8286 * interact with driver-specific tools to aid, for instance,
8294 * cfg80211_testmode_alloc_reply_skb - allocate testmode reply
8299 * This function allocates and pre-fills an skb for a reply to
8303 * The returned skb is pre-filled with the wiphy index and set up in
8314 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
8324 * cfg80211_testmode_reply - send the reply skb
8341 * cfg80211_testmode_alloc_event_skb - allocate testmode event
8347 * This function allocates and pre-fills an skb for an event on the
8359 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
8365 NL80211_ATTR_TESTDATA, 0, -1,
8370 * cfg80211_testmode_event - send the event
8392 * struct cfg80211_fils_resp_params - FILS connection response params
8416 * struct cfg80211_connect_resp_params - Connection response params
8421 * from the AP) instead of an explicit rejection by the AP, -1 is used to
8440 * using @valid_links. For non-MLO connection, links[0] contains the
8444 * @links.bssid: For MLO connection, MAC address of the AP link. For non-MLO
8447 * For non-MLO connection, links[0].bss points to entry of bss to which STA
8454 * @links.status: per-link status code, to report a status code that's not
8478 * cfg80211_connect_done - notify cfg80211 of connection result
8496 * cfg80211_connect_bss - notify cfg80211 of connection result
8514 * from the AP) instead of an explicit rejection by the AP, -1 is used to
8556 * cfg80211_connect_result - notify cfg80211 of connection result
8587 * cfg80211_connect_timeout - notify cfg80211 of connection timeout
8609 cfg80211_connect_bss(dev, bssid, NULL, req_ie, req_ie_len, NULL, 0, -1,
8614 * struct cfg80211_roam_info - driver initiated roaming information
8625 * @valid_links. For non-MLO roaming, links[0] contains the new AP info.
8627 * @links.bssid: For MLO roaming, MAC address of the new AP link. For non-MLO
8632 * roamed. For non-MLO roaming, links[0].bss points to entry of bss to
8653 * cfg80211_roamed - notify cfg80211 of roaming
8666 * rdev->event_work. In case of any failures, the reference is released
8674 * cfg80211_port_authorized - notify cfg80211 of successful security association
8697 * cfg80211_disconnected - notify cfg80211 that connection was dropped
8714 * cfg80211_ready_on_channel - notification of remain_on_channel start
8718 * @duration: Duration in milliseconds that the driver intents to remain on the
8724 unsigned int duration, gfp_t gfp);
8727 * cfg80211_remain_on_channel_expired - remain_on_channel duration expired
8738 * cfg80211_tx_mgmt_expired - tx_mgmt duration expired
8748 * cfg80211_sinfo_alloc_tid_stats - allocate per-tid statistics.
8753 * Return: 0 on success. Non-zero on error.
8758 * cfg80211_link_sinfo_alloc_tid_stats - allocate per-tid statistics.
8763 * Return: 0 on success. Non-zero on error.
8769 * cfg80211_sinfo_release_content - release contents of station info
8772 * Releases any potentially allocated sub-information of the station
8778 kfree(sinfo->pertid);
8780 for (int link_id = 0; link_id < ARRAY_SIZE(sinfo->links); link_id++) {
8781 if (sinfo->links[link_id]) {
8782 kfree(sinfo->links[link_id]->pertid);
8783 kfree(sinfo->links[link_id]);
8789 * cfg80211_new_sta - notify userspace about station
8800 * cfg80211_del_sta_sinfo - notify userspace about deletion of a station
8810 * cfg80211_del_sta - notify userspace about deletion of a station
8823 * cfg80211_conn_failed - connection request failed notification
8842 * struct cfg80211_rx_info - received management frame info
8868 * cfg80211_rx_mgmt_ext - management frame notification with extended info
8884 * cfg80211_rx_mgmt_khz - notification of received, unprocessed management frame
8916 * cfg80211_rx_mgmt - notification of received, unprocessed management frame
8948 * struct cfg80211_tx_status - TX status for management frame information
8967 * cfg80211_mgmt_tx_status_ext - TX status notification with extended info
8980 * cfg80211_mgmt_tx_status - notification of TX status for management frame
9007 * cfg80211_control_port_tx_status - notification of TX status for control
9025 * cfg80211_rx_control_port - notification about a received control port frame
9028 * is 802.3 formatted (with 802.3 header). The skb can be non-linear.
9031 * skb->protocol is set appropriately.
9033 * @link_id: the link the frame was received on, -1 if not applicable or unknown
9048 * cfg80211_cqm_rssi_notify - connection quality monitoring rssi event
9062 * cfg80211_cqm_pktloss_notify - notify userspace about packetloss to peer
9065 * @num_packets: how many packets were lost -- should be a fixed threshold
9074 * cfg80211_cqm_txe_notify - TX error rate event
9089 * cfg80211_cqm_beacon_loss_notify - beacon loss event
9098 * __cfg80211_radar_event - radar detection event
9127 * cfg80211_sta_opmode_change_notify - STA's ht/vht operation mode change event
9141 * cfg80211_cac_event - Channel availability check (CAC) event
9150 * also by full-MAC drivers.
9158 * cfg80211_background_cac_abort - Channel Availability Check offchan abort event
9167 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying
9177 * cfg80211_pmksa_candidate_notify - notify about PMKSA caching candidate
9181 * @preauth: Whether AP advertises support for RSN pre-authentication
9188 * cfg80211_rx_spurious_frame - inform userspace about a spurious frame
9190 * @link_id: the link the frame was received on, -1 if not applicable or unknown
9204 * cfg80211_rx_unexpected_4addr_frame - inform about unexpected WDS frame
9207 * @link_id: the link the frame was received on, -1 if not applicable or unknown
9221 * cfg80211_probe_status - notify userspace about probe status
9235 * cfg80211_report_obss_beacon_khz - report beacon from other APs
9250 * cfg80211_report_obss_beacon - report beacon from other APs
9270 * struct cfg80211_beaconing_check_config - beacon check configuration
9272 * @relax: allow IR-relaxation conditions to apply (e.g. another
9285 * cfg80211_reg_check_beaconing - check if beaconing is allowed
9298 * cfg80211_reg_can_beacon - check if beaconing is allowed
9319 * cfg80211_reg_can_beacon_relax - check if beaconing is allowed with relaxation
9326 * also checks if IR-relaxation conditions apply, to allow beaconing under
9345 * cfg80211_ch_switch_notify - update wdev channel and notify userspace
9348 * @link_id: the link ID for MLO, must be 0 for non-MLO
9358 * cfg80211_ch_switch_started_notify - notify channel switch start
9361 * @link_id: the link ID for MLO, must be 0 for non-MLO
9375 * ieee80211_operating_class_to_band - convert operating class to band
9386 * ieee80211_operating_class_to_chandef - convert operating class to chandef
9399 * ieee80211_chandef_to_operating_class - convert chandef to operation class
9410 * ieee80211_chandef_to_khz - convert chandef to frequency in KHz
9419 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;
9423 * cfg80211_tdls_oper_request - request userspace to perform TDLS operation
9432 * requires knowledge of keys, i.e., link setup or teardown when the AP
9442 * cfg80211_calculate_bitrate - calculate actual bitrate (in 100Kbps units)
9450 * cfg80211_unregister_wdev - remove the given wdev
9464 * cfg80211_register_netdevice - register the given netdev
9474 * Return: 0 on success. Non-zero on error.
9479 * cfg80211_unregister_netdevice - unregister the given netdev
9492 cfg80211_unregister_wdev(dev->ieee80211_ptr);
9497 * struct cfg80211_ft_event_params - FT Information Elements
9513 * cfg80211_ft_event - notify userspace about FT IE and RIC IE
9521 * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer
9532 * Return: A negative error code (-%EILSEQ or -%ENOENT) if the data is
9541 * ieee80211_ie_split_ric - split an IE buffer according to ordering (with RIC)
9546 * EID in the list is a sub-element of the EXTENSION IE.
9556 * It assumes that the given IE buffer is well-formed, this
9573 * ieee80211_ie_split - split an IE buffer according to ordering
9578 * EID in the list is a sub-element of the EXTENSION IE.
9586 * It assumes that the given IE buffer is well-formed, this
9604 * ieee80211_fragment_element - fragment the last element in skb
9616 * cfg80211_report_wowlan_wakeup - report wakeup from WoWLAN
9631 * cfg80211_crit_proto_stopped() - indicate critical protocol stopped by driver.
9637 * operation back to normal. One reason could be that the duration given
9643 * ieee80211_get_num_supported_channels - get number of channels device has
9651 * cfg80211_check_combinations - check interface combinations
9660 * Return: 0 if combinations are allowed. Non-zero on error.
9666 * cfg80211_iter_combinations - iterate over matching combinations
9677 * Return: 0 on success. Non-zero on error.
9685 * cfg80211_get_radio_idx_by_chan - get the radio index by the channel
9690 * Return: radio index on success or -EINVAL otherwise
9697 * cfg80211_stop_iface - trigger interface disconnection
9712 * cfg80211_shutdown_all_interfaces - shut down all interfaces for a wiphy
9716 * calling dev_close() (and treating non-netdev interfaces as needed).
9726 * wiphy_ext_feature_set - set the extended feature flag
9739 ft_byte = &wiphy->ext_features[ftidx / 8];
9744 * wiphy_ext_feature_isset - check the extended feature flag
9760 ft_byte = wiphy->ext_features[ftidx / 8];
9765 * cfg80211_free_nan_func - free NAN function
9773 * struct cfg80211_nan_match_params - NAN match parameters
9797 * cfg80211_nan_match - report a match for a NAN function.
9810 * cfg80211_nan_func_terminated - notify about NAN function termination.
9829 * cfg80211_external_auth_request - userspace request for authentication
9840 * cfg80211_pmsr_report - report peer measurement result data
9852 * cfg80211_pmsr_complete - report peer measurement completed
9865 * cfg80211_iftype_allowed - check whether the interface can be allowed
9882 * cfg80211_assoc_comeback - notification of association that was
9898 dev_printk(level, &(wiphy)->dev, format, ##args)
9900 dev_emerg(&(wiphy)->dev, format, ##args)
9902 dev_alert(&(wiphy)->dev, format, ##args)
9904 dev_crit(&(wiphy)->dev, format, ##args)
9906 dev_err(&(wiphy)->dev, format, ##args)
9908 dev_warn(&(wiphy)->dev, format, ##args)
9910 dev_notice(&(wiphy)->dev, format, ##args)
9912 dev_info(&(wiphy)->dev, format, ##args)
9914 dev_info_once(&(wiphy)->dev, format, ##args)
9917 dev_err_ratelimited(&(wiphy)->dev, format, ##args)
9919 dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
9925 dev_dbg(&(wiphy)->dev, format, ##args)
9947 * cfg80211_update_owe_info_event - Notify the peer's OWE info to user space
9957 * cfg80211_bss_flush - resets all the scan entries
9963 * cfg80211_bss_color_notify - notify about bss color event
9968 * @link_id: valid link_id in case of MLO or 0 for non-MLO.
9970 * Return: 0 on success. Non-zero on error.
9977 * cfg80211_obss_color_collision_notify - notify about bss color collision
9980 * @link_id: valid link_id in case of MLO or 0 for non-MLO.
9982 * Return: 0 on success. Non-zero on error.
9993 * cfg80211_color_change_started_notify - notify color change start
9996 * @link_id: valid link_id in case of MLO or 0 for non-MLO.
10000 * Return: 0 on success. Non-zero on error.
10010 * cfg80211_color_change_aborted_notify - notify color change abort
10012 * @link_id: valid link_id in case of MLO or 0 for non-MLO.
10016 * Return: 0 on success. Non-zero on error.
10026 * cfg80211_color_change_notify - notify color change completion
10028 * @link_id: valid link_id in case of MLO or 0 for non-MLO.
10032 * Return: 0 on success. Non-zero on error.
10043 * cfg80211_links_removed - Notify about removed STA MLD setup links.
10045 * @link_mask: BIT mask of removed STA MLD setup link IDs.
10047 * Inform cfg80211 and the userspace about removed STA MLD setup links due to
10048 * AP MLD removing the corresponding affiliated APs with Multi-Link
10056 * struct cfg80211_mlo_reconf_done_data - MLO reconfiguration data
10065 * @links: per-link information indexed by link ID
10085 * cfg80211_mlo_reconf_add_done - Notify about MLO reconfiguration result
10096 * cfg80211_schedule_channels_check - schedule regulatory check if needed
10106 * cfg80211_epcs_changed - Notify about a change in EPCS state
10113 * cfg80211_next_nan_dw_notif - Notify about the next NAN Discovery Window (DW)
10122 * cfg80211_nan_cluster_joined - Notify about NAN cluster join
10137 * wiphy_locked_debugfs_read - do a locked read in debugfs
10162 * wiphy_locked_debugfs_write - do a locked write in debugfs
10186 * cfg80211_s1g_get_start_freq_khz - get S1G chandef start frequency
10196 MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;
10197 return center_khz - bw_mhz * 500 + 500;
10201 * cfg80211_s1g_get_end_freq_khz - get S1G chandef end frequency
10211 MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;
10212 return center_khz + bw_mhz * 500 - 500;
10216 * cfg80211_s1g_get_primary_sibling - retrieve the sibling 1MHz subchannel
10235 if (!chandef->s1g_primary_2mhz || width_mhz < 2)
10238 pri_1mhz_khz = ieee80211_channel_to_khz(chandef->chan);
10247 pri_index = (pri_1mhz_khz - op_low_1mhz_khz) / 1000;