Lines Matching +full:pre +full:- +full:filled

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-2019 Intel Corporation
69 * enum ieee80211_channel_flags - channel flags
123 * struct ieee80211_channel - channel definition
129 * @hw_value: hardware-specific value for the channel
164 * enum ieee80211_rate_flags - rate flags
174 * when used with 802.11a (on the 5 GHz band); filled by the
177 * when used with 802.11b (on the 2.4 GHz band); filled by the
180 * when used with 802.11g (on the 2.4 GHz band); filled by the
197 * enum ieee80211_bss_type - BSS type filter
214 * enum ieee80211_privacy - BSS privacy filter
230 * struct ieee80211_rate - bitrate definition
237 * @flags: rate-specific flags
250 * struct ieee80211_he_obss_pd - AP settings for spatial reuse
263 * struct ieee80211_sta_ht_cap - STA's HT capabilities
270 * @ampdu_factor: Maximum A-MPDU length factor
271 * @ampdu_density: Minimum A-MPDU spacing
283 * struct ieee80211_sta_vht_cap - STA's VHT capabilities
301 * struct ieee80211_sta_he_cap - STA's HE capabilities
334 * enum ieee80211_edmg_bw_config - allowed channel bandwidth configurations
370 * struct ieee80211_edmg - EDMG configuration
388 * struct ieee80211_supported_band - frequency band definition
424 * ieee80211_get_sband_iftype_data - return sband data for a given iftype
439 for (i = 0; i < sband->n_iftype_data; i++) { in ieee80211_get_sband_iftype_data()
441 &sband->iftype_data[i]; in ieee80211_get_sband_iftype_data()
443 if (data->types_mask & BIT(iftype)) in ieee80211_get_sband_iftype_data()
451 * ieee80211_get_he_iftype_cap - return HE capabilities for an sband's iftype
464 if (data && data->he_cap.has_he) in ieee80211_get_he_iftype_cap()
465 return &data->he_cap; in ieee80211_get_he_iftype_cap()
471 * ieee80211_get_he_sta_cap - return HE capabilities for an sband's STA
483 * wiphy_read_of_freq_limits - read frequency limits from device tree
533 * struct vif_params - describes virtual interface parameters
536 * @use_4addr: use 4-address frames
543 * @vht_mumimo_groups: MU-MIMO groupID, used for monitoring MU-MIMO packets
544 * belonging to that MU-MIMO groupID; %NULL if not changed
545 * @vht_mumimo_follow_addr: MU-MIMO follow address, used for monitoring
546 * MU-MIMO packets going to the specified station; %NULL if not changed
557 * struct key_params - key information
580 * struct cfg80211_chan_def - channel definition
587 * If edmg is requested (i.e. the .channels member is non-zero),
600 * cfg80211_get_chandef_type - return old channel type from chandef
603 * Return: The old channel type (NOHT, HT20, HT40+/-) from a given
609 switch (chandef->width) { in cfg80211_get_chandef_type()
615 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
625 * cfg80211_chandef_create - create channel definition using channel type
637 * cfg80211_chandef_identical - check if two channel definitions are identical
648 return (chandef1->chan == chandef2->chan && in cfg80211_chandef_identical()
649 chandef1->width == chandef2->width && in cfg80211_chandef_identical()
650 chandef1->center_freq1 == chandef2->center_freq1 && in cfg80211_chandef_identical()
651 chandef1->center_freq2 == chandef2->center_freq2); in cfg80211_chandef_identical()
655 * cfg80211_chandef_is_edmg - check if chandef represents an EDMG channel
664 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
668 * cfg80211_chandef_compatible - check if two channel definitions are compatible
680 * cfg80211_chandef_valid - check if a channel definition is valid
687 * cfg80211_chandef_usable - check if secondary channels can be used
698 * cfg80211_chandef_dfs_required - checks if radar detection is required
710 * ieee80211_chandef_rate_flags - returns rate flags for a channel
712 * In some channel types, not all rates may be used - for example CCK
722 switch (chandef->width) { in ieee80211_chandef_rate_flags()
734 * ieee80211_chandef_max_power - maximum transmission power for the chandef
738 * max_power for non-standard (20 MHz) channels.
747 switch (chandef->width) { in ieee80211_chandef_max_power()
749 return min(chandef->chan->max_reg_power - 6, in ieee80211_chandef_max_power()
750 chandef->chan->max_power); in ieee80211_chandef_max_power()
752 return min(chandef->chan->max_reg_power - 3, in ieee80211_chandef_max_power()
753 chandef->chan->max_power); in ieee80211_chandef_max_power()
757 return chandef->chan->max_power; in ieee80211_chandef_max_power()
761 * enum survey_info_flags - survey information flags
763 * @SURVEY_INFO_NOISE_DBM: noise (in dBm) was filled in
765 * @SURVEY_INFO_TIME: active time (in ms) was filled in
766 * @SURVEY_INFO_TIME_BUSY: busy time was filled in
767 * @SURVEY_INFO_TIME_EXT_BUSY: extension channel busy time was filled in
768 * @SURVEY_INFO_TIME_RX: receive time was filled in
769 * @SURVEY_INFO_TIME_TX: transmit time was filled in
770 * @SURVEY_INFO_TIME_SCAN: scan time was filled in
771 * @SURVEY_INFO_TIME_BSS_RX: local BSS receive time was filled in
774 * it has filled in during the get_survey().
789 * struct survey_info - channel survey response
793 * @filled: bitflag of flags from &enum survey_info_flags
804 * Used by dump_survey() to report back per-channel survey information.
818 u32 filled; member
825 * struct cfg80211_crypto_settings - Crypto settings
846 * @psk: PSK (for devices supporting 4-way-handshake offload)
870 * struct cfg80211_beacon_data - beacon data
887 * @ftm_responder: enable FTM responder functionality; -1 for no change
920 * struct cfg80211_acl_data - Access control list data
936 * cfg80211_bitrate_mask - masks for bitrate control
948 * enum cfg80211_ap_settings_flags - AP settings flags
959 * struct cfg80211_ap_settings - AP configuration
1022 * struct cfg80211_csa_settings - channel switch settings
1053 * struct iface_combination_params - input parameters for interface combinations
1077 * enum station_parameters_apply_mask - station parameter values to apply
1082 * Not all station parameters have in-band "no change" signalling,
1093 * struct sta_txpwr - station txpower configuration
1098 * is not provided, the default per-interface tx power setting will be
1100 * power per-interface or per-station.
1113 * struct station_parameters - station parameters
1125 * @listen_interval: listen interval or -1 for no change
1139 * @local_pm: local link-specific mesh power save mode (no change when set
1188 * struct station_del_parameters - station deletion parameters
1204 * enum cfg80211_station_type - the type of station being modified
1234 * cfg80211_check_station_change - validate parameter changes
1250 * enum station_info_rate_flags - bitrate info flags
1255 * @RATE_INFO_FLAGS_MCS: mcs field filled with HT MCS
1256 * @RATE_INFO_FLAGS_VHT_MCS: mcs field filled with VHT MCS
1272 * enum rate_info_bw - rate bandwidth information
1295 * struct rate_info - bitrate information
1308 * @n_bonded_ch: In case of EDMG the number of bonded channels (1-4)
1323 * enum station_info_rate_flags - bitrate info flags
1339 * struct sta_bss_parameters - BSS parameters for the attached station
1354 * struct cfg80211_txq_stats - TXQ statistics for this TID
1355 * @filled: bitmap of flags using the bits of &enum nl80211_txq_stats to
1356 * indicate the relevant values in this struct are filled
1370 u32 filled; member
1385 * struct cfg80211_tid_stats - per-TID statistics
1386 * @filled: bitmap of flags using the bits of &enum nl80211_tid_stats to
1387 * indicate the relevant values in this struct are filled
1396 u32 filled; member
1407 * struct station_info - station information
1409 * Station information filled by driver for get_station() and dump_station.
1411 * @filled: bitflag of flags using the bits of &enum nl80211_sta_info to
1425 * @chains: bitmask for filled values in @chain_signal, @chain_signal_avg
1426 * @chain_signal: per-chain signal strength of last received packet in dBm
1427 * @chain_signal_avg: per-chain signal strength average in dBm
1434 * @rx_dropped_misc: Dropped for un-specified reason.
1450 * @nonpeer_pm: non-peer mesh STA power save mode
1460 * @pertid: per-TID statistics, see &struct cfg80211_tid_stats, using the last
1461 * (IEEE80211_NUM_TIDS) index for MSDUs not encapsulated in QoS-MPDUs.
1462 * Note that this doesn't use the @filled bit, but is used if non-NULL.
1473 u64 filled; member
1532 * cfg80211_get_station - retrieve information about a given station
1537 * Returns 0 on success and sinfo is filled with the available information
1548 return -ENOENT; in cfg80211_get_station()
1553 * enum monitor_flags - monitor flags
1577 * enum mpath_info_flags - mesh path information flags
1579 * Used by the driver to indicate which info in &struct mpath_info it has filled
1582 * @MPATH_INFO_FRAME_QLEN: @frame_qlen filled
1583 * @MPATH_INFO_SN: @sn filled
1584 * @MPATH_INFO_METRIC: @metric filled
1585 * @MPATH_INFO_EXPTIME: @exptime filled
1586 * @MPATH_INFO_DISCOVERY_TIMEOUT: @discovery_timeout filled
1587 * @MPATH_INFO_DISCOVERY_RETRIES: @discovery_retries filled
1588 * @MPATH_INFO_FLAGS: @flags filled
1589 * @MPATH_INFO_HOP_COUNT: @hop_count filled
1590 * @MPATH_INFO_PATH_CHANGE: @path_change_count filled
1605 * struct mpath_info - mesh path information
1607 * Mesh path information filled by driver for get_mpath() and dump_mpath().
1609 * @filled: bitfield of flags from &enum mpath_info_flags
1625 u32 filled; member
1640 * struct bss_parameters - BSS parameters
1645 * (0 = no, 1 = yes, -1 = do not change)
1647 * (0 = no, 1 = yes, -1 = do not change)
1649 * (0 = no, 1 = yes, -1 = do not change)
1655 * (u16 = opmode, -1 = do not change)
1656 * @p2p_ctwindow: P2P CT Window (-1 = no change)
1657 * @p2p_opp_ps: P2P opportunistic PS (-1 = no change)
1671 * struct mesh_config - 802.11s mesh configuration
1717 * @dot11MeshForwarding: whether the Mesh STA is forwarding or non-forwarding
1718 * entity (default is TRUE - forwarding entity)
1777 * struct mesh_setup - 802.11s mesh setup configuration
1826 * struct ocb_setup - 802.11p OCB mode setup configuration
1836 * struct ieee80211_txq_params - TX queue parameters
1839 * @cwmin: Minimum contention window [a value of the form 2^n-1 in the range
1841 * @cwmax: Maximum contention window [a value of the form 2^n-1 in the range
1863 * well-formed, and will not exceed the maximum length the driver advertised
1877 * struct cfg80211_ssid - SSID description
1887 * struct cfg80211_scan_info - information about completed scan
1902 * struct cfg80211_scan_request - scan request description
1972 * struct cfg80211_match_set - sets of attributes to match
1974 * @ssid: SSID to be matched; may be zero-length in case of BSSID match
1976 * @bssid: BSSID to be matched; may be all-zero BSSID in case of SSID match
1995 * struct cfg80211_sched_scan_plan - scan plan for scheduled scan
2009 * struct cfg80211_bss_select_adjust - BSS selection with RSSI adjustment.
2020 * struct cfg80211_sched_scan_request - scheduled scan request description
2052 * @nl_owner_dead: netlink owner socket was closed - this request be freed
2107 * enum cfg80211_signal_type - signal type
2120 * struct cfg80211_inform_bss - BSS inform data
2136 * @chains: bitmask for filled values in @chain_signal.
2137 * @chain_signal: per-chain signal strength of last received BSS in dBm.
2151 * struct cfg80211_bss_ies - BSS entry IE data
2167 * struct cfg80211_bss - BSS description
2178 * are well-formed!); this is a pointer to either the beacon_ies or
2180 * received. It is always non-%NULL.
2189 * points to the same data as hidden_beacon_bss->beacon_ies in that case.
2191 * non-transmitted one (multi-BSSID support)
2192 * @nontrans_list: list of non-transmitted BSS, if this is a transmitted one
2193 * (multi-BSSID support)
2195 * @chains: bitmask for filled values in @chain_signal.
2196 * @chain_signal: per-chain signal strength of last received BSS in dBm.
2199 * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes
2229 * ieee80211_bss_get_elem - find element with given ID
2233 * Note that the return value is an RCU-protected pointer, so
2240 * ieee80211_bss_get_ie - find IE with given ID
2244 * Note that the return value is an RCU-protected pointer, so
2255 * struct cfg80211_auth_request - Authentication request data
2269 * the authentication frame body (non-IE and IE data), excluding the
2286 * enum cfg80211_assoc_req_flags - Over-ride default behaviour in association.
2304 * struct cfg80211_assoc_request - (Re)Association request data
2323 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2324 * will be used in ht_capa. Un-supported values will be ignored.
2351 * struct cfg80211_deauth_request - Deauthentication request data
2372 * struct cfg80211_disassoc_request - Disassociation request data
2393 * struct cfg80211_ibss_params - IBSS parameters
2398 * @ssid: The SSID, will always be non-null.
2399 * @ssid_len: The length of the SSID, will always be non-zero.
2403 * @channel_fixed: The channel should be fixed -- do not search for
2420 * @mcast_rate: per-band multicast rate index + 1 (0: disabled)
2421 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2422 * will be used in ht_capa. Un-supported values will be ignored.
2449 * struct cfg80211_bss_selection - connection parameters for BSS selection.
2465 * struct cfg80211_connect_params - Connection parameters
2470 * @channel: The channel to use or %NULL if not specified (auto-select based
2474 * @bssid: The AP BSSID or %NULL if not specified (auto-select based on scan
2485 * @privacy: indicates whether privacy-enabled APs should be used
2493 * or -1 to indicate that default value is to be used.
2494 * @ht_capa: HT Capabilities over-rides. Values set in ht_capa_mask
2495 * will be used in ht_capa. Un-supported values will be ignored.
2508 * @fils_erp_username: EAP re-authentication protocol (ERP) username part of the
2512 * @fils_erp_realm: EAP re-authentication protocol (ERP) realm part of NAI or
2518 * @fils_erp_rrk: ERP re-authentication Root Key (rRK) used to derive additional
2521 * @want_1x: indicates user-space supports and wants to use 802.1X driver
2522 * offload of 4-way handshake.
2563 * enum cfg80211_connect_params_changed - Connection parameters being updated
2580 * enum wiphy_params_flags - set_wiphy_params bitfield values
2581 * @WIPHY_PARAM_RETRY_SHORT: wiphy->retry_short has changed
2582 * @WIPHY_PARAM_RETRY_LONG: wiphy->retry_long has changed
2583 * @WIPHY_PARAM_FRAG_THRESHOLD: wiphy->frag_threshold has changed
2584 * @WIPHY_PARAM_RTS_THRESHOLD: wiphy->rts_threshold has changed
2606 * struct cfg80211_pmksa - PMK Security Association
2620 * @cache_id: 2-octet cache identifier advertized by a FILS AP identifying the
2621 * scope of PMKSA. This is valid only if @ssid_len is non-zero (may be
2635 * struct cfg80211_pkt_pattern - packet pattern
2652 * struct cfg80211_wowlan_tcp - TCP connection parameters
2687 * struct cfg80211_wowlan - Wake on Wireless-LAN support info
2690 * @any: wake up on any activity -- special trigger if device continues
2698 * @four_way_handshake: wake up on 4-way handshake
2715 * struct cfg80211_coalesce_rules - Coalesce rule parameters
2732 * struct cfg80211_coalesce - Packet coalescing settings
2744 * struct cfg80211_wowlan_nd_match - information about the match
2759 * struct cfg80211_wowlan_nd_info - net detect wake up information
2773 * struct cfg80211_wowlan_wakeup - wakeup report
2778 * @four_way_handshake: woke up by 4-way handshake
2780 * @pattern_idx: pattern that caused wakeup, -1 if not due to pattern
2805 * struct cfg80211_gtk_rekey_data - rekey data
2815 * struct cfg80211_update_ft_ies_params - FT IE Information
2830 * struct cfg80211_mgmt_tx_params - mgmt tx parameters
2857 * struct cfg80211_dscp_exception - DSCP exception
2868 * struct cfg80211_dscp_range - DSCP range definition for user priority
2878 /* QoS Map Set element length defined in IEEE Std 802.11-2012, 8.4.2.97 */
2885 * struct cfg80211_qos_map - QoS Map Information
2901 * struct cfg80211_nan_conf - NAN configuration
2905 * @master_pref: master preference (1 - 255)
2916 * enum cfg80211_nan_conf_changes - indicates changed fields in NAN
2928 * struct cfg80211_nan_func_filter - a NAN function Rx / Tx filter
2939 * struct cfg80211_nan_func - a NAN function
2995 * struct cfg80211_pmk_conf - PMK configuration
3000 * @pmk_r0_name: PMK-R0 Name. NULL if not applicable (i.e., the PMK
3001 * is not PMK-R0). When pmk_r0_name is not NULL, the pmk field
3002 * holds PMK-R0.
3012 * struct cfg80211_external_auth_params - Trigger External authentication.
3041 * struct cfg80211_ftm_responder_stats - FTM responder statistics
3043 * @filled: bitflag of flags using the bits of &enum nl80211_ftm_stats to
3051 * @non_asap_num: number of non-ASAP FTM sessions
3052 * @total_duration_ms: total sessions durations - gives an indication
3054 * @unknown_triggers_num: number of unknown FTM triggers - triggers from
3057 * @reschedule_requests_num: number of FTM reschedule requests - initiator asks
3062 u32 filled; member
3075 * struct cfg80211_pmsr_ftm_result - FTM result
3080 * in [0 .. num_bursts-1] of the burst that's being reported
3155 * struct cfg80211_pmsr_result - peer measurement result
3185 * struct cfg80211_pmsr_ftm_request_peer - FTM request data
3213 * struct cfg80211_pmsr_request_peer - peer data for a peer measurement request
3227 * struct cfg80211_pmsr_request - peer measurement request
3229 * @nl_portid: netlink portid - used by cfg80211
3240 * @peers: per-peer measurement request data
3259 * struct cfg80211_update_owe_info - OWE Information
3285 * struct cfg80211_ops - backend description for wireless configuration
3298 * be %NULL or contain the enabled Wake-on-Wireless triggers that are
3323 * not possible to retrieve the key, -ENOENT if it doesn't exist.
3326 * and @key_index, return -ENOENT if the key doesn't exist.
3343 * might come to the driver in invalid combinations -- make sure to check
3347 * @dump_station: dump station callback -- resume dump at index @idx
3353 * @dump_mpath: dump mesh path callback -- resume dump at index @idx
3355 * @dump_mpp: dump mesh proxy path callback -- resume dump at index @idx
3411 * In both the driver-initiated and new connect() call initiated roaming
3445 * always be %NULL unless the driver supports per-vif TX power
3458 * channel for the specified duration to complete an off-channel
3462 * @cancel_remain_on_channel: Cancel an on-going remain-on-channel operation.
3470 * @testmode_dump: Implement a test mode dump. The cb->args[2] and up may be
3472 * return error codes other than -ENOBUFS and -ENOENT will terminate the
3484 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1
3511 * reject TX/RX mask combinations they cannot support by returning -EINVAL
3517 * @tdls_oper: Perform a high-level TDLS operation (e.g. TDLS link setup).
3551 * @channel_switch: initiate channel-switch procedure (with CSA). Driver is
3580 * @tdls_channel_switch: Start channel-switching with a TDLS peer. The driver
3581 * is responsible for continually initiating channel-switching operations
3583 * @tdls_cancel_channel_switch: Stop channel-switching with a TDLS peer. Both
3604 * @set_pmk: configure the PMK to be used for offloaded 802.1X 4-Way handshake.
3954 * enum wiphy_flags - wiphy capability flags
3959 * by default -- this flag will be set depending on the kernel's default
3986 * responds to probe-requests in hardware.
3987 * @WIPHY_FLAG_OFFCHAN_TX: Device supports direct off-channel TX.
3988 * @WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL: Device supports remain-on-channel call.
4023 * struct ieee80211_iface_limit - limit on certain interface types
4033 * struct ieee80211_iface_combination - possible interface combination
4042 * .. code-block:: c
4056 * 2. Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total:
4058 * .. code-block:: c
4072 * 3. Allow #STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total.
4076 * .. code-block:: c
4154 * enum wiphy_wowlan_support_flags - WoWLAN support flags
4156 * trigger that keeps the device operating as-is and
4166 * @WIPHY_WOWLAN_4WAY_HANDSHAKE: supports wakeup on 4-way handshake failure
4167 * @WIPHY_WOWLAN_RFKILL_RELEASE: supports wakeup on RF-kill release
4191 * struct wiphy_wowlan_support - WoWLAN support data
4198 * @max_nd_match_sets: maximum number of matchsets for net-detect,
4216 * struct wiphy_coalesce_support - coalesce support data
4235 * enum wiphy_vendor_command_flags - validation flags for vendor commands
4248 * enum wiphy_opmode_flag - Station's ht/vht operation mode information flags
4262 * struct sta_opmode_info - Station's ht/vht operation mode information
4276 #define VENDOR_CMD_RAW_DATA ((const struct nla_policy *)(long)(-ENODATA))
4279 * struct wiphy_vendor_command - vendor command definition
4283 * flags didn't ask for a wdev and non-%NULL otherwise; the data
4286 * @storage points to cb->args[5], ie. is preserved over the multiple
4309 * struct wiphy_iftype_ext_capab - extended capabilities per interface type
4315 * 802.11-2012 8.4.2.29 for the defined fields.
4327 * struct cfg80211_pmsr_capabilities - cfg80211 peer measurement capabilities
4332 * @ftm.asap: ASAP-mode is supported
4333 * @ftm.non_asap: non-ASAP-mode is supported
4339 * (set to -1 if not limited; note that setting this will necessarily
4363 * struct wiphy - wireless hardware description
4379 * -1 = fragmentation disabled, only odd values >= 256 used
4380 * @rts_threshold: RTS threshold (dot11RTSThreshold); -1 = RTS/CTS disabled
4385 * four bits are variable then set it to 00-00-00-00-00-0f. The actual
4392 * all-zeroes. In this case it is assumed that the device can handle
4394 * @registered: protects ->resume and ->suspend sysfs callbacks against
4426 * @max_scan_ie_len: maximum length of user-controlled IEs device can
4462 * @max_remain_on_channel_duration: Maximum time a remain-on-channel operation
4471 * @ht_capa_mod_mask: Specify what ht_cap values can be over-ridden.
4472 * If null, then none can be over-ridden.
4473 * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden.
4474 * If null, then none can be over-ridden.
4486 * 802.11-2012 8.4.2.29 for the defined fields. These are the default
4629 /* fields below are read-only, assigned by cfg80211 */
4637 /* protects ->resume, ->suspend sysfs callbacks against unregister hw */
4684 return read_pnet(&wiphy->_net); in wiphy_net()
4689 write_pnet(&wiphy->_net, net); in wiphy_net_set()
4693 * wiphy_priv - return priv from wiphy
4701 return &wiphy->priv; in wiphy_priv()
4705 * priv_to_wiphy - return the wiphy containing the priv
4717 * set_wiphy_dev - set device pointer for wiphy
4724 wiphy->dev.parent = dev; in set_wiphy_dev()
4728 * wiphy_dev - get wiphy dev pointer
4735 return wiphy->dev.parent; in wiphy_dev()
4739 * wiphy_name - get wiphy name
4746 return dev_name(&wiphy->dev); in wiphy_name()
4750 * wiphy_new_nm - create a new wiphy for use with cfg80211
4767 * wiphy_new - create a new wiphy for use with cfg80211
4785 * wiphy_register - register a wiphy with cfg80211
4789 * Return: A non-negative wiphy index or a negative error code.
4794 * wiphy_unregister - deregister a wiphy from cfg80211
4805 * wiphy_free - free wiphy
4818 * struct wireless_dev - wireless device state
4826 * For non-netdev uses, it must also be allocated by the driver
4839 * the user-set channel definition.
4861 * netdev and may otherwise be used by driver read-only, will be update
4870 * @is_running: true if this is a non-netdev device that has been started, e.g.
4883 * @disconnect_wk: (private) auto-disconnect work
4884 * @disconnect_bssid: (private) the BSSID to use for auto-disconnect
4915 /* currently used for IBSS and SME - might be rearranged later */
4975 if (wdev->netdev) in wdev_address()
4976 return wdev->netdev->dev_addr; in wdev_address()
4977 return wdev->address; in wdev_address()
4982 if (wdev->netdev) in wdev_running()
4983 return netif_running(wdev->netdev); in wdev_running()
4984 return wdev->is_running; in wdev_running()
4988 * wdev_priv - return wiphy priv from wireless_dev
4996 return wiphy_priv(wdev->wiphy); in wdev_priv()
5006 * ieee80211_channel_to_frequency - convert channel number to frequency
5014 * ieee80211_frequency_to_channel - convert frequency to channel number
5021 * ieee80211_get_channel - get channel struct from wiphy for specified frequency
5031 * ieee80211_get_response_rate - get basic rate for a given rate
5047 * ieee80211_mandatory_rates - get mandatory rates for a given band
5058 * Radiotap parsing functions -- for controlled injection support
5061 * Documentation in Documentation/networking/radiotap-headers.txt
5081 * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args
5143 * ieee80211_get_hdrlen_from_skb - get header length from data
5157 * ieee80211_hdrlen - get header length in bytes from frame control
5158 * @fc: frame control field in little-endian format
5164 * ieee80211_get_mesh_hdrlen - get mesh extension header length
5181 * ieee80211_data_to_8023_exthdr - convert an 802.11 data frame to 802.3
5188 * Return: 0 on success. Non-zero on error.
5195 * ieee80211_data_to_8023 - convert an 802.11 data frame to 802.3
5199 * Return: 0 on success. Non-zero on error.
5208 * ieee80211_amsdu_to_8023s - decode an IEEE 802.11n A-MSDU frame
5210 * Decode an IEEE 802.11 A-MSDU and convert it to a list of 802.3 frames.
5212 * header-less before being passed in here; it is freed in this function.
5214 * @skb: The input A-MSDU frame without any headers.
5229 * cfg80211_classify8021d - determine the 802.1p/1d tag for a data frame
5238 * cfg80211_find_elem_match - match information element and byte array in data
5265 * cfg80211_find_ie_match - match information element and byte array in data
5303 match_offset - 2 : 0); in cfg80211_find_ie_match()
5307 * cfg80211_find_elem - find information element in data
5328 * cfg80211_find_ie - find information element in data
5348 * cfg80211_find_ext_elem - find information element with EID Extension in data
5370 * cfg80211_find_ext_ie - find information element with EID Extension in data
5391 * cfg80211_find_vendor_elem - find vendor specific information element in data
5394 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
5410 * cfg80211_find_vendor_ie - find vendor specific information element in data
5413 * @oui_type: vendor-specific OUI type (must be < 0xff), negative means any
5433 * cfg80211_send_layer2_update - send layer 2 update frame
5450 * regulatory_hint - driver hint to the wireless core a regulatory domain
5455 * set this to NULL you should still set rd->alpha2 to some accepted
5470 * an -ENOMEM.
5472 * Return: 0 on success. -ENOMEM.
5477 * regulatory_set_wiphy_regd - set regdom info for self managed drivers
5481 * Set the regulatory domain information for self-managed wiphys, only they
5485 * Return: 0 on success. -EINVAL, -EPERM
5491 * regulatory_set_wiphy_regd_sync_rtnl - set regdom for self-managed drivers
5499 * Return: 0 on success. -EINVAL, -EPERM
5505 * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain
5523 * freq_reg_info - get regulatory information for the given frequency
5535 * value will be -ERANGE if we determine the given center_freq does not even
5537 * See freq_in_rule_band() for our current definition of a band -- this is
5544 * reg_initiator_name - map regulatory request initiator enum to name
5553 * regulatory_pre_cac_allowed - check if pre-CAC allowed in the current regdom
5554 * @wiphy: wiphy for which pre-CAC capability is checked.
5556 * Pre-CAC is allowed only in some regdomains (notable ETSI).
5566 * reg_query_regdb_wmm - Query internal regulatory db for wmm rule
5567 * Regulatory self-managed driver can use it to proactively
5573 * Self-managed wireless drivers can use this function to query
5578 * an -ENODATA.
5580 * Return: 0 on success. -ENODATA.
5591 * cfg80211_scan_done - notify that scan finished
5600 * cfg80211_sched_scan_results - notify that new scan results are available
5608 * cfg80211_sched_scan_stopped - notify that the scheduled scan has stopped
5620 * cfg80211_sched_scan_stopped_rtnl - notify that the scheduled scan has stopped
5633 * cfg80211_inform_bss_frame_data - inform cfg80211 of a received BSS frame
5684 * cfg80211_gen_new_bssid - generate a nontransmitted BSSID for multi-BSSID
5694 u64 mask = GENMASK_ULL(max_bssid - 1, 0); in cfg80211_gen_new_bssid()
5705 * cfg80211_is_element_inherited - returns if element ID should be inherited
5713 * cfg80211_merge_profile - merges a MBSSID profile if it is split between IEs
5727 * enum cfg80211_bss_frame_type - frame type that the BSS data came from
5740 * cfg80211_inform_bss_data - inform cfg80211 of a new BSS
5807 * cfg80211_get_bss - get a BSS reference
5833 * cfg80211_ref_bss - reference BSS struct
5842 * cfg80211_put_bss - unref BSS struct
5851 * cfg80211_unlink_bss - unlink BSS from internal data structures
5863 * cfg80211_bss_iter - iterate all BSS entries
5885 switch (chandef->width) { in cfg80211_chandef_to_scan_width()
5896 * cfg80211_rx_mlme_mgmt - notification of processed MLME management frame
5917 * cfg80211_auth_timeout - notification of timed out authentication
5927 * cfg80211_rx_assoc_resp - notification of processed association response
5950 * cfg80211_assoc_timeout - notification of timed out association
5959 * cfg80211_abandon_assoc - notify cfg80211 of abandoned association attempt
5963 * Call this whenever - for reasons reported through other API, like deauth RX,
5970 * cfg80211_tx_mlme_mgmt - notification of transmitted deauth/disassoc frame
5983 * cfg80211_rx_unprot_mlme_mgmt - notification of unprotected mlme mgmt frame
5996 * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP)
6000 * @key_id: Key identifier (0..3). Can be -1 if missing.
6005 * received frame. This matches with MLME-MICHAELMICFAILURE.indication()
6013 * cfg80211_ibss_joined - notify cfg80211 that device joined an IBSS
6024 * with the locally generated beacon -- this guarantees that there is
6031 * cfg80211_notify_new_candidate - notify cfg80211 of a new mesh peer candidate
6062 * wiphy_rfkill_set_hw_state - notify cfg80211 about hw block state
6069 * wiphy_rfkill_start_polling - start polling rfkill
6075 * wiphy_rfkill_stop_polling - stop polling rfkill
6086 * (typically closed-source) userspace and firmware, using nl80211 as
6096 * "normal" functionality that higher-level userspace like connection
6116 * cfg80211_vendor_cmd_alloc_reply_skb - allocate vendor command reply
6121 * This function allocates and pre-fills an skb for a reply to
6125 * The returned skb is pre-filled with some identifying data in
6136 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6146 * cfg80211_vendor_cmd_reply - send the reply skb
6169 * cfg80211_vendor_event_alloc - allocate vendor-specific event skb
6177 * This function allocates and pre-fills an skb for an event on the
6178 * vendor-specific multicast group.
6187 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6199 * cfg80211_vendor_event_alloc_ucast - alloc unicast vendor-specific event skb
6208 * This function allocates and pre-fills an skb for an event to send to
6220 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6234 * cfg80211_vendor_event - send the event
6251 * interact with driver-specific tools to aid, for instance,
6259 * cfg80211_testmode_alloc_reply_skb - allocate testmode reply
6264 * This function allocates and pre-fills an skb for a reply to
6268 * The returned skb is pre-filled with the wiphy index and set up in
6279 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6289 * cfg80211_testmode_reply - send the reply skb
6306 * cfg80211_testmode_alloc_event_skb - allocate testmode event
6312 * This function allocates and pre-fills an skb for an event on the
6324 * Return: An allocated and pre-filled skb. %NULL if any errors happen.
6330 NL80211_ATTR_TESTDATA, 0, -1, in cfg80211_testmode_alloc_event_skb()
6335 * cfg80211_testmode_event - send the event
6357 * struct cfg80211_fils_resp_params - FILS connection response params
6381 * struct cfg80211_connect_resp_params - Connection response params
6386 * from the AP) instead of an explicit rejection by the AP, -1 is used to
6422 * cfg80211_connect_done - notify cfg80211 of connection result
6440 * cfg80211_connect_bss - notify cfg80211 of connection result
6458 * from the AP) instead of an explicit rejection by the AP, -1 is used to
6500 * cfg80211_connect_result - notify cfg80211 of connection result
6531 * cfg80211_connect_timeout - notify cfg80211 of connection timeout
6553 cfg80211_connect_bss(dev, bssid, NULL, req_ie, req_ie_len, NULL, 0, -1, in cfg80211_connect_timeout()
6558 * struct cfg80211_roam_info - driver initiated roaming information
6581 * cfg80211_roamed - notify cfg80211 of roaming
6594 * rdev->event_work. In case of any failures, the reference is released
6602 * cfg80211_port_authorized - notify cfg80211 of successful security association
6619 * cfg80211_disconnected - notify cfg80211 that connection was dropped
6636 * cfg80211_ready_on_channel - notification of remain_on_channel start
6649 * cfg80211_remain_on_channel_expired - remain_on_channel duration expired
6660 * cfg80211_tx_mgmt_expired - tx_mgmt duration expired
6670 * cfg80211_sinfo_alloc_tid_stats - allocate per-tid statistics.
6678 * cfg80211_sinfo_release_content - release contents of station info
6681 * Releases any potentially allocated sub-information of the station
6687 kfree(sinfo->pertid); in cfg80211_sinfo_release_content()
6691 * cfg80211_new_sta - notify userspace about station
6702 * cfg80211_del_sta_sinfo - notify userspace about deletion of a station
6712 * cfg80211_del_sta - notify userspace about deletion of a station
6725 * cfg80211_conn_failed - connection request failed notification
6744 * cfg80211_rx_mgmt - notification of received, unprocessed management frame
6764 * cfg80211_mgmt_tx_status - notification of TX status for management frame
6781 * cfg80211_rx_control_port - notification about a received control port frame
6784 * is 802.3 formatted (with 802.3 header). The skb can be non-linear.
6787 * skb->protocol is set appropriately.
6803 * cfg80211_cqm_rssi_notify - connection quality monitoring rssi event
6817 * cfg80211_cqm_pktloss_notify - notify userspace about packetloss to peer
6820 * @num_packets: how many packets were lost -- should be a fixed threshold
6829 * cfg80211_cqm_txe_notify - TX error rate event
6844 * cfg80211_cqm_beacon_loss_notify - beacon loss event
6853 * cfg80211_radar_event - radar detection event
6864 * cfg80211_sta_opmode_change_notify - STA's ht/vht operation mode change event
6878 * cfg80211_cac_event - Channel availability check (CAC) event
6886 * also by full-MAC drivers.
6894 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying
6904 * cfg80211_pmksa_candidate_notify - notify about PMKSA caching candidate
6908 * @preauth: Whether AP advertises support for RSN pre-authentication
6915 * cfg80211_rx_spurious_frame - inform userspace about a spurious frame
6930 * cfg80211_rx_unexpected_4addr_frame - inform about unexpected WDS frame
6946 * cfg80211_probe_status - notify userspace about probe status
6949 * @cookie: the cookie filled in @probe_client previously
6960 * cfg80211_report_obss_beacon - report beacon from other APs
6976 * cfg80211_reg_can_beacon - check if beaconing is allowed
6989 * cfg80211_reg_can_beacon_relax - check if beaconing is allowed with relaxation
6996 * also checks if IR-relaxation conditions apply, to allow beaconing under
7006 * cfg80211_ch_switch_notify - update wdev channel and notify userspace
7017 * cfg80211_ch_switch_started_notify - notify channel switch start
7031 * ieee80211_operating_class_to_band - convert operating class to band
7042 * ieee80211_chandef_to_operating_class - convert chandef to operation class
7053 * cfg80211_tdls_oper_request - request userspace to perform TDLS operation
7072 * cfg80211_calculate_bitrate - calculate actual bitrate (in 100Kbps units)
7080 * cfg80211_unregister_wdev - remove the given wdev
7096 * struct cfg80211_ft_event - FT Information Elements
7112 * cfg80211_ft_event - notify userspace about FT IE and RIC IE
7120 * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer
7131 * Return: A negative error code (-%EILSEQ or -%ENOENT) if the data is
7140 * ieee80211_ie_split_ric - split an IE buffer according to ordering (with RIC)
7145 * EID in the list is a sub-element of the EXTENSION IE.
7155 * It assumes that the given IE buffer is well-formed, this
7172 * ieee80211_ie_split - split an IE buffer according to ordering
7177 * EID in the list is a sub-element of the EXTENSION IE.
7185 * It assumes that the given IE buffer is well-formed, this
7203 * cfg80211_report_wowlan_wakeup - report wakeup from WoWLAN
7218 * cfg80211_crit_proto_stopped() - indicate critical protocol stopped by driver.
7230 * ieee80211_get_num_supported_channels - get number of channels device has
7238 * cfg80211_check_combinations - check interface combinations
7251 * cfg80211_iter_combinations - iterate over matching combinations
7269 * cfg80211_stop_iface - trigger interface disconnection
7284 * cfg80211_shutdown_all_interfaces - shut down all interfaces for a wiphy
7288 * calling dev_close() (and treating non-netdev interfaces as needed).
7298 * wiphy_ext_feature_set - set the extended feature flag
7311 ft_byte = &wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_set()
7316 * wiphy_ext_feature_isset - check the extended feature flag
7330 ft_byte = wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_isset()
7335 * cfg80211_free_nan_func - free NAN function
7343 * struct cfg80211_nan_match_params - NAN match parameters
7367 * cfg80211_nan_match - report a match for a NAN function.
7380 * cfg80211_nan_func_terminated - notify about NAN function termination.
7399 * cfg80211_external_auth_request - userspace request for authentication
7410 * cfg80211_pmsr_report - report peer measurement result data
7422 * cfg80211_pmsr_complete - report peer measurement completed
7435 * cfg80211_iftype_allowed - check whether the interface can be allowed
7454 dev_printk(level, &(wiphy)->dev, format, ##args)
7456 dev_emerg(&(wiphy)->dev, format, ##args)
7458 dev_alert(&(wiphy)->dev, format, ##args)
7460 dev_crit(&(wiphy)->dev, format, ##args)
7462 dev_err(&(wiphy)->dev, format, ##args)
7464 dev_warn(&(wiphy)->dev, format, ##args)
7466 dev_notice(&(wiphy)->dev, format, ##args)
7468 dev_info(&(wiphy)->dev, format, ##args)
7471 dev_err_ratelimited(&(wiphy)->dev, format, ##args)
7473 dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
7479 dev_dbg(&(wiphy)->dev, format, ##args)
7501 * cfg80211_update_owe_info_event - Notify the peer's OWE info to user space