Lines Matching +full:srp +full:- +full:capable
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-2020 Intel Corporation
70 * enum ieee80211_channel_flags - channel flags
141 * struct ieee80211_channel - channel definition
148 * @hw_value: hardware-specific value for the channel
184 * enum ieee80211_rate_flags - rate flags
217 * enum ieee80211_bss_type - BSS type filter
234 * enum ieee80211_privacy - BSS privacy filter
250 * struct ieee80211_rate - bitrate definition
257 * @flags: rate-specific flags
270 * struct ieee80211_he_obss_pd - AP settings for spatial reuse
273 * @sr_ctrl: The SR Control field of SRP element.
274 * @non_srg_max_offset: non-SRG maximum tx power offset
293 * struct cfg80211_he_bss_color - AP settings for BSS coloring
306 * struct ieee80211_he_bss_color - AP settings for BSS coloring
319 * struct ieee80211_sta_ht_cap - STA's HT capabilities
326 * @ampdu_factor: Maximum A-MPDU length factor
327 * @ampdu_density: Minimum A-MPDU spacing
339 * struct ieee80211_sta_vht_cap - STA's VHT capabilities
357 * struct ieee80211_sta_he_cap - STA's HE capabilities
393 * enum ieee80211_edmg_bw_config - allowed channel bandwidth configurations
429 * struct ieee80211_edmg - EDMG configuration
447 * struct ieee80211_sta_s1g_cap - STA's S1G capabilities
463 * struct ieee80211_supported_band - frequency band definition
502 * ieee80211_get_sband_iftype_data - return sband data for a given iftype
517 for (i = 0; i < sband->n_iftype_data; i++) { in ieee80211_get_sband_iftype_data()
519 &sband->iftype_data[i]; in ieee80211_get_sband_iftype_data()
521 if (data->types_mask & BIT(iftype)) in ieee80211_get_sband_iftype_data()
529 * ieee80211_get_he_iftype_cap - return HE capabilities for an sband's iftype
542 if (data && data->he_cap.has_he) in ieee80211_get_he_iftype_cap()
543 return &data->he_cap; in ieee80211_get_he_iftype_cap()
549 * ieee80211_get_he_sta_cap - return HE capabilities for an sband's STA
561 * ieee80211_get_he_6ghz_capa - return HE 6 GHz capabilities
574 if (WARN_ON(!data || !data->he_cap.has_he)) in ieee80211_get_he_6ghz_capa()
577 return data->he_6ghz_capa.capa; in ieee80211_get_he_6ghz_capa()
581 * wiphy_read_of_freq_limits - read frequency limits from device tree
631 * struct vif_params - describes virtual interface parameters
634 * @use_4addr: use 4-address frames
641 * @vht_mumimo_groups: MU-MIMO groupID, used for monitoring MU-MIMO packets
642 * belonging to that MU-MIMO groupID; %NULL if not changed
643 * @vht_mumimo_follow_addr: MU-MIMO follow address, used for monitoring
644 * MU-MIMO packets going to the specified station; %NULL if not changed
655 * struct key_params - key information
680 * struct cfg80211_chan_def - channel definition
687 * If edmg is requested (i.e. the .channels member is non-zero),
702 * cfg80211_bitrate_mask - masks for bitrate control
718 * struct cfg80211_tid_cfg - TID specific configuration
747 * struct cfg80211_tid_config - TID configuration
759 * cfg80211_get_chandef_type - return old channel type from chandef
762 * Return: The old channel type (NOHT, HT20, HT40+/-) from a given
768 switch (chandef->width) { in cfg80211_get_chandef_type()
774 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
784 * cfg80211_chandef_create - create channel definition using channel type
796 * cfg80211_chandef_identical - check if two channel definitions are identical
807 return (chandef1->chan == chandef2->chan && in cfg80211_chandef_identical()
808 chandef1->width == chandef2->width && in cfg80211_chandef_identical()
809 chandef1->center_freq1 == chandef2->center_freq1 && in cfg80211_chandef_identical()
810 chandef1->freq1_offset == chandef2->freq1_offset && in cfg80211_chandef_identical()
811 chandef1->center_freq2 == chandef2->center_freq2); in cfg80211_chandef_identical()
815 * cfg80211_chandef_is_edmg - check if chandef represents an EDMG channel
824 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
828 * cfg80211_chandef_compatible - check if two channel definitions are compatible
840 * cfg80211_chandef_valid - check if a channel definition is valid
847 * cfg80211_chandef_usable - check if secondary channels can be used
858 * cfg80211_chandef_dfs_required - checks if radar detection is required
870 * ieee80211_chandef_rate_flags - returns rate flags for a channel
872 * In some channel types, not all rates may be used - for example CCK
882 switch (chandef->width) { in ieee80211_chandef_rate_flags()
894 * ieee80211_chandef_max_power - maximum transmission power for the chandef
898 * max_power for non-standard (20 MHz) channels.
907 switch (chandef->width) { in ieee80211_chandef_max_power()
909 return min(chandef->chan->max_reg_power - 6, in ieee80211_chandef_max_power()
910 chandef->chan->max_power); in ieee80211_chandef_max_power()
912 return min(chandef->chan->max_reg_power - 3, in ieee80211_chandef_max_power()
913 chandef->chan->max_power); in ieee80211_chandef_max_power()
917 return chandef->chan->max_power; in ieee80211_chandef_max_power()
921 * enum survey_info_flags - survey information flags
949 * struct survey_info - channel survey response
964 * Used by dump_survey() to report back per-channel survey information.
985 * struct cfg80211_crypto_settings - Crypto settings
1003 * @control_port_no_preauth: disables pre-auth rx over the nl80211 control
1008 * @psk: PSK (for devices supporting 4-way-handshake offload)
1015 * Not-specified, used to indicate userspace did not specify any
1020 * Allow hunting-and-pecking loop only
1023 * Allow hash-to-element only
1026 * Allow either hunting-and-pecking loop or hash-to-element
1051 * struct cfg80211_beacon_data - beacon data
1068 * @ftm_responder: enable FTM responder functionality; -1 for no change
1103 * struct cfg80211_acl_data - Access control list data
1119 * struct cfg80211_fils_discovery - FILS discovery parameters from
1120 * IEEE Std 802.11ai-2016, Annex C.3 MIB detail.
1122 * @min_interval: Minimum packet interval in TUs (0 - 10000)
1123 * @max_interval: Maximum packet interval in TUs (0 - 10000)
1136 * struct cfg80211_unsol_bcast_probe_resp - Unsolicited broadcast probe
1140 * in IEEE P802.11ax/D6.0 26.17.2.3.2 - AP behavior for fast passive
1152 * enum cfg80211_ap_settings_flags - AP settings flags
1163 * struct cfg80211_ap_settings - AP configuration
1237 * struct cfg80211_csa_settings - channel switch settings
1270 * struct iface_combination_params - input parameters for interface combinations
1294 * enum station_parameters_apply_mask - station parameter values to apply
1299 * Not all station parameters have in-band "no change" signalling,
1310 * struct sta_txpwr - station txpower configuration
1315 * is not provided, the default per-interface tx power setting will be
1317 * power per-interface or per-station.
1330 * struct station_parameters - station parameters
1342 * @listen_interval: listen interval or -1 for no change
1357 * @local_pm: local link-specific mesh power save mode (no change when set
1412 * struct station_del_parameters - station deletion parameters
1428 * enum cfg80211_station_type - the type of station being modified
1458 * cfg80211_check_station_change - validate parameter changes
1474 * enum rate_info_flags - bitrate info flags
1496 * enum rate_info_bw - rate bandwidth information
1519 * struct rate_info - bitrate information
1532 * @n_bonded_ch: In case of EDMG the number of bonded channels (1-4)
1547 * enum bss_param_flags - bitrate info flags
1563 * struct sta_bss_parameters - BSS parameters for the attached station
1578 * struct cfg80211_txq_stats - TXQ statistics for this TID
1609 * struct cfg80211_tid_stats - per-TID statistics
1631 * struct station_info - station information
1650 * @chain_signal: per-chain signal strength of last received packet in dBm
1651 * @chain_signal_avg: per-chain signal strength average in dBm
1658 * @rx_dropped_misc: Dropped for un-specified reason.
1674 * @nonpeer_pm: non-peer mesh STA power save mode
1684 * @pertid: per-TID statistics, see &struct cfg80211_tid_stats, using the last
1685 * (IEEE80211_NUM_TIDS) index for MSDUs not encapsulated in QoS-MPDUs.
1686 * Note that this doesn't use the @filled bit, but is used if non-NULL.
1761 * cfg80211_get_station - retrieve information about a given station
1777 return -ENOENT; in cfg80211_get_station()
1782 * enum monitor_flags - monitor flags
1806 * enum mpath_info_flags - mesh path information flags
1834 * struct mpath_info - mesh path information
1869 * struct bss_parameters - BSS parameters
1874 * (0 = no, 1 = yes, -1 = do not change)
1876 * (0 = no, 1 = yes, -1 = do not change)
1878 * (0 = no, 1 = yes, -1 = do not change)
1883 * (0 = no, 1 = yes, -1 = do not change)
1885 * (u16 = opmode, -1 = do not change)
1886 * @p2p_ctwindow: P2P CT Window (-1 = no change)
1887 * @p2p_opp_ps: P2P opportunistic PS (-1 = no change)
1901 * struct mesh_config - 802.11s mesh configuration
1947 * @dot11MeshForwarding: whether the Mesh STA is forwarding or non-forwarding
1948 * entity (default is TRUE - forwarding entity)
1973 * @dot11MeshNolearn: Try to avoid multi-hop path discovery (e.g. PREQ/PREP
1975 * not be the optimal decision as a multi-hop route might be better. So
2016 * struct mesh_setup - 802.11s mesh setup configuration
2067 * struct ocb_setup - 802.11p OCB mode setup configuration
2077 * struct ieee80211_txq_params - TX queue parameters
2080 * @cwmin: Minimum contention window [a value of the form 2^n-1 in the range
2082 * @cwmax: Maximum contention window [a value of the form 2^n-1 in the range
2104 * well-formed, and will not exceed the maximum length the driver advertised
2118 * struct cfg80211_ssid - SSID description
2128 * struct cfg80211_scan_info - information about completed scan
2143 * struct cfg80211_scan_6ghz_params - relevant for 6 GHz only
2164 * struct cfg80211_scan_request - scan request description
2243 * struct cfg80211_match_set - sets of attributes to match
2245 * @ssid: SSID to be matched; may be zero-length in case of BSSID match
2247 * @bssid: BSSID to be matched; may be all-zero BSSID in case of SSID match
2266 * struct cfg80211_sched_scan_plan - scan plan for scheduled scan
2280 * struct cfg80211_bss_select_adjust - BSS selection with RSSI adjustment.
2291 * struct cfg80211_sched_scan_request - scheduled scan request description
2323 * @nl_owner_dead: netlink owner socket was closed - this request be freed
2380 * enum cfg80211_signal_type - signal type
2393 * struct cfg80211_inform_bss - BSS inform data
2410 * @chain_signal: per-chain signal strength of last received BSS in dBm.
2424 * struct cfg80211_bss_ies - BSS entry IE data
2440 * struct cfg80211_bss - BSS description
2451 * are well-formed!); this is a pointer to either the beacon_ies or
2453 * received. It is always non-%NULL.
2462 * points to the same data as hidden_beacon_bss->beacon_ies in that case.
2464 * non-transmitted one (multi-BSSID support)
2465 * @nontrans_list: list of non-transmitted BSS, if this is a transmitted one
2466 * (multi-BSSID support)
2469 * @chain_signal: per-chain signal strength of last received BSS in dBm.
2472 * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes
2504 * ieee80211_bss_get_elem - find element with given ID
2508 * Note that the return value is an RCU-protected pointer, so
2515 * ieee80211_bss_get_ie - find IE with given ID
2519 * Note that the return value is an RCU-protected pointer, so
2530 * struct cfg80211_auth_request - Authentication request data
2544 * the authentication frame body (non-IE and IE data), excluding the
2561 * enum cfg80211_assoc_req_flags - Over-ride default behaviour in association.
2579 * struct cfg80211_assoc_request - (Re)Association request data
2598 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2599 * will be used in ht_capa. Un-supported values will be ignored.
2631 * struct cfg80211_deauth_request - Deauthentication request data
2652 * struct cfg80211_disassoc_request - Disassociation request data
2673 * struct cfg80211_ibss_params - IBSS parameters
2678 * @ssid: The SSID, will always be non-null.
2679 * @ssid_len: The length of the SSID, will always be non-zero.
2683 * @channel_fixed: The channel should be fixed -- do not search for
2700 * @mcast_rate: per-band multicast rate index + 1 (0: disabled)
2701 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2702 * will be used in ht_capa. Un-supported values will be ignored.
2731 * struct cfg80211_bss_selection - connection parameters for BSS selection.
2747 * struct cfg80211_connect_params - Connection parameters
2752 * @channel: The channel to use or %NULL if not specified (auto-select based
2756 * @bssid: The AP BSSID or %NULL if not specified (auto-select based on scan
2767 * @privacy: indicates whether privacy-enabled APs should be used
2775 * or -1 to indicate that default value is to be used.
2776 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2777 * will be used in ht_capa. Un-supported values will be ignored.
2790 * @fils_erp_username: EAP re-authentication protocol (ERP) username part of the
2794 * @fils_erp_realm: EAP re-authentication protocol (ERP) realm part of NAI or
2800 * @fils_erp_rrk: ERP re-authentication Root Key (rRK) used to derive additional
2803 * @want_1x: indicates user-space supports and wants to use 802.1X driver
2804 * offload of 4-way handshake.
2847 * enum cfg80211_connect_params_changed - Connection parameters being updated
2864 * enum wiphy_params_flags - set_wiphy_params bitfield values
2865 * @WIPHY_PARAM_RETRY_SHORT: wiphy->retry_short has changed
2866 * @WIPHY_PARAM_RETRY_LONG: wiphy->retry_long has changed
2867 * @WIPHY_PARAM_FRAG_THRESHOLD: wiphy->frag_threshold has changed
2868 * @WIPHY_PARAM_RTS_THRESHOLD: wiphy->rts_threshold has changed
2897 * struct cfg80211_pmksa - PMK Security Association
2911 * @cache_id: 2-octet cache identifier advertized by a FILS AP identifying the
2912 * scope of PMKSA. This is valid only if @ssid_len is non-zero (may be
2939 * struct cfg80211_pkt_pattern - packet pattern
2956 * struct cfg80211_wowlan_tcp - TCP connection parameters
2991 * struct cfg80211_wowlan - Wake on Wireless-LAN support info
2994 * @any: wake up on any activity -- special trigger if device continues
3002 * @four_way_handshake: wake up on 4-way handshake
3019 * struct cfg80211_coalesce_rules - Coalesce rule parameters
3036 * struct cfg80211_coalesce - Packet coalescing settings
3048 * struct cfg80211_wowlan_nd_match - information about the match
3063 * struct cfg80211_wowlan_nd_info - net detect wake up information
3077 * struct cfg80211_wowlan_wakeup - wakeup report
3082 * @four_way_handshake: woke up by 4-way handshake
3084 * @pattern_idx: pattern that caused wakeup, -1 if not due to pattern
3109 * struct cfg80211_gtk_rekey_data - rekey data
3124 * struct cfg80211_update_ft_ies_params - FT IE Information
3139 * struct cfg80211_mgmt_tx_params - mgmt tx parameters
3166 * struct cfg80211_dscp_exception - DSCP exception
3177 * struct cfg80211_dscp_range - DSCP range definition for user priority
3187 /* QoS Map Set element length defined in IEEE Std 802.11-2012, 8.4.2.97 */
3194 * struct cfg80211_qos_map - QoS Map Information
3210 * struct cfg80211_nan_conf - NAN configuration
3214 * @master_pref: master preference (1 - 255)
3225 * enum cfg80211_nan_conf_changes - indicates changed fields in NAN
3237 * struct cfg80211_nan_func_filter - a NAN function Rx / Tx filter
3248 * struct cfg80211_nan_func - a NAN function
3306 * struct cfg80211_pmk_conf - PMK configuration
3311 * @pmk_r0_name: PMK-R0 Name. NULL if not applicable (i.e., the PMK
3312 * is not PMK-R0). When pmk_r0_name is not NULL, the pmk field
3313 * holds PMK-R0.
3323 * struct cfg80211_external_auth_params - Trigger External authentication.
3352 * struct cfg80211_ftm_responder_stats - FTM responder statistics
3362 * @non_asap_num: number of non-ASAP FTM sessions
3363 * @total_duration_ms: total sessions durations - gives an indication
3365 * @unknown_triggers_num: number of unknown FTM triggers - triggers from
3368 * @reschedule_requests_num: number of FTM reschedule requests - initiator asks
3386 * struct cfg80211_pmsr_ftm_result - FTM result
3391 * in [0 .. num_bursts-1] of the burst that's being reported
3468 * struct cfg80211_pmsr_result - peer measurement result
3498 * struct cfg80211_pmsr_ftm_request_peer - FTM request data
3534 * struct cfg80211_pmsr_request_peer - peer data for a peer measurement request
3548 * struct cfg80211_pmsr_request - peer measurement request
3550 * @nl_portid: netlink portid - used by cfg80211
3561 * @peers: per-peer measurement request data
3580 * struct cfg80211_update_owe_info - OWE Information
3606 * struct mgmt_frame_regs - management frame registrations data
3621 * struct cfg80211_ops - backend description for wireless configuration
3634 * be %NULL or contain the enabled Wake-on-Wireless triggers that are
3659 * not possible to retrieve the key, -ENOENT if it doesn't exist.
3662 * and @key_index, return -ENOENT if the key doesn't exist.
3681 * might come to the driver in invalid combinations -- make sure to check
3685 * @dump_station: dump station callback -- resume dump at index @idx
3691 * @dump_mpath: dump mesh path callback -- resume dump at index @idx
3693 * @dump_mpp: dump mesh proxy path callback -- resume dump at index @idx
3749 * In both the driver-initiated and new connect() call initiated roaming
3783 * always be %NULL unless the driver supports per-vif TX power
3796 * channel for the specified duration to complete an off-channel
3800 * @cancel_remain_on_channel: Cancel an on-going remain-on-channel operation.
3808 * @testmode_dump: Implement a test mode dump. The cb->args[2] and up may be
3810 * return error codes other than -ENOBUFS and -ENOENT will terminate the
3818 * devices running firmwares capable of generating the (re) association
3822 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1
3849 * reject TX/RX mask combinations they cannot support by returning -EINVAL
3855 * @tdls_oper: Perform a high-level TDLS operation (e.g. TDLS link setup).
3892 * @channel_switch: initiate channel-switch procedure (with CSA). Driver is
3921 * @tdls_channel_switch: Start channel-switching with a TDLS peer. The driver
3922 * is responsible for continually initiating channel-switching operations
3924 * @tdls_cancel_channel_switch: Stop channel-switching with a TDLS peer. Both
3945 * @set_pmk: configure the PMK to be used for offloaded 802.1X 4-Way handshake.
4313 * enum wiphy_flags - wiphy capability flags
4320 * by default -- this flag will be set depending on the kernel's default
4347 * responds to probe-requests in hardware.
4348 * @WIPHY_FLAG_OFFCHAN_TX: Device supports direct off-channel TX.
4349 * @WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL: Device supports remain-on-channel call.
4385 * struct ieee80211_iface_limit - limit on certain interface types
4395 * struct ieee80211_iface_combination - possible interface combination
4404 * .. code-block:: c
4418 * 2. Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total:
4420 * .. code-block:: c
4434 * 3. Allow #STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total.
4438 * .. code-block:: c
4516 * enum wiphy_wowlan_support_flags - WoWLAN support flags
4518 * trigger that keeps the device operating as-is and
4528 * @WIPHY_WOWLAN_4WAY_HANDSHAKE: supports wakeup on 4-way handshake failure
4529 * @WIPHY_WOWLAN_RFKILL_RELEASE: supports wakeup on RF-kill release
4553 * struct wiphy_wowlan_support - WoWLAN support data
4560 * @max_nd_match_sets: maximum number of matchsets for net-detect,
4578 * struct wiphy_coalesce_support - coalesce support data
4597 * enum wiphy_vendor_command_flags - validation flags for vendor commands
4610 * enum wiphy_opmode_flag - Station's ht/vht operation mode information flags
4624 * struct sta_opmode_info - Station's ht/vht operation mode information
4638 #define VENDOR_CMD_RAW_DATA ((const struct nla_policy *)(long)(-ENODATA))
4641 * struct wiphy_vendor_command - vendor command definition
4645 * flags didn't ask for a wdev and non-%NULL otherwise; the data
4648 * @storage points to cb->args[5], ie. is preserved over the multiple
4673 * struct wiphy_iftype_ext_capab - extended capabilities per interface type
4679 * 802.11-2012 8.4.2.29 for the defined fields.
4691 * struct cfg80211_pmsr_capabilities - cfg80211 peer measurement capabilities
4696 * @ftm.asap: ASAP-mode is supported
4697 * @ftm.non_asap: non-ASAP-mode is supported
4703 * (set to -1 if not limited; note that setting this will necessarily
4731 * struct wiphy_iftype_akm_suites - This structure encapsulates supported akm
4746 * struct wiphy - wireless hardware description
4770 * -1 = fragmentation disabled, only odd values >= 256 used
4771 * @rts_threshold: RTS threshold (dot11RTSThreshold); -1 = RTS/CTS disabled
4776 * four bits are variable then set it to 00-00-00-00-00-0f. The actual
4783 * all-zeroes. In this case it is assumed that the device can handle
4785 * @registered: protects ->resume and ->suspend sysfs callbacks against
4818 * @max_scan_ie_len: maximum length of user-controlled IEs device can
4854 * @max_remain_on_channel_duration: Maximum time a remain-on-channel operation
4863 * @ht_capa_mod_mask: Specify what ht_cap values can be over-ridden.
4864 * If null, then none can be over-ridden.
4865 * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden.
4866 * If null, then none can be over-ridden.
4878 * 802.11-2012 8.4.2.29 for the defined fields. These are the default
4925 * @tid_config_support: describes the per-TID config support that the
5022 /* fields below are read-only, assigned by cfg80211 */
5082 return read_pnet(&wiphy->_net); in wiphy_net()
5087 write_pnet(&wiphy->_net, net); in wiphy_net_set()
5091 * wiphy_priv - return priv from wiphy
5099 return &wiphy->priv; in wiphy_priv()
5103 * priv_to_wiphy - return the wiphy containing the priv
5115 * set_wiphy_dev - set device pointer for wiphy
5122 wiphy->dev.parent = dev; in set_wiphy_dev()
5126 * wiphy_dev - get wiphy dev pointer
5133 return wiphy->dev.parent; in wiphy_dev()
5137 * wiphy_name - get wiphy name
5144 return dev_name(&wiphy->dev); in wiphy_name()
5148 * wiphy_new_nm - create a new wiphy for use with cfg80211
5165 * wiphy_new - create a new wiphy for use with cfg80211
5183 * wiphy_register - register a wiphy with cfg80211
5187 * Return: A non-negative wiphy index or a negative error code.
5192 * wiphy_unregister - deregister a wiphy from cfg80211
5203 * wiphy_free - free wiphy
5216 * struct wireless_dev - wireless device state
5224 * For non-netdev uses, it must also be allocated by the driver
5237 * the user-set channel definition.
5259 * netdev and may otherwise be used by driver read-only, will be update
5269 * @is_running: true if this is a non-netdev device that has been started, e.g.
5282 * @disconnect_wk: (private) auto-disconnect work
5283 * @disconnect_bssid: (private) the BSSID to use for auto-disconnect
5323 /* currently used for IBSS and SME - might be rearranged later */
5388 if (wdev->netdev) in wdev_address()
5389 return wdev->netdev->dev_addr; in wdev_address()
5390 return wdev->address; in wdev_address()
5395 if (wdev->netdev) in wdev_running()
5396 return netif_running(wdev->netdev); in wdev_running()
5397 return wdev->is_running; in wdev_running()
5401 * wdev_priv - return wiphy priv from wireless_dev
5409 return wiphy_priv(wdev->wiphy); in wdev_priv()
5419 * ieee80211_channel_equal - compare two struct ieee80211_channel
5429 return (a->center_freq == b->center_freq && in ieee80211_channel_equal()
5430 a->freq_offset == b->freq_offset); in ieee80211_channel_equal()
5434 * ieee80211_channel_to_khz - convert ieee80211_channel to frequency in KHz
5441 return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset; in ieee80211_channel_to_khz()
5445 * ieee80211_s1g_channel_width - get allowed channel width from @chan
5455 * ieee80211_channel_to_freq_khz - convert channel number to frequency
5463 * ieee80211_channel_to_frequency - convert channel number to frequency
5475 * ieee80211_freq_khz_to_channel - convert frequency to channel number
5482 * ieee80211_frequency_to_channel - convert frequency to channel number
5493 * ieee80211_get_channel_khz - get channel struct from wiphy for specified
5503 * ieee80211_get_channel - get channel struct from wiphy for specified frequency
5516 * cfg80211_channel_is_psc - Check if the channel is a 6 GHz PSC
5524 if (chan->band != NL80211_BAND_6GHZ) in cfg80211_channel_is_psc()
5527 return ieee80211_frequency_to_channel(chan->center_freq) % 16 == 5; in cfg80211_channel_is_psc()
5531 * ieee80211_get_response_rate - get basic rate for a given rate
5547 * ieee80211_mandatory_rates - get mandatory rates for a given band
5558 * Radiotap parsing functions -- for controlled injection support
5561 * Documentation in Documentation/networking/radiotap-headers.rst
5581 * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args
5643 * ieee80211_get_hdrlen_from_skb - get header length from data
5657 * ieee80211_hdrlen - get header length in bytes from frame control
5658 * @fc: frame control field in little-endian format
5664 * ieee80211_get_mesh_hdrlen - get mesh extension header length
5681 * ieee80211_data_to_8023_exthdr - convert an 802.11 data frame to 802.3
5688 * Return: 0 on success. Non-zero on error.
5695 * ieee80211_data_to_8023 - convert an 802.11 data frame to 802.3
5699 * Return: 0 on success. Non-zero on error.
5708 * ieee80211_amsdu_to_8023s - decode an IEEE 802.11n A-MSDU frame
5710 * Decode an IEEE 802.11 A-MSDU and convert it to a list of 802.3 frames.
5712 * header-less before being passed in here; it is freed in this function.
5714 * @skb: The input A-MSDU frame without any headers.
5729 * cfg80211_classify8021d - determine the 802.1p/1d tag for a data frame
5738 * cfg80211_find_elem_match - match information element and byte array in data
5765 * cfg80211_find_ie_match - match information element and byte array in data
5803 match_offset - 2 : 0); in cfg80211_find_ie_match()
5807 * cfg80211_find_elem - find information element in data
5828 * cfg80211_find_ie - find information element in data
5848 * cfg80211_find_ext_elem - find information element with EID Extension in data
5870 * cfg80211_find_ext_ie - find information element with EID Extension in data
5891 * cfg80211_find_vendor_elem - find vendor specific information element in data
5894 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
5910 * cfg80211_find_vendor_ie - find vendor specific information element in data
5913 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
5933 * cfg80211_send_layer2_update - send layer 2 update frame
5950 * regulatory_hint - driver hint to the wireless core a regulatory domain
5955 * set this to NULL you should still set rd->alpha2 to some accepted
5970 * an -ENOMEM.
5972 * Return: 0 on success. -ENOMEM.
5977 * regulatory_set_wiphy_regd - set regdom info for self managed drivers
5981 * Set the regulatory domain information for self-managed wiphys, only they
5985 * Return: 0 on success. -EINVAL, -EPERM
5991 * regulatory_set_wiphy_regd_sync_rtnl - set regdom for self-managed drivers
5999 * Return: 0 on success. -EINVAL, -EPERM
6005 * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain
6023 * freq_reg_info - get regulatory information for the given frequency
6035 * value will be -ERANGE if we determine the given center_freq does not even
6037 * See freq_in_rule_band() for our current definition of a band -- this is
6044 * reg_initiator_name - map regulatory request initiator enum to name
6053 * regulatory_pre_cac_allowed - check if pre-CAC allowed in the current regdom
6054 * @wiphy: wiphy for which pre-CAC capability is checked.
6056 * Pre-CAC is allowed only in some regdomains (notable ETSI).
6066 * reg_query_regdb_wmm - Query internal regulatory db for wmm rule
6067 * Regulatory self-managed driver can use it to proactively
6073 * Self-managed wireless drivers can use this function to query
6078 * an -ENODATA.
6080 * Return: 0 on success. -ENODATA.
6091 * cfg80211_scan_done - notify that scan finished
6100 * cfg80211_sched_scan_results - notify that new scan results are available
6108 * cfg80211_sched_scan_stopped - notify that the scheduled scan has stopped
6120 * cfg80211_sched_scan_stopped_rtnl - notify that the scheduled scan has stopped
6133 * cfg80211_inform_bss_frame_data - inform cfg80211 of a received BSS frame
6184 * cfg80211_gen_new_bssid - generate a nontransmitted BSSID for multi-BSSID
6194 u64 mask = GENMASK_ULL(max_bssid - 1, 0); in cfg80211_gen_new_bssid()
6205 * cfg80211_is_element_inherited - returns if element ID should be inherited
6213 * cfg80211_merge_profile - merges a MBSSID profile if it is split between IEs
6227 * enum cfg80211_bss_frame_type - frame type that the BSS data came from
6240 * cfg80211_inform_bss_data - inform cfg80211 of a new BSS
6307 * cfg80211_get_bss - get a BSS reference
6333 * cfg80211_ref_bss - reference BSS struct
6342 * cfg80211_put_bss - unref BSS struct
6351 * cfg80211_unlink_bss - unlink BSS from internal data structures
6363 * cfg80211_bss_iter - iterate all BSS entries
6385 switch (chandef->width) { in cfg80211_chandef_to_scan_width()
6396 * cfg80211_rx_mlme_mgmt - notification of processed MLME management frame
6417 * cfg80211_auth_timeout - notification of timed out authentication
6427 * cfg80211_rx_assoc_resp - notification of processed association response
6450 * cfg80211_assoc_timeout - notification of timed out association
6459 * cfg80211_abandon_assoc - notify cfg80211 of abandoned association attempt
6463 * Call this whenever - for reasons reported through other API, like deauth RX,
6470 * cfg80211_tx_mlme_mgmt - notification of transmitted deauth/disassoc frame
6483 * cfg80211_rx_unprot_mlme_mgmt - notification of unprotected mlme mgmt frame
6500 * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP)
6504 * @key_id: Key identifier (0..3). Can be -1 if missing.
6509 * received frame. This matches with MLME-MICHAELMICFAILURE.indication()
6517 * cfg80211_ibss_joined - notify cfg80211 that device joined an IBSS
6528 * with the locally generated beacon -- this guarantees that there is
6535 * cfg80211_notify_new_peer_candidate - notify cfg80211 of a new mesh peer
6567 * wiphy_rfkill_set_hw_state - notify cfg80211 about hw block state
6574 * wiphy_rfkill_start_polling - start polling rfkill
6580 * wiphy_rfkill_stop_polling - stop polling rfkill
6591 * (typically closed-source) userspace and firmware, using nl80211 as
6601 * "normal" functionality that higher-level userspace like connection
6621 * cfg80211_vendor_cmd_alloc_reply_skb - allocate vendor command reply
6626 * This function allocates and pre-fills an skb for a reply to
6630 * The returned skb is pre-filled with some identifying data in
6641 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6651 * cfg80211_vendor_cmd_reply - send the reply skb
6674 * cfg80211_vendor_event_alloc - allocate vendor-specific event skb
6682 * This function allocates and pre-fills an skb for an event on the
6683 * vendor-specific multicast group.
6692 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6704 * cfg80211_vendor_event_alloc_ucast - alloc unicast vendor-specific event skb
6713 * This function allocates and pre-fills an skb for an event to send to
6725 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6739 * cfg80211_vendor_event - send the event
6756 * interact with driver-specific tools to aid, for instance,
6764 * cfg80211_testmode_alloc_reply_skb - allocate testmode reply
6769 * This function allocates and pre-fills an skb for a reply to
6773 * The returned skb is pre-filled with the wiphy index and set up in
6784 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6794 * cfg80211_testmode_reply - send the reply skb
6811 * cfg80211_testmode_alloc_event_skb - allocate testmode event
6817 * This function allocates and pre-fills an skb for an event on the
6829 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6835 NL80211_ATTR_TESTDATA, 0, -1, in cfg80211_testmode_alloc_event_skb()
6840 * cfg80211_testmode_event - send the event
6862 * struct cfg80211_fils_resp_params - FILS connection response params
6886 * struct cfg80211_connect_resp_params - Connection response params
6891 * from the AP) instead of an explicit rejection by the AP, -1 is used to
6927 * cfg80211_connect_done - notify cfg80211 of connection result
6945 * cfg80211_connect_bss - notify cfg80211 of connection result
6963 * from the AP) instead of an explicit rejection by the AP, -1 is used to
7005 * cfg80211_connect_result - notify cfg80211 of connection result
7036 * cfg80211_connect_timeout - notify cfg80211 of connection timeout
7058 cfg80211_connect_bss(dev, bssid, NULL, req_ie, req_ie_len, NULL, 0, -1, in cfg80211_connect_timeout()
7063 * struct cfg80211_roam_info - driver initiated roaming information
7086 * cfg80211_roamed - notify cfg80211 of roaming
7099 * rdev->event_work. In case of any failures, the reference is released
7107 * cfg80211_port_authorized - notify cfg80211 of successful security association
7124 * cfg80211_disconnected - notify cfg80211 that connection was dropped
7141 * cfg80211_ready_on_channel - notification of remain_on_channel start
7154 * cfg80211_remain_on_channel_expired - remain_on_channel duration expired
7165 * cfg80211_tx_mgmt_expired - tx_mgmt duration expired
7175 * cfg80211_sinfo_alloc_tid_stats - allocate per-tid statistics.
7183 * cfg80211_sinfo_release_content - release contents of station info
7186 * Releases any potentially allocated sub-information of the station
7192 kfree(sinfo->pertid); in cfg80211_sinfo_release_content()
7196 * cfg80211_new_sta - notify userspace about station
7207 * cfg80211_del_sta_sinfo - notify userspace about deletion of a station
7217 * cfg80211_del_sta - notify userspace about deletion of a station
7230 * cfg80211_conn_failed - connection request failed notification
7249 * cfg80211_rx_mgmt_khz - notification of received, unprocessed management frame
7269 * cfg80211_rx_mgmt - notification of received, unprocessed management frame
7294 * cfg80211_mgmt_tx_status - notification of TX status for management frame
7310 * cfg80211_control_port_tx_status - notification of TX status for control
7328 * cfg80211_rx_control_port - notification about a received control port frame
7331 * is 802.3 formatted (with 802.3 header). The skb can be non-linear.
7334 * skb->protocol is set appropriately.
7350 * cfg80211_cqm_rssi_notify - connection quality monitoring rssi event
7364 * cfg80211_cqm_pktloss_notify - notify userspace about packetloss to peer
7367 * @num_packets: how many packets were lost -- should be a fixed threshold
7376 * cfg80211_cqm_txe_notify - TX error rate event
7391 * cfg80211_cqm_beacon_loss_notify - beacon loss event
7400 * cfg80211_radar_event - radar detection event
7411 * cfg80211_sta_opmode_change_notify - STA's ht/vht operation mode change event
7425 * cfg80211_cac_event - Channel availability check (CAC) event
7433 * also by full-MAC drivers.
7441 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying
7451 * cfg80211_pmksa_candidate_notify - notify about PMKSA caching candidate
7455 * @preauth: Whether AP advertises support for RSN pre-authentication
7462 * cfg80211_rx_spurious_frame - inform userspace about a spurious frame
7477 * cfg80211_rx_unexpected_4addr_frame - inform about unexpected WDS frame
7493 * cfg80211_probe_status - notify userspace about probe status
7507 * cfg80211_report_obss_beacon_khz - report beacon from other APs
7522 * cfg80211_report_obss_beacon - report beacon from other APs
7542 * cfg80211_reg_can_beacon - check if beaconing is allowed
7555 * cfg80211_reg_can_beacon_relax - check if beaconing is allowed with relaxation
7562 * also checks if IR-relaxation conditions apply, to allow beaconing under
7572 * cfg80211_ch_switch_notify - update wdev channel and notify userspace
7583 * cfg80211_ch_switch_started_notify - notify channel switch start
7597 * ieee80211_operating_class_to_band - convert operating class to band
7608 * ieee80211_chandef_to_operating_class - convert chandef to operation class
7619 * ieee80211_chandef_to_khz - convert chandef to frequency in KHz
7628 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in ieee80211_chandef_to_khz()
7632 * cfg80211_tdls_oper_request - request userspace to perform TDLS operation
7651 * cfg80211_calculate_bitrate - calculate actual bitrate (in 100Kbps units)
7659 * cfg80211_unregister_wdev - remove the given wdev
7675 * struct cfg80211_ft_event_params - FT Information Elements
7691 * cfg80211_ft_event - notify userspace about FT IE and RIC IE
7699 * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer
7710 * Return: A negative error code (-%EILSEQ or -%ENOENT) if the data is
7719 * ieee80211_ie_split_ric - split an IE buffer according to ordering (with RIC)
7724 * EID in the list is a sub-element of the EXTENSION IE.
7734 * It assumes that the given IE buffer is well-formed, this
7751 * ieee80211_ie_split - split an IE buffer according to ordering
7756 * EID in the list is a sub-element of the EXTENSION IE.
7764 * It assumes that the given IE buffer is well-formed, this
7782 * cfg80211_report_wowlan_wakeup - report wakeup from WoWLAN
7797 * cfg80211_crit_proto_stopped() - indicate critical protocol stopped by driver.
7809 * ieee80211_get_num_supported_channels - get number of channels device has
7817 * cfg80211_check_combinations - check interface combinations
7830 * cfg80211_iter_combinations - iterate over matching combinations
7848 * cfg80211_stop_iface - trigger interface disconnection
7863 * cfg80211_shutdown_all_interfaces - shut down all interfaces for a wiphy
7867 * calling dev_close() (and treating non-netdev interfaces as needed).
7877 * wiphy_ext_feature_set - set the extended feature flag
7890 ft_byte = &wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_set()
7895 * wiphy_ext_feature_isset - check the extended feature flag
7909 ft_byte = wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_isset()
7914 * cfg80211_free_nan_func - free NAN function
7922 * struct cfg80211_nan_match_params - NAN match parameters
7946 * cfg80211_nan_match - report a match for a NAN function.
7959 * cfg80211_nan_func_terminated - notify about NAN function termination.
7978 * cfg80211_external_auth_request - userspace request for authentication
7989 * cfg80211_pmsr_report - report peer measurement result data
8001 * cfg80211_pmsr_complete - report peer measurement completed
8014 * cfg80211_iftype_allowed - check whether the interface can be allowed
8033 dev_printk(level, &(wiphy)->dev, format, ##args)
8035 dev_emerg(&(wiphy)->dev, format, ##args)
8037 dev_alert(&(wiphy)->dev, format, ##args)
8039 dev_crit(&(wiphy)->dev, format, ##args)
8041 dev_err(&(wiphy)->dev, format, ##args)
8043 dev_warn(&(wiphy)->dev, format, ##args)
8045 dev_notice(&(wiphy)->dev, format, ##args)
8047 dev_info(&(wiphy)->dev, format, ##args)
8050 dev_err_ratelimited(&(wiphy)->dev, format, ##args)
8052 dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
8058 dev_dbg(&(wiphy)->dev, format, ##args)
8080 * cfg80211_update_owe_info_event - Notify the peer's OWE info to user space
8090 * cfg80211_bss_flush - resets all the scan entries