diff --git a/kernel/lts2024-android/kernel-headers/linux/iwl-vendor-cmd.h b/kernel/lts2024-android/kernel-headers/linux/iwl-vendor-cmd.h index bdc9f5e4..2502221f 100644 --- a/kernel/lts2024-android/kernel-headers/linux/iwl-vendor-cmd.h +++ b/kernel/lts2024-android/kernel-headers/linux/iwl-vendor-cmd.h @@ -1,627 +1,62 @@ -/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* - * Copyright (C) 2012-2014, 2018-2023 Intel Corporation + * Copyright (C) 2012-2014, 2018-2021 Intel Corporation * Copyright (C) 2013-2015 Intel Mobile Communications GmbH * Copyright (C) 2016-2017 Intel Deutschland GmbH */ -#ifndef __VENDOR_CMD_H__ -#define __VENDOR_CMD_H__ +#ifndef __VENDOR_CMD_INTEL_H__ +#define __VENDOR_CMD_INTEL_H__ #define INTEL_OUI 0x001735 /** * enum iwl_mvm_vendor_cmd - supported vendor commands - * @IWL_MVM_VENDOR_CMD_SET_LOW_LATENCY: set low-latency mode for the given - * virtual interface - * @IWL_MVM_VENDOR_CMD_GET_LOW_LATENCY: query low-latency mode - * @IWL_MVM_VENDOR_CMD_LTE_STATE: inform the LTE modem state - * @IWL_MVM_VENDOR_CMD_LTE_COEX_CONFIG_INFO: configure LTE-Coex static - * parameters - * @IWL_MVM_VENDOR_CMD_LTE_COEX_DYNAMIC_INFO: configure LTE dynamic parameters - * @IWL_MVM_VENDOR_CMD_LTE_COEX_SPS_INFO: configure semi oersistent info - * @IWL_MVM_VENDOR_CMD_LTE_COEX_WIFI_RPRTD_CHAN: Wifi reported channel as - * calculated by the coex-manager - * @IWL_MVM_VENDOR_CMD_SET_COUNTRY: set a new mcc regulatory information - * @IWL_MVM_VENDOR_CMD_PROXY_FRAME_FILTERING: filter GTK, gratuitous - * ARP & unsolicited NA - * @IWL_MVM_VENDOR_CMD_TDLS_PEER_CACHE_ADD: add a peer to the TDLS peer cache - * @IWL_MVM_VENDOR_CMD_TDLS_PEER_CACHE_DEL: delete a peer from the TDLS peer - * cache - * @IWL_MVM_VENDOR_CMD_TDLS_PEER_CACHE_QUERY: query traffic statistics for a - * peer in the TDLS cache - * @IWL_MVM_VENDOR_CMD_SET_NIC_TXPOWER_LIMIT: set the NIC's (SAR) TX power limit - * @IWL_MVM_VENDOR_CMD_OPPPS_WA: wa to pass Sigma test - applicable code is - * claused under CPTCFG_IWLMVM_P2P_OPPPS_TEST_WA - * @IWL_MVM_VENDOR_CMD_GSCAN_GET_CAPABILITIES: get driver gscan capabilities as - * specified in %IWL_MVM_VENDOR_ATTR_GSCAN_* - * @IWL_MVM_VENDOR_CMD_GSCAN_START: set gscan parameters and start gscan - * @IWL_MVM_VENDOR_CMD_GSCAN_STOP: stop a previously started gscan - * @IWL_MVM_VENDOR_CMD_GSCAN_RESULTS_EVENT: event that reports scan results - * from gscan. This event is sent when the scan results buffer has reached - * the report threshold, or when scanning a bucket with report mode - * %IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_COMPLETE was completed. - * @IWL_MVM_VENDOR_CMD_GSCAN_SET_BSSID_HOTLIST: set a list of AP's to track - * changes in their RSSI and report scan results history when RSSI goes - * above/below threshold. Sending this command with an empty list of AP's - * will cancel previous set_bssid_hotlist request. - * @IWL_MVM_VENDOR_CMD_GSCAN_SET_SIGNIFICANT_CHANGE: set a list of APs to track - * significant changes in their RSSI. Sending this command with an empty - * list of AP's will cancel previous set_significant_change request. - * @IWL_MVM_VENDOR_CMD_GSCAN_HOTLIST_CHANGE_EVENT: event that indicates that an - * AP from the BSSID hotlist was lost or found. - * @IWL_MVM_VENDOR_CMD_GSCAN_SIGNIFICANT_CHANGE_EVENT: event that indicates a - * significant change in the RSSI level of beacons received from a certain - * AP. - * @IWL_MVM_VENDOR_CMD_RXFILTER: Set/clear rx filter. - * @IWL_MVM_VENDOR_CMD_GSCAN_BEACON_EVENT: event that reports a - * beacon/probe response was received, and contains information from the - * beacon/probe response. This event is sent for buckets with report mode - * set to %IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_COMPLETE_RESULTS. - * @IWL_MVM_VENDOR_CMD_DBG_COLLECT: collect debug data - * @IWL_MVM_VENDOR_CMD_NAN_FAW_CONF: Configure post NAN further availability. - * @IWL_MVM_VENDOR_CMD_SET_SAR_PROFILE: set the NIC's tx power limits - * according to the specified tx power profiles. In this command - * %IWL_MVM_VENDOR_ATTR_SAR_CHAIN_A_PROFILE and - * %IWL_MVM_VENDOR_ATTR_SAR_CHAIN_B_PROFILE must be passed. - * @IWL_MVM_VENDOR_CMD_GET_SAR_PROFILE_INFO: get sar profile information. - * This command provides the user with the following information: - * Number of enabled SAR profiles, current used SAR profile per chain. - * @IWL_MVM_VENDOR_CMD_NEIGHBOR_REPORT_REQUEST: Send a neighbor report request - * to the AP we are currently connected to. The request parameters are - * specified with %IWL_MVM_VENDOR_ATTR_NR_*. - * @IWL_MVM_VENDOR_CMD_NEIGHBOR_REPORT_RESPONSE: An event that reports a list of - * neighbor APs received in a neighbor report response frame. The report is - * a nested list of &enum iwl_mvm_vendor_neighbor_report. - * @IWL_MVM_VENDOR_CMD_GET_SAR_GEO_PROFILE: get sar geographic profile - * information. This command provides the user with the following - * information: Per band tx power offset for chain A and chain B as well as - * maximum allowed tx power on this band. - * @IWL_MVM_VENDOR_CMD_TEST_FIPS: request the output of a certain function for - * the specified test vector. The test vector is specified with one of: - * &IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_SHA, - * &IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HMAC, or - * &IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_KDF. Only one test vector shall be - * specified per test command. - * The result output is sent back in &IWL_MVM_VENDOR_ATTR_FIPS_TEST_RESULT - * attribute. In case the function failed to produce an output for the - * requested test vector, &IWL_MVM_VENDOR_ATTR_FIPS_TEST_RESULT is not set. - * @IWL_MVM_VENDOR_CMD_CSI_EVENT: CSI event, use as a command to enable unicast - * reporting to the calling socket - * @IWL_MVM_VENDOR_CMD_ADD_PASN_STA: add a PASN station for and initiator or - * responder based on the interface type. &IWL_MVM_VENDOR_ATTR_ADDR - * specifies the station's mac address. &IWL_MVM_VENDOR_ATTR_STA_TK and - * &IWL_MVM_VENDOR_ATTR_STA_CIPHER specify the cipher suite and key to use - * for PMF for this station. &IWL_MVM_VENDOR_ATTR_STA_HLTK specifies the - * HLTK for secure LTF bits generation. - * @IWL_MVM_VENDOR_CMD_REMOVE_PASN_STA: remove the PASN station with the mac - * address specified with &IWL_MVM_VENDOR_ATTR_ADDR. * @IWL_MVM_VENDOR_CMD_GET_CSME_CONN_INFO: reports CSME connection info. - * @IWL_MVM_VENDOR_CMD_HOST_GET_OWNERSHIP: host ask for ownership on the device. + * @IWL_MVM_VENDOR_CMD_HOST_GET_OWNERSHIP: asks for ownership on the device. + * This is useful when the CSME firmware owns the device and the kernel + * wants to use it. In case the CSME firmware has no connection active the + * kernel will manage on its own to get ownership of the device. + * When the CSME firmware has an active connection, the user space + * involvement is required. The kernel will assert the RFKILL signal with + * the "device not owned" reason so that nobody can touch the device. Then + * the user space can run the following flow to be able to get connected + * to the very same AP the CSME firmware is currently connected to: + * + * 1) The user space (NetworkManager) boots and sees that the device is + * in RFKILL because the host doesn't own the device + * 2) The user space asks the kernel what AP the CSME firmware is + * connected to (with %IWL_MVM_VENDOR_CMD_GET_CSME_CONN_INFO) + * 3) The user space checks if it has a profile that matches the reply + * from the CSME firmware + * 4) The user space installs a network to the wpa_supplicant with a + * specific BSSID and a specific frequency + * 5) The user space prevents any type of full scan + * 6) The user space asks iwlmei to request ownership on the device (with + * this command) + * 7) iwlmei requests ownership from the CSME firmware + * 8) The CSME firmware grants ownership + * 9) iwlmei tells iwlwifi to lift the RFKILL + * 10) RFKILL OFF is reported to user space + * 11) The host boots the device, loads the firwmare, and connects to a + * specific BSSID without scanning including IP as fast as it can + * 12) The host reports to the CSME firmware that there is a connection + * 13) The TCP connection is preserved and the host has connectivity + * * @IWL_MVM_VENDOR_CMD_ROAMING_FORBIDDEN_EVENT: notifies if roaming is allowed. - * contains a &IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN and a - * &IWL_MVM_VENDOR_ATTR_VIF_ADDR attribute. - * @IWL_MVM_VENDOR_CMD_PPAG_GET_TABLE: retrieves the PPAG table. - * Contains a &IWL_MVM_VENDOR_ATTR_PPAG_TABLE and a - * &IWL_MVM_VENDOR_ATTR_PPAG_NUM_SUB_BANDS attribute. - * @IWL_MVM_VENDOR_CMD_SAR_GET_TABLE: retrieves the full SAR table. - * Contains a &IWL_MVM_VENDOR_ATTR_SAR_TABLE and a - * &IWL_MVM_VENDOR_ATTR_SAR_VER attributes. - * @IWL_MVM_VENDOR_CMD_GEO_SAR_GET_TABLE: retrieves the full GEO SAR table. - * Contains a &IWL_MVM_VENDOR_ATTR_SAR_TABLE and a - * &IWL_MVM_VENDOR_ATTR_GEO_SAR_VER attributes. - * @IWL_MVM_VENDOR_CMD_SGOM_GET_TABLE: retrieves the full SGOM table. - * Contains a &IWL_MVM_VENDOR_ATTR_SGOM_TABLE attributes. - * @IWL_MVM_VENDOR_CMD_RFIM_SET_TABLE: Set the RFIM (RF interference mitigation) - * table - * @IWL_MVM_VENDOR_CMD_RFIM_GET_TABLE: Retrieve the RFIM table - * @IWL_MVM_VENDOR_CMD_RFIM_GET_CAPA: Retrieve RFIM capabilities - * @IWL_MVM_VENDOR_CMD_RFIM_SET_CNVI_MASTER: Set CNVI is master or not + * It contains a &IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN and a + * &IWL_MVM_VENDOR_ATTR_VIF_ADDR attributes. */ enum iwl_mvm_vendor_cmd { - IWL_MVM_VENDOR_CMD_SET_LOW_LATENCY = 0x00, - IWL_MVM_VENDOR_CMD_GET_LOW_LATENCY = 0x01, - /* 0x2 is deprecated */ - IWL_MVM_VENDOR_CMD_LTE_STATE = 0x03, - IWL_MVM_VENDOR_CMD_LTE_COEX_CONFIG_INFO = 0x04, - IWL_MVM_VENDOR_CMD_LTE_COEX_DYNAMIC_INFO = 0x05, - IWL_MVM_VENDOR_CMD_LTE_COEX_SPS_INFO = 0x06, - IWL_MVM_VENDOR_CMD_LTE_COEX_WIFI_RPRTD_CHAN = 0x07, - IWL_MVM_VENDOR_CMD_SET_COUNTRY = 0x08, - IWL_MVM_VENDOR_CMD_PROXY_FRAME_FILTERING = 0x09, - IWL_MVM_VENDOR_CMD_TDLS_PEER_CACHE_ADD = 0x0a, - IWL_MVM_VENDOR_CMD_TDLS_PEER_CACHE_DEL = 0x0b, - IWL_MVM_VENDOR_CMD_TDLS_PEER_CACHE_QUERY = 0x0c, - IWL_MVM_VENDOR_CMD_SET_NIC_TXPOWER_LIMIT = 0x0d, - IWL_MVM_VENDOR_CMD_OPPPS_WA = 0x0e, - IWL_MVM_VENDOR_CMD_GSCAN_GET_CAPABILITIES = 0x0f, - IWL_MVM_VENDOR_CMD_GSCAN_START = 0x10, - IWL_MVM_VENDOR_CMD_GSCAN_STOP = 0x11, - IWL_MVM_VENDOR_CMD_GSCAN_RESULTS_EVENT = 0x12, - IWL_MVM_VENDOR_CMD_GSCAN_SET_BSSID_HOTLIST = 0x13, - IWL_MVM_VENDOR_CMD_GSCAN_SET_SIGNIFICANT_CHANGE = 0x14, - IWL_MVM_VENDOR_CMD_GSCAN_HOTLIST_CHANGE_EVENT = 0x15, - IWL_MVM_VENDOR_CMD_GSCAN_SIGNIFICANT_CHANGE_EVENT = 0x16, - IWL_MVM_VENDOR_CMD_RXFILTER = 0x17, - IWL_MVM_VENDOR_CMD_GSCAN_BEACON_EVENT = 0x18, - IWL_MVM_VENDOR_CMD_DBG_COLLECT = 0x19, - IWL_MVM_VENDOR_CMD_NAN_FAW_CONF = 0x1a, - /* 0x1b is deprecated */ - IWL_MVM_VENDOR_CMD_SET_SAR_PROFILE = 0x1c, - IWL_MVM_VENDOR_CMD_GET_SAR_PROFILE_INFO = 0x1d, - IWL_MVM_VENDOR_CMD_NEIGHBOR_REPORT_REQUEST = 0x1e, - IWL_MVM_VENDOR_CMD_NEIGHBOR_REPORT_RESPONSE = 0x1f, - IWL_MVM_VENDOR_CMD_GET_SAR_GEO_PROFILE = 0x20, - IWL_MVM_VENDOR_CMD_TEST_FIPS = 0x21, - /* 0x22 is reserved */ - /* 0x23 is reserved */ - IWL_MVM_VENDOR_CMD_CSI_EVENT = 0x24, - IWL_MVM_VENDOR_CMD_ADD_PASN_STA = 0x25, - IWL_MVM_VENDOR_CMD_REMOVE_PASN_STA = 0x26, - IWL_MVM_VENDOR_CMD_RFIM_SET_TABLE = 0x27, - IWL_MVM_VENDOR_CMD_RFIM_GET_TABLE = 0x28, - IWL_MVM_VENDOR_CMD_RFIM_GET_CAPA = 0x29, - /* 0x2a is deprecated */ - /* 0x2b is deprecated */ - /* 0x2c is deprecated */ IWL_MVM_VENDOR_CMD_GET_CSME_CONN_INFO = 0x2d, IWL_MVM_VENDOR_CMD_HOST_GET_OWNERSHIP = 0x30, IWL_MVM_VENDOR_CMD_ROAMING_FORBIDDEN_EVENT = 0x32, - IWL_MVM_VENDOR_CMD_PPAG_GET_TABLE = 0x33, - IWL_MVM_VENDOR_CMD_SAR_GET_TABLE = 0x34, - IWL_MVM_VENDOR_CMD_GEO_SAR_GET_TABLE = 0x35, - IWL_MVM_VENDOR_CMD_SGOM_GET_TABLE = 0x36, - IWL_MVM_VENDOR_CMD_RFIM_SET_CNVI_MASTER = 0x37, - IWL_MVM_VENDOR_CMD_GET_FW_VERSION = 0x41, - IWL_MVM_VENDOR_CMD_GET_DRV_VERSION = 0x42, -}; - -/** - * enum iwl_mvm_vendor_gscan_report_mode - gscan scan results report modes - * @IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_FULL: report that scan results are - * available only when the scan results buffer reaches the report - * threshold. The report threshold is set for each bucket. - * @IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_EACH_SCAN: report that scan results are - * available when scanning of this bucket is complete. - * @IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_FULL_RESULTS: forward scan results - * (beacons/probe responses) in real time to userspace. - * @IWL_MVM_VENDOR_GSCAN_REPORT_HISTORY_RESERVED: reserved. - * @IWL_MVM_VENDOR_GSCAN_REPORT_NO_BATCH: do not fill scan history buffer. - * @NUM_IWL_MVM_VENDOR_GSCAN_REPORT: number of report mode attributes. - * - * Note that these must match the firmware API. - */ -enum iwl_mvm_vendor_gscan_report_mode { - IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_FULL, - IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_EACH_SCAN, - IWL_MVM_VENDOR_GSCAN_REPORT_BUFFER_FULL_RESULTS, - IWL_MVM_VENDOR_GSCAN_REPORT_HISTORY_RESERVED, - IWL_MVM_VENDOR_GSCAN_REPORT_NO_BATCH, - NUM_IWL_MVM_VENDOR_GSCAN_REPORT, -}; - -/** - * enum iwl_mvm_vendor_gscan_channel_spec - gscan channel specification - * @IWL_MVM_VENDOR_CHANNEL_SPEC_INVALID: attribute number 0 is reserved - * @IWL_MVM_VENDOR_CHANNEL_SPEC_CHANNEL: channel number - * @IWL_MVM_VENDOR_CHANNEL_SPEC_DWELL_TIME: u16 attribute specifying dwell - * time on this channel. - * @IWL_MVM_VENDOR_CHANNEL_SPEC_PASSIVE: flag attribute. If set, passive - * scan should be performed on this channel. - * @NUM_IWL_MVM_VENDOR_CHANNEL_SPEC: number of channel spec attributes. - * @MAX_IWL_MVM_VENDOR_CHANNEL_SPEC: highest channel spec attribute number. - */ -enum iwl_mvm_vendor_gscan_channel_spec { - IWL_MVM_VENDOR_CHANNEL_SPEC_INVALID, - IWL_MVM_VENDOR_CHANNEL_SPEC_CHANNEL, - IWL_MVM_VENDOR_CHANNEL_SPEC_DWELL_TIME, - IWL_MVM_VENDOR_CHANNEL_SPEC_PASSIVE, - NUM_IWL_MVM_VENDOR_CHANNEL_SPEC, - MAX_IWL_MVM_VENDOR_CHANNEL_SPEC = - NUM_IWL_MVM_VENDOR_CHANNEL_SPEC - 1, -}; - -/** - * enum iwl_mvm_vendor_gscan_bucket_spec - gscan bucket specification - * @IWL_MVM_VENDOR_BUCKET_SPEC_INVALID: attribute number 0 is reserved - * @IWL_MVM_VENDOR_BUCKET_SPEC_INDEX: bucket index - * @IWL_MVM_VENDOR_BUCKET_SPEC_BAND: band to scan as specified in - * &enum iwl_gscan_band. When not set, the channel list is used. - * @IWL_MVM_VENDOR_BUCKET_SPEC_PERIOD: interval between this bucket scans, - * in msecs. - * @IWL_MVM_VENDOR_BUCKET_SPEC_REPORT_MODE: when to report scan results. - * Available modes are specified in &enum iwl_mvm_vendor_report_mode. - * @IWL_MVM_VENDOR_BUCKET_SPEC_CHANNELS: array of channels to scan for this - * bucket. Each channel is specified with a nested attribute of - * %IWL_MVM_VENDOR_CHANNEL_SPEC. This channel list is used when - * %IWL_MVM_VENDOR_BUCKET_SPEC_BAND is set to - * %IWL_MVM_VENDOR_BAND_UNSPECIFIED. - * @IWL_MVM_VENDOR_BUCKET_SPEC_MAX_PERIOD: maximum scan interval. If it's - * non zero or different than period, then this bucket is an exponential - * back off bucket and the scan period will grow exponentially. - * @IWL_MVM_VENDOR_BUCKET_SPEC_EXPONENT: for exponential back off bucket, - * scan period calculation should be done according to the following: - * new_period = old_period * exponent - * @IWL_MVM_VENDOR_BUCKET_SPEC_STEP_CNT: for exponential back off bucket: - * number of scans to perform at a given period and until the exponent - * is applied. - * @NUM_IWL_MVM_VENDOR_BUCKET_SPEC: number of bucket spec attributes. - * @MAX_IWL_MVM_VENDOR_BUCKET_SPEC: highest bucket spec attribute number. - */ -enum iwl_mvm_vendor_gscan_bucket_spec { - IWL_MVM_VENDOR_BUCKET_SPEC_INVALID, - IWL_MVM_VENDOR_BUCKET_SPEC_INDEX, - IWL_MVM_VENDOR_BUCKET_SPEC_BAND, - IWL_MVM_VENDOR_BUCKET_SPEC_PERIOD, - IWL_MVM_VENDOR_BUCKET_SPEC_REPORT_MODE, - IWL_MVM_VENDOR_BUCKET_SPEC_CHANNELS, - IWL_MVM_VENDOR_BUCKET_SPEC_MAX_PERIOD, - IWL_MVM_VENDOR_BUCKET_SPEC_EXPONENT, - IWL_MVM_VENDOR_BUCKET_SPEC_STEP_CNT, - NUM_IWL_MVM_VENDOR_BUCKET_SPEC, - MAX_IWL_MVM_VENDOR_BUCKET_SPEC = - NUM_IWL_MVM_VENDOR_BUCKET_SPEC - 1, -}; - -/** - * enum iwl_mvm_vendor_results_event_type - scan results available event type - * @IWL_MVM_VENDOR_RESULTS_NOTIF_BUFFER_FULL: scan results available was - * reported because scan results buffer has reached the report threshold. - * @IWL_MVM_VENDOR_RESULTS_NOTIF_BUCKET_END: scan results available was reported - * because scan of a bucket was completed. - * @NUM_IWL_VENDOR_RESULTS_NOTIF_EVENT_TYPE: number of defined gscan results - * notification event types. - * - * Note that these must match the firmware API. - */ -enum iwl_mvm_vendor_results_event_type { - IWL_MVM_VENDOR_RESULTS_NOTIF_BUFFER_FULL, - IWL_MVM_VENDOR_RESULTS_NOTIF_BUCKET_END, - NUM_IWL_VENDOR_RESULTS_NOTIF_EVENT_TYPE, -}; - -/** - * enum iwl_mvm_vendor_gscan_result - gscan scan result - * @IWL_MVM_VENDOR_GSCAN_RESULT_INVALID: attribute number 0 is reserved. - * @IWL_MVM_VENDOR_GSCAN_RESULT_TIMESTAMP: time since boot (in usecs) when - * the result was retrieved. - * @IWL_MVM_VENDOR_GSCAN_RESULT_SSID: SSID. - * @IWL_MVM_VENDOR_GSCAN_RESULT_BSSID: BSSID of the BSS (6 octets). - * @IWL_MVM_VENDOR_GSCAN_RESULT_CHANNEL: channel frequency in MHz. - * @IWL_MVM_VENDOR_GSCAN_RESULT_RSSI: signal strength in dB. - * @IWL_MVM_VENDOR_GSCAN_RESULT_FRAME: the whole beacon/probe response - * frame data including the header. - * @IWL_MVM_VENDOR_GSCAN_RESULT_BEACON_PERIOD: period advertised in the beacon. - * @IWL_MVM_VENDOR_GSCAN_RESULT_CAPABILITY: capabilities advertised in the - * beacon / probe response. - * @IWL_MVM_VENDOR_GSCAN_RESULT_PAD: used for padding, ignore - * @NUM_IWL_MVM_VENDOR_GSCAN_RESULT: number of scan result attributes. - * @MAX_IWL_MVM_VENDOR_GSCAN_RESULT: highest scan result attribute number. - */ -enum iwl_mvm_vendor_gscan_result { - IWL_MVM_VENDOR_GSCAN_RESULT_INVALID, - IWL_MVM_VENDOR_GSCAN_RESULT_TIMESTAMP, - IWL_MVM_VENDOR_GSCAN_RESULT_SSID, - IWL_MVM_VENDOR_GSCAN_RESULT_BSSID, - IWL_MVM_VENDOR_GSCAN_RESULT_CHANNEL, - IWL_MVM_VENDOR_GSCAN_RESULT_RSSI, - IWL_MVM_VENDOR_GSCAN_RESULT_FRAME, - IWL_MVM_VENDOR_GSCAN_RESULT_BEACON_PERIOD, - IWL_MVM_VENDOR_GSCAN_RESULT_CAPABILITY, - IWL_MVM_VENDOR_GSCAN_RESULT_PAD, - NUM_IWL_MVM_VENDOR_GSCAN_RESULT, - MAX_IWL_MVM_VENDOR_GSCAN_RESULT = - NUM_IWL_MVM_VENDOR_GSCAN_RESULT - 1, -}; - -/** - * enum iwl_mvm_vendor_gscan_cached_scan_res - gscan cached scan result - * @IWL_MVM_VENDOR_GSCAN_CACHED_RES_INVALID: attribute number 0 is reserved. - * @IWL_MVM_VENDOR_GSCAN_CACHED_RES_SCAN_ID: unique ID for this cached result. - * @IWL_MVM_VENDOR_GSCAN_CACHED_RES_FLAGS: additional information about this - * scan iteration. - * @IWL_MVM_VENDOR_GSCAN_CACHED_RES_APS: APs reported in this scan iteration. - * @NUM_IWL_MVM_VENDOR_GSCAN_CACHED_RES: number of scan result attributes. - * @MAX_IWL_MVM_VENDOR_GSCAN_CACHED_RES: highest scan result attribute number. - */ -enum iwl_mvm_vendor_gscan_cached_scan_res { - IWL_MVM_VENDOR_GSCAN_CACHED_RES_INVALID, - IWL_MVM_VENDOR_GSCAN_CACHED_RES_SCAN_ID, - IWL_MVM_VENDOR_GSCAN_CACHED_RES_FLAGS, - IWL_MVM_VENDOR_GSCAN_CACHED_RES_APS, - NUM_IWL_MVM_VENDOR_GSCAN_CACHED_RES, - MAX_IWL_MVM_VENDOR_GSCAN_CACHED_RES = - NUM_IWL_MVM_VENDOR_GSCAN_CACHED_RES - 1, -}; - -/** - * enum iwl_mvm_vendor_ap_threshold_param - parameters for tracking AP's RSSI - * @IWL_MVM_VENDOR_AP_THRESHOLD_PARAM_INVALID: attribute number 0 is reserved. - * @IWL_MVM_VENDOR_AP_BSSID: BSSID of the BSS (6 octets) - * @IWL_MVM_VENDOR_AP_LOW_RSSI_THRESHOLD: low RSSI threshold. in dB. - * @IWL_MVM_VENDOR_AP_HIGH_RSSI_THRESHOLD: high RSSI threshold. in dB. - * @NUM_IWL_MVM_VENDOR_GSCAN_AP_THRESHOLD_PARAM: number of ap threshold param - * attributes. - * @MAX_IWL_MVM_VENDOR_GSCAN_AP_THRESHOLD_PARAM: highest ap threshold param - * attribute number. - */ -enum iwl_mvm_vendor_ap_threshold_param { - IWL_MVM_VENDOR_AP_THRESHOLD_PARAM_INVALID, - IWL_MVM_VENDOR_AP_BSSID, - IWL_MVM_VENDOR_AP_LOW_RSSI_THRESHOLD, - IWL_MVM_VENDOR_AP_HIGH_RSSI_THRESHOLD, - NUM_IWL_MVM_VENDOR_GSCAN_AP_THRESHOLD_PARAM, - MAX_IWL_MVM_VENDOR_GSCAN_AP_THRESHOLD_PARAM = - NUM_IWL_MVM_VENDOR_GSCAN_AP_THRESHOLD_PARAM - 1, -}; - -/** - * enum iwl_mvm_vendor_hotlist_ap_status - whether an AP was found or lost - * @IWL_MVM_VENDOR_HOTLIST_AP_FOUND: beacon from this AP was received with RSSI - * above the configured high threshold. - * @IWL_MVM_VENDOR_HOTLIST_AP_LOST: beacon from this AP was received with RSSI - * below the configured low threshold. - * @NUM_IWL_MVM_VENDOR_HOTLIST_AP_STATUS: number of defined AP statuses. - * - * Note that these must match the firmware API. - */ -enum iwl_mvm_vendor_hotlist_ap_status { - IWL_MVM_VENDOR_HOTLIST_AP_FOUND, - IWL_MVM_VENDOR_HOTLIST_AP_LOST, - NUM_IWL_MVM_VENDOR_HOTLIST_AP_STATUS, -}; - -/** - * enum iwl_mvm_vendor_significant_change_result - significant change result - * @IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_INVALID: attribute number 0 is reserved - * @IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_CHANNEL: channel number of the reported - * AP. - * @IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_BSSID: BSSID. - * @IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RSSI_HISTORY: array of RSSI samples for - * the reported AP. in dB. - * @NUM_IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RESULT: number of significant change - * attriutes. - * @MAX_IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RESULT: highest significant change - * result attribute number. - */ -enum iwl_mvm_vendor_significant_change_result { - IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_INVALID, - IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_CHANNEL, - IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_BSSID, - IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RSSI_HISTORY, - NUM_IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RESULT, - MAX_IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RESULT = - NUM_IWL_MVM_VENDOR_SIGNIFICANT_CHANGE_RESULT - 1, -}; - -/** - * enum iwl_mvm_vendor_rxfilter_flags - the type of request rxfilter - * - * @IWL_MVM_VENDOR_RXFILTER_UNICAST: control unicast Rx filter - * @IWL_MVM_VENDOR_RXFILTER_MCAST4: control IPv4 multicast Rx filter - * @IWL_MVM_VENDOR_RXFILTER_MCAST6: control IPv4 multicast Rx filter - * @IWL_MVM_VENDOR_RXFILTER_EINVAL: no Rx filter command was set - * - */ -enum iwl_mvm_vendor_rxfilter_flags { - IWL_MVM_VENDOR_RXFILTER_UNICAST = 1 << 0, - IWL_MVM_VENDOR_RXFILTER_MCAST4 = 1 << 2, - IWL_MVM_VENDOR_RXFILTER_MCAST6 = 1 << 3, - IWL_MVM_VENDOR_RXFILTER_EINVAL = 1 << 7, -}; - -/** - * enum iwl_mvm_vendor_rxfilter_op - the operation associated with a filter - * - * @IWL_MVM_VENDOR_RXFILTER_OP_PASS: pass frames matching the filter - * @IWL_MVM_VENDOR_RXFILTER_OP_DROP: drop frames matching the filter - */ -enum iwl_mvm_vendor_rxfilter_op { - IWL_MVM_VENDOR_RXFILTER_OP_PASS, - IWL_MVM_VENDOR_RXFILTER_OP_DROP, -}; - -/* - * enum iwl_mvm_vendor_nr_chan_width - channel width definitions - * - * The values in this enum correspond to the values defined in - * IEEE802.11-2016, table 9-153. - */ -enum iwl_mvm_vendor_nr_chan_width { - IWL_MVM_VENDOR_CHAN_WIDTH_20, - IWL_MVM_VENDOR_CHAN_WIDTH_40, - IWL_MVM_VENDOR_CHAN_WIDTH_80, - IWL_MVM_VENDOR_CHAN_WIDTH_160, - IWL_MVM_VENDOR_CHAN_WIDTH_80P80, -}; - -/* - * enum iwl_mvm_vendor_phy_type - neighbor report phy types - * - * The values in this enum correspond to the values defined in - * IEEE802.11-2016, Annex C. - */ -enum iwl_mvm_vendor_phy_type { - IWL_MVM_VENDOR_PHY_TYPE_UNSPECIFIED, - IWL_MVM_VENDOR_PHY_TYPE_DSSS = 2, - IWL_MVM_VENDOR_PHY_TYPE_OFDM = 4, - IWL_MVM_VENDOR_PHY_TYPE_HRDSSS = 5, - IWL_MVM_VENDOR_PHY_TYPE_ERP = 6, - IWL_MVM_VENDOR_PHY_TYPE_HT = 7, - IWL_MVM_VENDOR_PHY_TYPE_DMG = 8, - IWL_MVM_VENDOR_PHY_TYPE_VHT = 9, - IWL_MVM_VENDOR_PHY_TYPE_TVHT = 10, -}; - -/** - * enum iwl_mvm_vendor_neighbor_report - Neighbor report for one AP - * - * @__IWL_MVM_VENDOR_NEIGHBOR_INVALID: attribute number 0 is reserved - * @IWL_MVM_VENDOR_NEIGHBOR_BSSID: the BSSID of the neighbor AP. - * @IWL_MVM_VENDOR_NEIGHBOR_BSSID_INFO: the BSSID information field as - * defined in IEEE802.11-2016, figure 9-296 (u32) - * @IWL_MVM_VENDOR_NEIGHBOR_OPERATING_CLASS: the operating class of the - * neighbor AP (u8) - * @IWL_MVM_VENDOR_NEIGHBOR_CHANNEL: the primary channel number of the - * neighbor AP (u8) - * @IWL_MVM_VENDOR_NEIGHBOR_PHY_TYPE: the phy type of the neighbor AP - * as specified in &enum iwl_mvm_vendor_phy_type (u8) - * @IWL_MVM_VENDOR_NEIGHBOR_CHANNEL_WIDTH: u32 attribute containing one of the - * values of &enum iwl_mvm_vendor_nr_chan_width, describing the - * channel width. - * @IWL_MVM_VENDOR_NEIGHBOR_CENTER_FREQ_IDX_0: Center frequency of the first - * part of the channel, used for anything but 20 MHz bandwidth. - * @IWL_MVM_VENDOR_NEIGHBOR_CENTER_FREQ_IDX_1: Center frequency of the second - * part of the channel, used only for 80+80 MHz bandwidth. - * @IWL_MVM_VENDOR_NEIGHBOR_LCI: the LCI info of the neighbor AP. Optional. - * Binary attribute. - * @IWL_MVM_VENDOR_NEIGHBOR_CIVIC: the CIVIC info of the neighbor AP. Optional. - * Binary attribute. - * @NUM_IWL_MVM_VENDOR_NEIGHBOR_REPORT: num of neighbor report attributes - * @MAX_IWL_MVM_VENDOR_NEIGHBOR_REPORT: highest neighbor report attribute - * number. - */ -enum iwl_mvm_vendor_neighbor_report { - __IWL_MVM_VENDOR_NEIGHBOR_INVALID, - IWL_MVM_VENDOR_NEIGHBOR_BSSID, - IWL_MVM_VENDOR_NEIGHBOR_BSSID_INFO, - IWL_MVM_VENDOR_NEIGHBOR_OPERATING_CLASS, - IWL_MVM_VENDOR_NEIGHBOR_CHANNEL, - IWL_MVM_VENDOR_NEIGHBOR_PHY_TYPE, - IWL_MVM_VENDOR_NEIGHBOR_CHANNEL_WIDTH, - IWL_MVM_VENDOR_NEIGHBOR_CENTER_FREQ_IDX_0, - IWL_MVM_VENDOR_NEIGHBOR_CENTER_FREQ_IDX_1, - IWL_MVM_VENDOR_NEIGHBOR_LCI, - IWL_MVM_VENDOR_NEIGHBOR_CIVIC, - - NUM_IWL_MVM_VENDOR_NEIGHBOR_REPORT, - MAX_IWL_MVM_VENDOR_NEIGHBOR_REPORT = - NUM_IWL_MVM_VENDOR_NEIGHBOR_REPORT - 1, -}; - -/** - * enum iwl_vendor_sar_per_chain_geo_table - per chain tx power table - * - * @IWL_VENDOR_SAR_GEO_INVALID: attribute number 0 is reserved. - * @IWL_VENDOR_SAR_GEO_CHAIN_A_OFFSET: allowed offset for chain a (u8). - * @IWL_VENDOR_SAR_GEO_CHAIN_B_OFFSET: allowed offset for chain b (u8). - * @IWL_VENDOR_SAR_GEO_MAX_TXP: maximum allowed tx power (u8). - */ -enum iwl_vendor_sar_per_chain_geo_table { - IWL_VENDOR_SAR_GEO_INVALID, - IWL_VENDOR_SAR_GEO_CHAIN_A_OFFSET, - IWL_VENDOR_SAR_GEO_CHAIN_B_OFFSET, - IWL_VENDOR_SAR_GEO_MAX_TXP, -}; - -/** - * enum iwl_vendor_fips_test_vector_sha_type - SHA types for FIPS tests - * - * @IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE_SHA1: SHA1 - * @IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE_SHA256: SHA256 - * @IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE_SHA384: SHA384 - */ -enum iwl_vendor_fips_test_vector_sha_type { - IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE_SHA1, - IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE_SHA256, - IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE_SHA384, -}; - -/** - * enum iwl_vendor_fips_test_vector_sha - test vector for SHA tests - * - * @IWL_VENDOR_FIPS_TEST_VECTOR_SHA_INVALID: attribute number 0 is reserved. - * @IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE: which SHA function to use. One of - * &enum iwl_vendor_fips_test_vector_sha_type. - * @IWL_VENDOR_FIPS_TEST_VECTOR_SHA_MSG: the message to generate the digest for. - * @NUM_IWL_VENDOR_FIPS_TEST_VECTOR_SHA: number of SHA test vector attributes. - * @MAX_IWL_VENDOR_FIPS_TEST_VECTOR_SHA: highest SHA test vector attribute. - */ -enum iwl_vendor_fips_test_vector_sha { - IWL_VENDOR_FIPS_TEST_VECTOR_SHA_INVALID, - IWL_VENDOR_FIPS_TEST_VECTOR_SHA_TYPE, - IWL_VENDOR_FIPS_TEST_VECTOR_SHA_MSG, - - NUM_IWL_VENDOR_FIPS_TEST_VECTOR_SHA, - MAX_IWL_VENDOR_FIPS_TEST_VECTOR_SHA = - NUM_IWL_VENDOR_FIPS_TEST_VECTOR_SHA - 1, -}; - -/** - * enum iwl_vendor_fips_test_vector_hmac_kdf - test vector for HMAC/KDF tests - * - * @IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_INVALID: attribute number 0 is - * reserved. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_TYPE: which HMAC-SHA function to use. - * One of &enum iwl_vendor_fips_test_vector_sha_type. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_KEY: key input for the HMAC-SHA - * function. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_MSG: the message to generate the - * digest for. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_RES_LEN: the requested digest length in - * bytes. - * @NUM_IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF: number of HMAC/KDF test vector - * attributes. - * @MAX_IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF: highest HMAC/KDF test vector - * attribute. - */ -enum iwl_vendor_fips_test_vector_hmac_kdf { - IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_INVALID, - IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_TYPE, - IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_KEY, - IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_MSG, - IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF_RES_LEN, - - NUM_IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF, - MAX_IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF = - NUM_IWL_VENDOR_FIPS_TEST_VECTOR_HMAC_KDF - 1, -}; - -/** - * enum iwl_vendor_fips_test_vector_flags - flags for FIPS HW test vector - * @IWL_VENDOR_FIPS_TEST_VECTOR_FLAGS_ENCRYPT: if this is set, the requested - * operation is encryption. Otherwise the requested operation is - * decryption. - */ -enum iwl_vendor_fips_test_vector_flags { - IWL_VENDOR_FIPS_TEST_VECTOR_FLAGS_ENCRYPT = 1, -}; - -/** - * enum iwl_vendor_fips_test_vector_hw - test vector for FIPS HW tests - * @IWL_VENDOR_FIPS_TEST_VECTOR_HW_INVALID: attribute number 0 is reserved. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HW_KEY: the key to use for - * encryption/decryption. For CCM, only 128-bit key is supported. - * For AES and GCM, 128-bit and 256-bit keys are supported. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HW_NONCE: for CCM use 13 bytes, for GCM only 12 - * bytes. Not valid for AES tests. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HW_AAD: adata. maximum supported size is 30 - * bytes. Not valid for AES tests. - * @IWL_VENDOR_FIPS_TEST_VECTOR_HW_PAYLOAD: for encryption, this is the - * plaintext to encrypt. For decryption, this is the ciphertext + MIC (8 - * bytes of MIC for CCM, 16 bytes for GCM). - * @IWL_VENDOR_FIPS_TEST_VECTOR_HW_FLAGS: &enum iwl_vendor_fips_test_vector_flags. - * @NUM_IWL_VENDOR_FIPS_TEST_VECTOR_HW: number of hw test vector attributes. - * @MAX_IWL_VENDOR_FIPS_TEST_VECTOR_HW: highest hw test vector attribute. - */ -enum iwl_vendor_fips_test_vector_hw { - IWL_VENDOR_FIPS_TEST_VECTOR_HW_INVALID, - IWL_VENDOR_FIPS_TEST_VECTOR_HW_KEY, - IWL_VENDOR_FIPS_TEST_VECTOR_HW_NONCE, - IWL_VENDOR_FIPS_TEST_VECTOR_HW_AAD, - IWL_VENDOR_FIPS_TEST_VECTOR_HW_PAYLOAD, - IWL_VENDOR_FIPS_TEST_VECTOR_HW_FLAGS, - - NUM_IWL_VENDOR_FIPS_TEST_VECTOR_HW, - MAX_IWL_VENDOR_FIPS_TEST_VECTOR_HW = - NUM_IWL_VENDOR_FIPS_TEST_VECTOR_HW - 1, + IWL_MVM_VENDOR_CMD_GET_FW_VERSION = 0x33, + IWL_MVM_VENDOR_CMD_GET_DRV_VERSION = 0x34, }; enum iwl_vendor_auth_akm_mode { IWL_VENDOR_AUTH_OPEN, - IWL_VENDOR_AUTH_SHARED, - IWL_VENDOR_AUTH_WPA = 0x3, - IWL_VENDOR_AUTH_WPA_PSK, IWL_VENDOR_AUTH_RSNA = 0x6, IWL_VENDOR_AUTH_RSNA_PSK, IWL_VENDOR_AUTH_SAE = 0x9, @@ -631,142 +66,11 @@ enum iwl_vendor_auth_akm_mode { /** * enum iwl_mvm_vendor_attr - attributes used in vendor commands * @__IWL_MVM_VENDOR_ATTR_INVALID: attribute 0 is invalid - * @IWL_MVM_VENDOR_ATTR_LOW_LATENCY: low-latency flag attribute * @IWL_MVM_VENDOR_ATTR_VIF_ADDR: interface MAC address - * @IWL_MVM_VENDOR_ATTR_COUNTRY: MCC to set, for regulatory information (u16) - * @IWL_MVM_VENDOR_ATTR_FILTER_ARP_NA: filter gratuitous ARP and unsolicited - * Neighbor Advertisement frames - * @IWL_MVM_VENDOR_ATTR_FILTER_GTK: filter Filtering Frames Encrypted using - * the GTK * @IWL_MVM_VENDOR_ATTR_ADDR: MAC address - * @IWL_MVM_VENDOR_ATTR_TX_BYTES: number of bytes transmitted to peer - * @IWL_MVM_VENDOR_ATTR_RX_BYTES: number of bytes received from peer - * @IWL_MVM_VENDOR_ATTR_TXP_LIMIT_24: TX power limit for 2.4 GHz - * (s32 in units of 1/8 dBm) - * @IWL_MVM_VENDOR_ATTR_TXP_LIMIT_52L: TX power limit for 5.2 GHz low (as 2.4) - * @IWL_MVM_VENDOR_ATTR_TXP_LIMIT_52H: TX power limit for 5.2 GHz high (as 2.4) - * @IWL_MVM_VENDOR_ATTR_OPPPS_WA: wa to pass Sigma test - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SCAN_CACHE_SIZE: scan cache size - * (in bytes) - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SCAN_BUCKETS: maximum number of channel - * buckets - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_AP_CACHE_PER_SCAN: maximum number of AP's - * that can be stored per scan - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_RSSI_SAMPLE_SIZE: number of RSSI samples - * used for averaging RSSI - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SCAN_REPORTING_THRESHOLD: max possible - * report threshold. see %IWL_MVM_VENDOR_ATTR_GSCAN_START_REPORT_THRESHOLD - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_HOTLIST_APS: maximum number of entries for - * hotlist AP's - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SIGNIFICANT_CHANGE_APS: maximum number of - * entries for significant change AP's - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_BSSID_HISTORY_ENTRIES: number of - * BSSID/RSSI entries that the device can hold - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAC_ADDR: mac address to be used on gscan scans - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAC_ADDR_MASK: mac address mask. Bits set to 0 - * will be copied from %IWL_MVM_VENDOR_ATTR_GSCAN_MAC_ADDR. Bits set to 1 - * will be randomized - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_AP_PER_SCAN: number of AP's to store in each - * scan in the BSSID/RSSI history buffer (keep the highest RSSI AP's) - * @IWL_MVM_VENDOR_ATTR_GSCAN_REPORT_THRESHOLD: report that scan results - * are available when buffer is that much full. In percentage. - * @IWL_MVM_VENDOR_ATTR_GSCAN_BUCKET_SPECS: array of bucket specifications for - * this gscan start command. Each bucket spec is a nested attribute of - * &enum iwl_mvm_vendor_gscan_bucket_spec. - * @IWL_MVM_VENDOR_ATTR_GSCAN_RESULTS_EVENT_TYPE: gscan results event type as - * specified in &enum iwl_mvm_vendor_results_event_type. - * @IWL_MVM_VENDOR_ATTR_GSCAN_RESULTS: array of gscan results. Each result is a - * nested attribute of &enum iwl_mvm_vendor_gscan_result. - * @IWL_MVM_VENDOR_ATTR_GSCAN_LOST_AP_SAMPLE_SIZE: number of samples to confirm - * ap loss. - * @IWL_MVM_VENDOR_ATTR_GSCAN_AP_LIST: an array of nested attributes of - * &enum iwl_mvm_vendor_ap_threshold_param. - * @IWL_MVM_VENDOR_ATTR_GSCAN_RSSI_SAMPLE_SIZE: number of samples for averaging - * RSSI - * @IWL_MVM_VENDOR_ATTR_GSCAN_MIN_BREACHING: number of APs breaching threshold - * @IWL_MVM_VENDOR_ATTR_GSCAN_HOTLIST_AP_STATUS: indicates if a reported AP was - * lost or found as specified in &enum iwl_mvm_vendor_hotlist_ap_status. - * @IWL_MVM_VENDOR_ATTR_GSCAN_SIG_CHANGE_RESULTS: array of significant - * change results. Each result is a nested attribute of &enum - * iwl_mvm_vendor_significant_change_result. - * @IWL_MVM_VENDOR_ATTR_RXFILTER: u32 attribute. - * See %iwl_mvm_vendor_rxfilter_flags. - * @IWL_MVM_VENDOR_ATTR_RXFILTER_OP: u32 attribute. - * See %iwl_mvm_vendor_rxfilter_op. - * @IWL_MVM_VENDOR_ATTR_DBG_COLLECT_TRIGGER: description of collect debug data - * trigger. - * @IWL_MVM_VENDOR_ATTR_NAN_FAW_FREQ: u32 attribute. Frequency (in MHz) to be - * used for NAN further availability. - * @IWL_MVM_VENDOR_ATTR_NAN_FAW_SLOTS: u8 attribute. Number of 16TU slots - * the NAN device will be available on it's FAW between DWs. - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_HOTLIST_SSIDS: maximum number of entries for - * hotlist SSID's - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_EPNO_NETWORKS: max number of epno entries - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_EPNO_NETWORKS_BY_SSID: max number of epno - * entries if ssid is specified - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_WHITE_LISTED_SSID: max number of pass - * listed SSIDs - * @IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_BLACK_LISTED_SSID: max number of block - * listed SSIDs - * @IWL_MVM_VENDOR_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz, - * defines the channel together with the attributes - * %IWL_MVM_VENDOR_ATTR_CHANNEL_WIDTH and if needed - * %IWL_MVM_VENDOR_ATTR_CENTER_FREQ1 and - * %IWL_MVM_VENDOR_ATTR_CENTER_FREQ2. - * @IWL_MVM_VENDOR_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the - * values of &enum nl80211_chan_width, describing the channel width. - * See the documentation of the enum for more information. - * @IWL_MVM_VENDOR_ATTR_CENTER_FREQ1: Center frequency of the first part of the - * channel, used for anything but 20 MHz bandwidth. - * @IWL_MVM_VENDOR_ATTR_CENTER_FREQ2: Center frequency of the second part of - * the channel, used only for 80+80 MHz bandwidth. - * @IWL_MVM_VENDOR_ATTR_GSCAN_REPORT_THRESHOLD_NUM: report that scan results - * are available when buffer is that much full. In number of scans. - * @IWL_MVM_VENDOR_ATTR_GSCAN_CACHED_RESULTS: array of gscan cached results. - * Each result is a nested attribute of - * &enum iwl_mvm_vendor_gscan_cached_scan_res. - * @IWL_MVM_VENDOR_ATTR_LAST_MSG: Indicates that this message is the last one - * in the series of messages. (flag) - * @IWL_MVM_VENDOR_ATTR_SAR_CHAIN_A_PROFILE: SAR table idx for chain A. - * This is a u8. - * @IWL_MVM_VENDOR_ATTR_SAR_CHAIN_B_PROFILE: SAR table idx for chain B. - * This is a u8. - * @IWL_MVM_VENDOR_ATTR_SAR_ENABLED_PROFILE_NUM: number of enabled SAR profile - * This is a u8. * @IWL_MVM_VENDOR_ATTR_SSID: SSID (binary attribute, 0..32 octets) - * @IWL_MVM_VENDOR_ATTR_NEIGHBOR_LCI: Flag attribute specifying that the - * neighbor request shall query for LCI information. - * @IWL_MVM_VENDOR_ATTR_NEIGHBOR_CIVIC: Flag attribute specifying that the - * neighbor request shall query for CIVIC information. - * @IWL_MVM_VENDOR_ATTR_NEIGHBOR_REPORT: A list of neighbor APs as received in a - * neighbor report frame. Each AP is a nested attribute of - * &enum iwl_mvm_vendor_neighbor_report. - * @IWL_MVM_VENDOR_ATTR_SAR_GEO_PROFILE: geo profile info. - * see &enum iwl_vendor_sar_per_chain_geo_table. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_SHA: data vector for FIPS SHA test. - * &enum iwl_vendor_fips_test_vector_sha. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HMAC: data vector for FIPS HMAC test. - * &enum iwl_vendor_fips_test_vector_hmac_kdf. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_KDF: data vector for FIPS KDF test. - * &enum iwl_vendor_fips_test_vector_hmac_kdf. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_RESULT: FIPS test result. Contains the - * output of the requested function. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HW_AES: data vector for FIPS AES HW - * test. &enum iwl_vendor_fips_test_vector_hw. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HW_CCM: data vector for FIPS CCM HW - * test. &enum iwl_vendor_fips_test_vector_hw. - * @IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HW_GCM: data vector for FIPS GCM HW - * test. &enum iwl_vendor_fips_test_vector_hw. - * @IWL_MVM_VENDOR_ATTR_CSI_HDR: CSI header - * @IWL_MVM_VENDOR_ATTR_CSI_DATA: CSI data - * @IWL_MVM_VENDOR_ATTR_STA_TK: the TK to use for PMF encryption for the - * station with the mac address specified in &IWL_MVM_VENDOR_ATTR_ADDR. - * @IWL_MVM_VENDOR_ATTR_STA_HLTK: the HLTK to use for secure LTF bits - * generation for the station with the mac address specified in - * &IWL_MVM_VENDOR_ATTR_ADDR. * @IWL_MVM_VENDOR_ATTR_STA_CIPHER: the cipher to use for the station with the * mac address specified in &IWL_MVM_VENDOR_ATTR_ADDR. - * One of WLAN_CIPHER_SUITE_*. * @IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN: u8 attribute. Indicates whether * roaming is forbidden or not. Value 1 means roaming is forbidden, * 0 mean roaming is allowed. @@ -779,152 +83,30 @@ enum iwl_vendor_auth_akm_mode { * collocated AP. Relevant for 6GHz AP info. * @IWL_MVM_VENDOR_ATTR_COLLOC_ADDR: MAC address of a collocated AP. * Relevant for 6GHz AP info. - * @IWL_MVM_VENDOR_ATTR_PPAG_TABLE: nested attribute. Contains a binary - * attribute for each chain, each of them contains the ppag - * values for all sub-bands. - * @IWL_MVM_VENDOR_ATTR_PPAG_NUM_SUB_BANDS: u32 attribute. The number of - * sub-bands that we have in the ppag table. - * @IWL_MVM_VENDOR_ATTR_SAR_TABLE: nested attribute. Contains a nested - * attribute for each profile, each of them contains binary attribute - * for each chain. - * @IWL_MVM_VENDOR_ATTR_SAR_VER: u32 attribute. Contains the SAR table version. - * @IWL_MVM_VENDOR_ATTR_GEO_SAR_TABLE: nested attribute. Contains a - * nested attribute for each profile, each of them contains - * a nested attribute for each band. See &enum - * iwl_vendor_sar_per_chain_geo_table. - * @IWL_MVM_VENDOR_ATTR_GEO_SAR_VER: u32 attribute. Contains the GEO SAR - * table version - * @IWL_MVM_VENDOR_ATTR_SGOM_TABLE: binary attribute. - * @IWL_MVM_VENDOR_ATTR_RFIM_BANDS: RFIM bands - * @IWL_MVM_VENDOR_ATTR_RFIM_CAPA: RFIM capabilities (u16) - * @IWL_MVM_VENDOR_ATTR_RFIM_CHANNELS: RFIM channels - * @IWL_MVM_VENDOR_ATTR_RFIM_FREQ: RFIM frequency (u16) - * @IWL_MVM_VENDOR_ATTR_RFIM_INFO: overall RFIM info (nested) - * @IWL_MVM_VENDOR_ATTR_RFIM_CNVI_MASTER: CNVI master configuration (u32) * @IWL_MVM_VENDOR_ATTR_DRV_VER: string attribute * @IWL_MVM_VENDOR_ATTR_FW_VER: string attribute * * @NUM_IWL_MVM_VENDOR_ATTR: number of vendor attributes * @MAX_IWL_MVM_VENDOR_ATTR: highest vendor attribute number + */ enum iwl_mvm_vendor_attr { __IWL_MVM_VENDOR_ATTR_INVALID = 0x00, - IWL_MVM_VENDOR_ATTR_LOW_LATENCY = 0x01, IWL_MVM_VENDOR_ATTR_VIF_ADDR = 0x02, - /* 0x3 is deprecated */ - /* 0x4 is deprecated */ - /* 0x5 is deprecated */ - /* 0x6 is deprecated */ - IWL_MVM_VENDOR_ATTR_COUNTRY = 0x07, - IWL_MVM_VENDOR_ATTR_FILTER_ARP_NA = 0x08, - IWL_MVM_VENDOR_ATTR_FILTER_GTK = 0x09, IWL_MVM_VENDOR_ATTR_ADDR = 0x0a, - IWL_MVM_VENDOR_ATTR_TX_BYTES = 0x0b, - IWL_MVM_VENDOR_ATTR_RX_BYTES = 0x0c, - IWL_MVM_VENDOR_ATTR_TXP_LIMIT_24 = 0x0d, - IWL_MVM_VENDOR_ATTR_TXP_LIMIT_52L = 0x0e, - IWL_MVM_VENDOR_ATTR_TXP_LIMIT_52H = 0x0f, - IWL_MVM_VENDOR_ATTR_OPPPS_WA = 0x10, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SCAN_CACHE_SIZE = 0x11, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SCAN_BUCKETS = 0x12, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_AP_CACHE_PER_SCAN = 0x13, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_RSSI_SAMPLE_SIZE = 0x14, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SCAN_REPORTING_THRESHOLD = 0x15, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_HOTLIST_APS = 0x16, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_SIGNIFICANT_CHANGE_APS = 0x17, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_BSSID_HISTORY_ENTRIES = 0x18, - IWL_MVM_VENDOR_ATTR_GSCAN_MAC_ADDR = 0x19, - IWL_MVM_VENDOR_ATTR_GSCAN_MAC_ADDR_MASK = 0x1a, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_AP_PER_SCAN = 0x1b, - IWL_MVM_VENDOR_ATTR_GSCAN_REPORT_THRESHOLD = 0x1c, - IWL_MVM_VENDOR_ATTR_GSCAN_BUCKET_SPECS = 0x1d, - IWL_MVM_VENDOR_ATTR_GSCAN_RESULTS_EVENT_TYPE = 0x1e, - IWL_MVM_VENDOR_ATTR_GSCAN_RESULTS = 0x1f, - IWL_MVM_VENDOR_ATTR_GSCAN_LOST_AP_SAMPLE_SIZE = 0x20, - IWL_MVM_VENDOR_ATTR_GSCAN_AP_LIST = 0x21, - IWL_MVM_VENDOR_ATTR_GSCAN_RSSI_SAMPLE_SIZE = 0x22, - IWL_MVM_VENDOR_ATTR_GSCAN_MIN_BREACHING = 0x23, - IWL_MVM_VENDOR_ATTR_GSCAN_HOTLIST_AP_STATUS = 0x24, - IWL_MVM_VENDOR_ATTR_GSCAN_SIG_CHANGE_RESULTS = 0x25, - IWL_MVM_VENDOR_ATTR_RXFILTER = 0x26, - IWL_MVM_VENDOR_ATTR_RXFILTER_OP = 0x27, - IWL_MVM_VENDOR_ATTR_DBG_COLLECT_TRIGGER = 0x28, - IWL_MVM_VENDOR_ATTR_NAN_FAW_FREQ = 0x29, - IWL_MVM_VENDOR_ATTR_NAN_FAW_SLOTS = 0x2a, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_HOTLIST_SSIDS = 0x2b, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_EPNO_NETWORKS = 0x2c, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_EPNO_NETWORKS_BY_SSID = 0x2d, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_WHITE_LISTED_SSID = 0x2e, - IWL_MVM_VENDOR_ATTR_GSCAN_MAX_NUM_BLACK_LISTED_SSID = 0x2f, - IWL_MVM_VENDOR_ATTR_WIPHY_FREQ = 0x30, - IWL_MVM_VENDOR_ATTR_CHANNEL_WIDTH = 0x31, - IWL_MVM_VENDOR_ATTR_CENTER_FREQ1 = 0x32, - IWL_MVM_VENDOR_ATTR_CENTER_FREQ2 = 0x33, - /* 0x34 is deprecated */ - /* 0x35 is deprecated */ - /* 0x36 is deprecated */ - IWL_MVM_VENDOR_ATTR_GSCAN_REPORT_THRESHOLD_NUM = 0x37, - IWL_MVM_VENDOR_ATTR_GSCAN_CACHED_RESULTS = 0x38, - IWL_MVM_VENDOR_ATTR_LAST_MSG = 0x39, - IWL_MVM_VENDOR_ATTR_SAR_CHAIN_A_PROFILE = 0x3a, - IWL_MVM_VENDOR_ATTR_SAR_CHAIN_B_PROFILE = 0x3b, - IWL_MVM_VENDOR_ATTR_SAR_ENABLED_PROFILE_NUM = 0x3c, IWL_MVM_VENDOR_ATTR_SSID = 0x3d, - IWL_MVM_VENDOR_ATTR_NEIGHBOR_LCI = 0x3e, - IWL_MVM_VENDOR_ATTR_NEIGHBOR_CIVIC = 0x3f, - IWL_MVM_VENDOR_ATTR_NEIGHBOR_REPORT = 0x40, - IWL_MVM_VENDOR_ATTR_SAR_GEO_PROFILE = 0x41, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_SHA = 0x42, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HMAC = 0x43, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_KDF = 0x44, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_RESULT = 0x45, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HW_AES = 0x46, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HW_CCM = 0x47, - IWL_MVM_VENDOR_ATTR_FIPS_TEST_VECTOR_HW_GCM = 0x48, - /* 0x49 - 0x4c are reserved */ - IWL_MVM_VENDOR_ATTR_CSI_HDR = 0x4d, - IWL_MVM_VENDOR_ATTR_CSI_DATA = 0x4e, - IWL_MVM_VENDOR_ATTR_STA_TK = 0x4f, - IWL_MVM_VENDOR_ATTR_STA_HLTK = 0x50, IWL_MVM_VENDOR_ATTR_STA_CIPHER = 0x51, - IWL_MVM_VENDOR_ATTR_RFIM_INFO = 0x52, - IWL_MVM_VENDOR_ATTR_RFIM_FREQ = 0x53, - IWL_MVM_VENDOR_ATTR_RFIM_CHANNELS = 0x54, - IWL_MVM_VENDOR_ATTR_RFIM_BANDS = 0x55, - IWL_MVM_VENDOR_ATTR_RFIM_CAPA = 0x56, - /* 0x57 is deprecated */ - /* 0x58 is deprecated */ - /* 0x59 is deprecated */ - /* 0x5a is deprecated */ - /* 0x5b is deprecated */ - /* 0x5c is deprecated */ - /* 0x5d is deprecated */ - /* 0x5e is deprecated */ - /* 0x5f is deprecated */ - /* 0x60 is deprecated */ - /* 0x61 is deprecated */ - /* 0x62 is deprecated */ - /* 0x63 is deprecated */ IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN = 0x64, IWL_MVM_VENDOR_ATTR_AUTH_MODE = 0x65, IWL_MVM_VENDOR_ATTR_CHANNEL_NUM = 0x66, IWL_MVM_VENDOR_ATTR_BAND = 0x69, IWL_MVM_VENDOR_ATTR_COLLOC_CHANNEL = 0x70, IWL_MVM_VENDOR_ATTR_COLLOC_ADDR = 0x71, - IWL_MVM_VENDOR_ATTR_PPAG_TABLE = 0x72, - IWL_MVM_VENDOR_ATTR_PPAG_NUM_SUB_BANDS = 0x73, - IWL_MVM_VENDOR_ATTR_SAR_TABLE = 0x74, - IWL_MVM_VENDOR_ATTR_SAR_VER = 0x75, - IWL_MVM_VENDOR_ATTR_GEO_SAR_TABLE = 0x76, - IWL_MVM_VENDOR_ATTR_GEO_SAR_VER = 0x77, - IWL_MVM_VENDOR_ATTR_SGOM_TABLE = 0x78, - IWL_MVM_VENDOR_ATTR_RFIM_CNVI_MASTER = 0x79, - IWL_MVM_VENDOR_ATTR_FW_VER = 0x81, - IWL_MVM_VENDOR_ATTR_DRV_VER = 0x82, + IWL_MVM_VENDOR_ATTR_FW_VER = 0x72, + IWL_MVM_VENDOR_ATTR_DRV_VER = 0x73, NUM_IWL_MVM_VENDOR_ATTR, MAX_IWL_MVM_VENDOR_ATTR = NUM_IWL_MVM_VENDOR_ATTR - 1, }; -#define IWL_MVM_VENDOR_FILTER_ARP_NA IWL_MVM_VENDOR_ATTR_FILTER_ARP_NA -#define IWL_MVM_VENDOR_FILTER_GTK IWL_MVM_VENDOR_ATTR_FILTER_GTK -#endif /* __VENDOR_CMD_H__ */ + +#endif /* __VENDOR_CMD_INTEL_H__ */ diff --git a/kernel/lts2024-android/kernel-headers/linux/nl80211.h b/kernel/lts2024-android/kernel-headers/linux/nl80211.h index 2fe6e2de..fe9fc80a 100644 --- a/kernel/lts2024-android/kernel-headers/linux/nl80211.h +++ b/kernel/lts2024-android/kernel-headers/linux/nl80211.h @@ -72,7 +72,7 @@ * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows: * - a setup station entry is added, not yet authorized, without any rate - * or capability information, this just exists to avoid race conditions + * or capability information; this just exists to avoid race conditions * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid * to add rate and capability information to the station and at the same * time mark it authorized. @@ -87,7 +87,7 @@ * DOC: Frame transmission/registration support * * Frame transmission and registration support exists to allow userspace - * management entities such as wpa_supplicant react to management frames + * management entities such as wpa_supplicant to react to management frames * that are not being handled by the kernel. This includes, for example, * certain classes of action frames that cannot be handled in the kernel * for various reasons. @@ -113,7 +113,7 @@ * * Frame transmission allows userspace to send for example the required * responses to action frames. It is subject to some sanity checking, - * but many frames can be transmitted. When a frame was transmitted, its + * but many frames can be transmitted. When a frame is transmitted, its * status is indicated to the sending socket. * * For more technical details, see the corresponding command descriptions @@ -123,7 +123,7 @@ /** * DOC: Virtual interface / concurrency capabilities * - * Some devices are able to operate with virtual MACs, they can have + * Some devices are able to operate with virtual MACs; they can have * more than one virtual interface. The capability handling for this * is a bit complex though, as there may be a number of restrictions * on the types of concurrency that are supported. @@ -135,7 +135,7 @@ * Once concurrency is desired, more attributes must be observed: * To start with, since some interface types are purely managed in * software, like the AP-VLAN type in mac80211 for example, there's - * an additional list of these, they can be added at any time and + * an additional list of these; they can be added at any time and * are only restricted by some semantic restrictions (e.g. AP-VLAN * cannot be added without a corresponding AP interface). This list * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute. @@ -164,17 +164,17 @@ * Packet coalesce feature helps to reduce number of received interrupts * to host by buffering these packets in firmware/hardware for some * predefined time. Received interrupt will be generated when one of the - * following events occur. + * following events occurs. * a) Expiration of hardware timer whose expiration time is set to maximum * coalescing delay of matching coalesce rule. - * b) Coalescing buffer in hardware reaches it's limit. + * b) Coalescing buffer in hardware reaches its limit. * c) Packet doesn't match any of the configured coalesce rules. * * User needs to configure following parameters for creating a coalesce * rule. * a) Maximum coalescing delay * b) List of packet patterns which needs to be matched - * c) Condition for coalescence. pattern 'match' or 'no match' + * c) Condition for coalescence: pattern 'match' or 'no match' * Multiple such rules can be created. */ @@ -213,7 +213,7 @@ /** * DOC: FILS shared key authentication offload * - * FILS shared key authentication offload can be advertized by drivers by + * FILS shared key authentication offload can be advertised by drivers by * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support * FILS shared key authentication offload should be able to construct the * authentication and association frames for FILS shared key authentication and @@ -239,7 +239,7 @@ * The PMKSA can be maintained in userspace persistently so that it can be used * later after reboots or wifi turn off/on also. * - * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS + * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertised by a FILS * capable AP supporting PMK caching. It specifies the scope within which the * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based @@ -290,12 +290,12 @@ * If the configuration needs to be applied for specific peer then the MAC * address of the peer needs to be passed in %NL80211_ATTR_MAC, otherwise the * configuration will be applied for all the connected peers in the vif except - * any peers that have peer specific configuration for the TID by default; if - * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer specific values + * any peers that have peer-specific configuration for the TID by default; if + * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer-specific values * will be overwritten. * - * All this configuration is valid only for STA's current connection - * i.e. the configuration will be reset to default when the STA connects back + * All this configuration is valid only for STA's current connection, + * i.e., the configuration will be reset to default when the STA connects back * after disconnection/roaming, and this configuration will be cleared when * the interface goes down. */ @@ -326,7 +326,7 @@ /** * DOC: Multi-Link Operation * - * In Multi-Link Operation, a connection between to MLDs utilizes multiple + * In Multi-Link Operation, a connection between two MLDs utilizes multiple * links. To use this in nl80211, various commands and responses now need * to or will include the new %NL80211_ATTR_MLO_LINKS attribute. * Additionally, various commands that need to operate on a specific link @@ -413,8 +413,8 @@ * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, - * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, - * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, + * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHER_SUITES_PAIRWISE, + * %NL80211_ATTR_CIPHER_SUITE_GROUP, %NL80211_ATTR_WPA_VERSIONS, * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT, * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS. @@ -438,23 +438,19 @@ * %NL80211_ATTR_REASON_CODE can optionally be used to specify which type * of disconnection indication should be sent to the station * (Deauthentication or Disassociation frame and reason code for that - * frame). + * frame). %NL80211_ATTR_MLO_LINK_ID can be used optionally to remove + * stations connected and using at least that link as one of its links. * * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to - * destination %NL80211_ATTR_MAC on the interface identified by - * %NL80211_ATTR_IFINDEX. + * destination %NL80211_ATTR_MAC on the interface identified by + * %NL80211_ATTR_IFINDEX. * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to - * destination %NL80211_ATTR_MAC on the interface identified by - * %NL80211_ATTR_IFINDEX. + * destination %NL80211_ATTR_MAC on the interface identified by + * %NL80211_ATTR_IFINDEX. * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP. * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by * %NL80211_ATTR_MAC. - * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the - * interface identified by %NL80211_ATTR_IFINDEX. - * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC - * or, if no MAC address given, all mesh paths, on the interface identified - * by %NL80211_ATTR_IFINDEX. * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by * %NL80211_ATTR_IFINDEX. * @@ -475,15 +471,15 @@ * after being queried by the kernel. CRDA replies by sending a regulatory * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our * current alpha2 if it found a match. It also provides - * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each - * regulatory rule is a nested set of attributes given by - * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and - * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by - * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and - * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. + * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each + * regulatory rule is a nested set of attributes given by + * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and + * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by + * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and + * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain - * to the specified ISO/IEC 3166-1 alpha2 country code. The core will - * store this as a valid request and then query userspace for it. + * to the specified ISO/IEC 3166-1 alpha2 country code. The core will + * store this as a valid request and then query userspace for it. * * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the * interface identified by %NL80211_ATTR_IFINDEX @@ -521,7 +517,7 @@ * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified, * scheduled scan will run in an infinite loop with the specified interval. - * These attributes are mutually exculsive, + * These attributes are mutually exclusive, * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if * NL80211_ATTR_SCHED_SCAN_PLANS is defined. * If for some reason scheduled scan is aborted by the driver, all scan @@ -552,7 +548,7 @@ * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface * is brought down while a scheduled scan was running. * - * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation + * @NL80211_CMD_GET_SURVEY: get survey results, e.g. channel occupation * or noise level * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) @@ -563,40 +559,41 @@ * using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID, * %NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS * authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier - * advertized by a FILS capable AP identifying the scope of PMKSA in an + * advertised by a FILS capable AP identifying the scope of PMKSA in an * ESS. * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID, * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS - * authentication. + * authentication. Additionally in case of SAE offload and OWE offloads + * PMKSA entry can be deleted using %NL80211_ATTR_SSID. * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. * * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain - * has been changed and provides details of the request information - * that caused the change such as who initiated the regulatory request - * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx - * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if - * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or - * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain - * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is - * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on - * to (%NL80211_ATTR_REG_ALPHA2). + * has been changed and provides details of the request information + * that caused the change such as who initiated the regulatory request + * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx + * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if + * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or + * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain + * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is + * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on + * to (%NL80211_ATTR_REG_ALPHA2). * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon - * has been found while world roaming thus enabling active scan or - * any mode of operation that initiates TX (beacons) on a channel - * where we would not have been able to do either before. As an example - * if you are world roaming (regulatory domain set to world or if your - * driver is using a custom world roaming regulatory domain) and while - * doing a passive scan on the 5 GHz band you find an AP there (if not - * on a DFS channel) you will now be able to actively scan for that AP - * or use AP mode on your card on that same channel. Note that this will - * never be used for channels 1-11 on the 2 GHz band as they are always - * enabled world wide. This beacon hint is only sent if your device had - * either disabled active scanning or beaconing on a channel. We send to - * userspace the wiphy on which we removed a restriction from - * (%NL80211_ATTR_WIPHY) and the channel on which this occurred - * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) - * the beacon hint was processed. + * has been found while world roaming thus enabling active scan or + * any mode of operation that initiates TX (beacons) on a channel + * where we would not have been able to do either before. As an example + * if you are world roaming (regulatory domain set to world or if your + * driver is using a custom world roaming regulatory domain) and while + * doing a passive scan on the 5 GHz band you find an AP there (if not + * on a DFS channel) you will now be able to actively scan for that AP + * or use AP mode on your card on that same channel. Note that this will + * never be used for channels 1-11 on the 2 GHz band as they are always + * enabled world wide. This beacon hint is only sent if your device had + * either disabled active scanning or beaconing on a channel. We send to + * userspace the wiphy on which we removed a restriction from + * (%NL80211_ATTR_WIPHY) and the channel on which this occurred + * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) + * the beacon hint was processed. * * @NL80211_CMD_AUTHENTICATE: authentication request and notification. * This command is used both as a command (request to authenticate) and @@ -607,7 +604,7 @@ * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify * the SSID (mainly for association, but is included in authentication * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ + - * %NL80211_ATTR_WIPHY_FREQ_OFFSET is used to specify the frequence of the + * %NL80211_ATTR_WIPHY_FREQ_OFFSET is used to specify the frequency of the * channel in MHz. %NL80211_ATTR_AUTH_TYPE is used to specify the * authentication type. %NL80211_ATTR_IE is used to define IEs * (VendorSpecificInfo, but also including RSN IE and FT IEs) to be added @@ -816,7 +813,7 @@ * reached. * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ * and the attributes determining channel width) the given interface - * (identifed by %NL80211_ATTR_IFINDEX) shall operate on. + * (identified by %NL80211_ATTR_IFINDEX) shall operate on. * In case multiple channels are supported by the device, the mechanism * with which it switches channels is implementation-defined. * When a monitor interface is given, it can only switch channel while @@ -888,7 +885,7 @@ * inform userspace of the new replay counter. * * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace - * of PMKSA caching dandidates. + * of PMKSA caching candidates. * * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). * In addition, this can be used as an event to request userspace to take @@ -924,7 +921,7 @@ * * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface * by sending a null data frame to it and reporting when the frame is - * acknowleged. This is used to allow timing out inactive clients. Uses + * acknowledged. This is used to allow timing out inactive clients. Uses * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a * direct reply with an %NL80211_ATTR_COOKIE that is later used to match * up the event with the request. The event includes the same data and @@ -1118,7 +1115,7 @@ * current configuration is not changed. If it is present but * set to zero, the configuration is changed to don't-care * (i.e. the device can decide what to do). - * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported. + * @NL80211_CMD_NAN_MATCH: Notification sent when a match is reported. * This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and * %NL80211_ATTR_COOKIE. * @@ -1135,11 +1132,15 @@ * @NL80211_CMD_DEL_PMK: For offloaded 4-Way handshake, delete the previously * configured PMK for the authenticator address identified by * %NL80211_ATTR_MAC. - * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates an 802.1X FT roam was - * completed successfully. Drivers that support 4 way handshake offload - * should send this event after indicating 802.1X FT assocation with - * %NL80211_CMD_ROAM. If the 4 way handshake failed %NL80211_CMD_DISCONNECT - * should be indicated instead. + * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates port is authorized and + * open for regular data traffic. For STA/P2P-client, this event is sent + * with AP MAC address and for AP/P2P-GO, the event carries the STA/P2P- + * client MAC address. + * Drivers that support 4 way handshake offload should send this event for + * STA/P2P-client after successful 4-way HS or after 802.1X FT following + * NL80211_CMD_CONNECT or NL80211_CMD_ROAM. Drivers using AP/P2P-GO 4-way + * handshake offload should send this event on successful completion of + * 4-way handshake with the peer (STA/P2P-client). * @NL80211_CMD_CONTROL_PORT_FRAME: Control Port (e.g. PAE) frame TX request * and RX notification. This command is used both as a request to transmit * a control port frame and as a notification that a control port frame @@ -1328,6 +1329,9 @@ * %NL80211_ATTR_MLO_TTLM_ULINK attributes are used to specify the * TID to Link mapping for downlink/uplink traffic. * + * @NL80211_CMD_ASSOC_MLO_RECONF: For a non-AP MLD station, request to + * add/remove links to/from the association. + * * @NL80211_CMD_MAX: highest used command number * @__NL80211_CMD_AFTER_LAST: internal use */ @@ -1585,6 +1589,8 @@ enum nl80211_commands { NL80211_CMD_SET_TID_TO_LINK_MAPPING, + NL80211_CMD_ASSOC_MLO_RECONF, + /* add new commands above here */ /* used to define NL80211_CMD_MAX below */ @@ -1709,21 +1715,21 @@ enum nl80211_commands { * (see &enum nl80211_plink_action). * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path - * info given for %NL80211_CMD_GET_MPATH, nested attribute described at + * info given for %NL80211_CMD_GET_MPATH, nested attribute described at * &enum nl80211_mpath_info. * * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of * &enum nl80211_mntr_flags. * * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the - * current regulatory domain should be set to or is already set to. - * For example, 'CR', for Costa Rica. This attribute is used by the kernel - * to query the CRDA to retrieve one regulatory domain. This attribute can - * also be used by userspace to query the kernel for the currently set - * regulatory domain. We chose an alpha2 as that is also used by the - * IEEE-802.11 country information element to identify a country. - * Users can also simply ask the wireless core to set regulatory domain - * to a specific alpha2. + * current regulatory domain should be set to or is already set to. + * For example, 'CR', for Costa Rica. This attribute is used by the kernel + * to query the CRDA to retrieve one regulatory domain. This attribute can + * also be used by userspace to query the kernel for the currently set + * regulatory domain. We chose an alpha2 as that is also used by the + * IEEE-802.11 country information element to identify a country. + * Users can also simply ask the wireless core to set regulatory domain + * to a specific alpha2. * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory * rules. * @@ -1766,9 +1772,9 @@ enum nl80211_commands { * @NL80211_ATTR_BSS: scan result BSS * * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain - * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* + * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently - * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) + * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) * * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies * an array of command numbers (i.e. a mapping index to command number) @@ -1787,15 +1793,15 @@ enum nl80211_commands { * a u32 * * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change - * due to considerations from a beacon hint. This attribute reflects - * the state of the channel _before_ the beacon hint processing. This - * attributes consists of a nested attribute containing - * NL80211_FREQUENCY_ATTR_* + * due to considerations from a beacon hint. This attribute reflects + * the state of the channel _before_ the beacon hint processing. This + * attributes consists of a nested attribute containing + * NL80211_FREQUENCY_ATTR_* * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change - * due to considerations from a beacon hint. This attribute reflects - * the state of the channel _after_ the beacon hint processing. This - * attributes consists of a nested attribute containing - * NL80211_FREQUENCY_ATTR_* + * due to considerations from a beacon hint. This attribute reflects + * the state of the channel _after_ the beacon hint processing. This + * attributes consists of a nested attribute containing + * NL80211_FREQUENCY_ATTR_* * * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported * cipher suites @@ -1842,7 +1848,7 @@ enum nl80211_commands { * using %CMD_CONTROL_PORT_FRAME. If control port routing over NL80211 is * to be used then userspace must also use the %NL80211_ATTR_SOCKET_OWNER * flag. When used with %NL80211_ATTR_CONTROL_PORT_NO_PREAUTH, pre-auth - * frames are not forwared over the control port. + * frames are not forwarded over the control port. * * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver. * We recommend using nested, driver-specific attributes within this. @@ -1856,12 +1862,6 @@ enum nl80211_commands { * that protected APs should be used. This is also used with NEW_BEACON to * indicate that the BSS is to use protection. * - * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON - * to indicate which unicast key ciphers will be used with the connection - * (an array of u32). - * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to - * indicate which group key cipher will be used with the connection (a - * u32). * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to * indicate which WPA version(s) the AP we want to associate with is using * (a u32 with flags from &enum nl80211_wpa_versions). @@ -1892,6 +1892,7 @@ enum nl80211_commands { * with %NL80211_KEY_* sub-attributes * * @NL80211_ATTR_PID: Process ID of a network namespace. + * @NL80211_ATTR_NETNS_FD: File descriptor of a network namespace. * * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for * dumps. This number increases whenever the object list being @@ -1946,6 +1947,7 @@ enum nl80211_commands { * * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was * acknowledged by the recipient. + * @NL80211_ATTR_ACK_SIGNAL: Station's ack signal strength (s32) * * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values. * @@ -1979,10 +1981,10 @@ enum nl80211_commands { * bit. Depending on which antennas are selected in the bitmap, 802.11n * drivers can derive which chainmasks to use (if all antennas belonging to * a particular chain are disabled this chain should be disabled) and if - * a chain has diversity antennas wether diversity should be used or not. + * a chain has diversity antennas whether diversity should be used or not. * HT capabilities (STBC, TX Beamforming, Antenna selection) can be * derived from the available chains after applying the antenna mask. - * Non-802.11n drivers can derive wether to use diversity or not. + * Non-802.11n drivers can derive whether to use diversity or not. * Drivers may reject configurations or RX/TX mask combinations they cannot * support by returning -EINVAL. * @@ -2055,6 +2057,10 @@ enum nl80211_commands { * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported * interface combinations. In each nested item, it contains attributes * defined in &enum nl80211_if_combination_attrs. + * If the wiphy uses multiple radios (@NL80211_ATTR_WIPHY_RADIOS is set), + * this attribute contains the interface combinations of the first radio. + * See @NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS for the global wiphy + * combinations for the sum of all radios. * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that * are managed in software: interfaces of these types aren't subject to @@ -2143,6 +2149,9 @@ enum nl80211_commands { * @NL80211_ATTR_DISABLE_HE: Force HE capable interfaces to disable * this feature during association. This is a flag attribute. * Currently only supported in mac80211 drivers. + * @NL80211_ATTR_DISABLE_EHT: Force EHT capable interfaces to disable + * this feature during association. This is a flag attribute. + * Currently only supported in mac80211 drivers. * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the * ATTR_HT_CAPABILITY to which attention should be paid. * Currently, only mac80211 NICs support this feature. @@ -2152,6 +2161,12 @@ enum nl80211_commands { * All values are treated as suggestions and may be ignored * by the driver as required. The actual values may be seen in * the station debugfs ht_caps file. + * @NL80211_ATTR_VHT_CAPABILITY_MASK: Specify which bits of the + * ATTR_VHT_CAPABILITY to which attention should be paid. + * Currently, only mac80211 NICs support this feature. + * All values are treated as suggestions and may be ignored + * by the driver as required. The actual values may be seen in + * the station debugfs vht_caps file. * * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country * abides to when initiating radiation on DFS channels. A country maps @@ -2410,7 +2425,7 @@ enum nl80211_commands { * scheduled scan is started. Or the delay before a WoWLAN * net-detect scan is started, counting from the moment the * system is suspended. This value is a u32, in seconds. - + * * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device * is operating in an indoor environment. * @@ -2552,7 +2567,7 @@ enum nl80211_commands { * from successful FILS authentication and is used with * %NL80211_CMD_CONNECT. * - * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP + * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertised by a FILS AP * identifying the scope of PMKSAs. This is used with * @NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA. * @@ -2706,11 +2721,13 @@ enum nl80211_commands { * * @NL80211_ATTR_FILS_DISCOVERY: Optional parameter to configure FILS * discovery. It is a nested attribute, see - * &enum nl80211_fils_discovery_attributes. + * &enum nl80211_fils_discovery_attributes. Userspace should pass an empty + * nested attribute to disable this feature and delete the templates. * * @NL80211_ATTR_UNSOL_BCAST_PROBE_RESP: Optional parameter to configure * unsolicited broadcast probe response. It is a nested attribute, see - * &enum nl80211_unsol_bcast_probe_resp_attributes. + * &enum nl80211_unsol_bcast_probe_resp_attributes. Userspace should pass an empty + * nested attribute to disable this feature and delete the templates. * * @NL80211_ATTR_S1G_CAPABILITY: S1G Capability information element (from * association request when used with NL80211_CMD_NEW_STATION) @@ -2844,6 +2861,30 @@ enum nl80211_commands { * mapping is as defined in section 9.4.2.314 (TID-To-Link Mapping element) * in Draft P802.11be_D4.0. * + * @NL80211_ATTR_ASSOC_SPP_AMSDU: flag attribute used with + * %NL80211_CMD_ASSOCIATE indicating the SPP A-MSDUs + * are used on this connection + * + * @NL80211_ATTR_WIPHY_RADIOS: Nested attribute describing physical radios + * belonging to this wiphy. See &enum nl80211_wiphy_radio_attrs. + * + * @NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS: Nested attribute listing the + * supported interface combinations for all radios combined. In each + * nested item, it contains attributes defined in + * &enum nl80211_if_combination_attrs. + * + * @NL80211_ATTR_VIF_RADIO_MASK: Bitmask of allowed radios (u32). + * A value of 0 means all radios. + * + * @NL80211_ATTR_SUPPORTED_SELECTORS: supported selectors, array of + * supported selectors as defined by IEEE 802.11 7.3.2.2 but without the + * length restriction (at most %NL80211_MAX_SUPP_SELECTORS). + * This can be used to provide a list of selectors that are implemented + * by the supplicant. If not given, support for SAE_H2E is assumed. + * + * @NL80211_ATTR_MLO_RECONF_REM_LINKS: (u16) A bitmask of the links requested + * to be removed from the MLO association. + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -3387,6 +3428,17 @@ enum nl80211_attrs { NL80211_ATTR_MLO_TTLM_DLINK, NL80211_ATTR_MLO_TTLM_ULINK, + NL80211_ATTR_ASSOC_SPP_AMSDU, + + NL80211_ATTR_WIPHY_RADIOS, + NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS, + + NL80211_ATTR_VIF_RADIO_MASK, + + NL80211_ATTR_SUPPORTED_SELECTORS, + + NL80211_ATTR_MLO_RECONF_REM_LINKS, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, @@ -3431,6 +3483,7 @@ enum nl80211_attrs { #define NL80211_WIPHY_NAME_MAXLEN 64 #define NL80211_MAX_SUPP_RATES 32 +#define NL80211_MAX_SUPP_SELECTORS 128 #define NL80211_MAX_SUPP_HT_RATES 77 #define NL80211_MAX_SUPP_REG_RULES 128 #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 @@ -3527,6 +3580,7 @@ enum nl80211_iftype { * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a * previously added station into associated state + * @NL80211_STA_FLAG_SPP_AMSDU: station supports SPP A-MSDUs * @NL80211_STA_FLAG_MAX: highest station flag number currently defined * @__NL80211_STA_FLAG_AFTER_LAST: internal use */ @@ -3539,6 +3593,7 @@ enum nl80211_sta_flags { NL80211_STA_FLAG_AUTHENTICATED, NL80211_STA_FLAG_TDLS_PEER, NL80211_STA_FLAG_ASSOCIATED, + NL80211_STA_FLAG_SPP_AMSDU, /* keep last */ __NL80211_STA_FLAG_AFTER_LAST, @@ -3549,7 +3604,7 @@ enum nl80211_sta_flags { * enum nl80211_sta_p2p_ps_status - station support of P2P PS * * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism - * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism + * @NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism * @NUM_NL80211_P2P_PS_STATUS: number of values */ enum nl80211_sta_p2p_ps_status { @@ -3587,9 +3642,9 @@ enum nl80211_he_gi { /** * enum nl80211_he_ltf - HE long training field - * @NL80211_RATE_INFO_HE_1xLTF: 3.2 usec - * @NL80211_RATE_INFO_HE_2xLTF: 6.4 usec - * @NL80211_RATE_INFO_HE_4xLTF: 12.8 usec + * @NL80211_RATE_INFO_HE_1XLTF: 3.2 usec + * @NL80211_RATE_INFO_HE_2XLTF: 6.4 usec + * @NL80211_RATE_INFO_HE_4XLTF: 12.8 usec */ enum nl80211_he_ltf { NL80211_RATE_INFO_HE_1XLTF, @@ -3704,7 +3759,7 @@ enum nl80211_eht_ru_alloc { * @NL80211_RATE_INFO_HE_GI: HE guard interval identifier * (u8, see &enum nl80211_he_gi) * @NL80211_RATE_INFO_HE_DCM: HE DCM value (u8, 0/1) - * @NL80211_RATE_INFO_RU_ALLOC: HE RU allocation, if not present then + * @NL80211_RATE_INFO_HE_RU_ALLOC: HE RU allocation, if not present then * non-OFDMA was used (u8, see &enum nl80211_he_ru_alloc) * @NL80211_RATE_INFO_320_MHZ_WIDTH: 320 MHz bitrate * @NL80211_RATE_INFO_EHT_MCS: EHT MCS index (u8, 0-15) @@ -3807,7 +3862,7 @@ enum nl80211_sta_bss_param { * (u64, to this station) * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute - * containing info as possible, see &enum nl80211_rate_info + * containing info as possible, see &enum nl80211_rate_info * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs) * (u32, from this station) * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs) @@ -3836,8 +3891,8 @@ enum nl80211_sta_bss_param { * Contains a nested array of signal strength attributes (u8, dBm) * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. - * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the - * 802.11 header (u32, kbps) + * @NL80211_STA_INFO_EXPECTED_THROUGHPUT: expected throughput considering also + * the 802.11 header (u32, kbps) * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons * (u64) * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64) @@ -4023,7 +4078,7 @@ enum nl80211_mpath_flags { * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in - * &enum nl80211_mpath_flags; + * &enum nl80211_mpath_flags; * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries * @NL80211_MPATH_INFO_HOP_COUNT: hop count to destination @@ -4163,7 +4218,7 @@ enum nl80211_band_attr { * @NL80211_WMMR_CW_MAX: Maximum contention window slot. * @NL80211_WMMR_AIFSN: Arbitration Inter Frame Space. * @NL80211_WMMR_TXOP: Maximum allowed tx operation time. - * @nl80211_WMMR_MAX: highest possible wmm rule. + * @NL80211_WMMR_MAX: highest possible wmm rule. * @__NL80211_WMMR_LAST: Internal use. */ enum nl80211_wmm_rule { @@ -4185,15 +4240,16 @@ enum nl80211_wmm_rule { * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current * regulatory domain. * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation - * are permitted on this channel, this includes sending probe - * requests, or modes of operation that require beaconing. + * are permitted on this channel, this includes sending probe + * requests, or modes of operation that require beaconing. + * @__NL80211_FREQUENCY_ATTR_NO_IBSS: obsolete, same as _NO_IR * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory * on this channel in current regulatory domain. * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm * (100 * dBm). * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS * (enum nl80211_dfs_state) - * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long + * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in milliseconds for how long * this channel is in this DFS state. * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this * channel as the control channel @@ -4257,6 +4313,11 @@ enum nl80211_wmm_rule { * not allowed using this channel * @NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT: Client connection to AFC AP * not allowed using this channel + * @NL80211_FREQUENCY_ATTR_CAN_MONITOR: This channel can be used in monitor + * mode despite other (regulatory) restrictions, even if the channel is + * otherwise completely disabled. + * @NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP: This channel can be used for a + * very low power (VLP) AP, despite being NO_IR. * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number * currently defined * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use @@ -4299,6 +4360,8 @@ enum nl80211_frequency_attr { NL80211_FREQUENCY_ATTR_DFS_CONCURRENT, NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT, NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT, + NL80211_FREQUENCY_ATTR_CAN_MONITOR, + NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP, /* keep last */ __NL80211_FREQUENCY_ATTR_AFTER_LAST, @@ -4337,16 +4400,16 @@ enum nl80211_bitrate_attr { }; /** - * enum nl80211_initiator - Indicates the initiator of a reg domain request + * enum nl80211_reg_initiator - Indicates the initiator of a reg domain request * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world - * regulatory domain. + * regulatory domain. * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the - * regulatory domain. + * regulatory domain. * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the - * wireless core it thinks its knows the regulatory domain we should be in. + * wireless core it thinks its knows the regulatory domain we should be in. * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an - * 802.11 country information element with regulatory information it - * thinks we should consider. cfg80211 only processes the country + * 802.11 country information element with regulatory information it + * thinks we should consider. cfg80211 only processes the country * code from the IE, and relies on the regulatory domain information * structure passed by userspace (CRDA) from our wireless-regdb. * If a channel is enabled but the country code indicates it should @@ -4365,11 +4428,11 @@ enum nl80211_reg_initiator { * to a specific country. When this is set you can count on the * ISO / IEC 3166 alpha2 country code being valid. * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory - * domain. + * domain. * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom - * driver specific world regulatory domain. These do not apply system-wide - * and are only applicable to the individual devices which have requested - * them to be applied. + * driver specific world regulatory domain. These do not apply system-wide + * and are only applicable to the individual devices which have requested + * them to be applied. * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product * of an intersection between two regulatory domains -- the previously * set regulatory domain on the system and the last accepted regulatory @@ -4386,21 +4449,21 @@ enum nl80211_reg_type { * enum nl80211_reg_rule_attr - regulatory rule attributes * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional - * considerations for a given frequency range. These are the - * &enum nl80211_reg_rule_flags. + * considerations for a given frequency range. These are the + * &enum nl80211_reg_rule_flags. * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory - * rule in KHz. This is not a center of frequency but an actual regulatory - * band edge. + * rule in KHz. This is not a center of frequency but an actual regulatory + * band edge. * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule - * in KHz. This is not a center a frequency but an actual regulatory - * band edge. + * in KHz. This is not a center a frequency but an actual regulatory + * band edge. * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this * frequency range, in KHz. * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain - * for a given frequency range. The value is in mBi (100 * dBi). - * If you don't have one then don't send this. + * for a given frequency range. The value is in mBi (100 * dBi). + * If you don't have one then don't send this. * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for - * a given frequency range. The value is in mBm (100 * dBm). + * a given frequency range. The value is in mBm (100 * dBm). * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. * If not present or 0 default CAC time will be used. * @NL80211_ATTR_POWER_RULE_PSD: power spectral density (in dBm). @@ -4452,14 +4515,7 @@ enum nl80211_reg_rule_attr { * value as specified by &struct nl80211_bss_select_rssi_adjust. * @NL80211_SCHED_SCAN_MATCH_ATTR_BSSID: BSSID to be used for matching * (this cannot be used together with SSID). - * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Nested attribute that carries the - * band specific minimum rssi thresholds for the bands defined in - * enum nl80211_band. The minimum rssi threshold value(s32) specific to a - * band shall be encapsulated in attribute with type value equals to one - * of the NL80211_BAND_* defined in enum nl80211_band. For example, the - * minimum rssi threshold value for 2.4GHZ band shall be encapsulated - * within an attribute of type NL80211_BAND_2GHZ. And one or more of such - * attributes will be nested within this attribute. + * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Obsolete * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter * attribute number currently defined * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use @@ -4472,7 +4528,7 @@ enum nl80211_sched_scan_match_attr { NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI, NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST, NL80211_SCHED_SCAN_MATCH_ATTR_BSSID, - NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI, + NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI, /* obsolete */ /* keep last */ __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, @@ -4494,8 +4550,9 @@ enum nl80211_sched_scan_match_attr { * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed, - * this includes probe requests or modes of operation that require - * beaconing. + * this includes probe requests or modes of operation that require + * beaconing. + * @__NL80211_RRF_NO_IBSS: obsolete, same as NO_IR * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated * base on contiguous rules and wider channels will be allowed to cross * multiple contiguous/overlapping frequency ranges. @@ -4509,11 +4566,13 @@ enum nl80211_sched_scan_match_attr { * @NL80211_RRF_NO_EHT: EHT operation not allowed * @NL80211_RRF_PSD: Ruleset has power spectral density value * @NL80211_RRF_DFS_CONCURRENT: Operation on this channel is allowed for - peer-to-peer or adhoc communication under the control of a DFS master - which operates on the same channel (FCC-594280 D01 Section B.3). - Should be used together with %NL80211_RRF_DFS only. + * peer-to-peer or adhoc communication under the control of a DFS master + * which operates on the same channel (FCC-594280 D01 Section B.3). + * Should be used together with %NL80211_RRF_DFS only. * @NL80211_RRF_NO_6GHZ_VLP_CLIENT: Client connection to VLP AP not allowed * @NL80211_RRF_NO_6GHZ_AFC_CLIENT: Client connection to AFC AP not allowed + * @NL80211_RRF_ALLOW_6GHZ_VLP_AP: Very low power (VLP) AP can be permitted + * despite NO_IR configuration. */ enum nl80211_reg_rule_flags { NL80211_RRF_NO_OFDM = 1<<0, @@ -4538,6 +4597,7 @@ enum nl80211_reg_rule_flags { NL80211_RRF_DFS_CONCURRENT = 1<<21, NL80211_RRF_NO_6GHZ_VLP_CLIENT = 1<<22, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 1<<23, + NL80211_RRF_ALLOW_6GHZ_VLP_AP = 1<<24, }; #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR @@ -4694,8 +4754,8 @@ enum nl80211_mntr_flags { * alternate between Active and Doze states, but may not wake up * for neighbor's beacons. * - * @__NL80211_MESH_POWER_AFTER_LAST - internal use - * @NL80211_MESH_POWER_MAX - highest possible power save level + * @__NL80211_MESH_POWER_AFTER_LAST: internal use + * @NL80211_MESH_POWER_MAX: highest possible power save level */ enum nl80211_mesh_power_mode { @@ -5543,7 +5603,7 @@ enum nl80211_tx_rate_setting { * (%NL80211_TID_CONFIG_ATTR_TIDS, %NL80211_TID_CONFIG_ATTR_OVERRIDE). * @NL80211_TID_CONFIG_ATTR_PEER_SUPP: same as the previous per-vif one, but * per peer instead. - * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribue, if set indicates + * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribute, if set indicates * that the new configuration overrides all previous peer * configurations, otherwise previous peer specific configurations * should be left untouched. @@ -5715,7 +5775,7 @@ struct nl80211_pattern_support { * "TCP connection wakeup" for more details. This is a nested attribute * containing the exact information for establishing and keeping alive * the TCP connection. - * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the + * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH: For wakeup reporting only, the * wakeup packet was received on the TCP connection * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the * TCP connection was lost or failed to be established @@ -5744,6 +5804,8 @@ struct nl80211_pattern_support { * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one * frequency, it means that the match occurred in more than one * channel. + * @NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC: For wakeup reporting only. + * Wake up happened due to unprotected deauth or disassoc frame in MFP. * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number * @@ -5771,6 +5833,7 @@ enum nl80211_wowlan_triggers { NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, NL80211_WOWLAN_TRIG_NET_DETECT, NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS, + NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC, /* keep last */ NUM_NL80211_WOWLAN_TRIG, @@ -5926,7 +5989,7 @@ enum nl80211_attr_coalesce_rule { /** * enum nl80211_coalesce_condition - coalesce rule conditions - * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns + * @NL80211_COALESCE_CONDITION_MATCH: coalesce Rx packets when patterns * in a rule are matched. * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns * in a rule are not matched. @@ -6025,7 +6088,7 @@ enum nl80211_if_combination_attrs { * enum nl80211_plink_state - state of a mesh peer link finite state machine * * @NL80211_PLINK_LISTEN: initial state, considered the implicit - * state of non existent mesh peer links + * state of non-existent mesh peer links * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to * this mesh peer * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received @@ -6061,7 +6124,7 @@ enum nl80211_plink_state { * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer * @NUM_NL80211_PLINK_ACTIONS: number of possible actions */ -enum plink_actions { +enum nl80211_plink_action { NL80211_PLINK_ACTION_NO_ACTION, NL80211_PLINK_ACTION_OPEN, NL80211_PLINK_ACTION_BLOCK, @@ -6318,7 +6381,7 @@ enum nl80211_feature_flags { * request to use RRM (see %NL80211_ATTR_USE_RRM) with * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set * the ASSOC_REQ_USE_RRM flag in the association request even if - * NL80211_FEATURE_QUIET is not advertized. + * NL80211_FEATURE_QUIET is not advertised. * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air * sniffer which means that it can be configured to hear packets from * certain groups which can be configured by the @@ -6330,13 +6393,15 @@ enum nl80211_feature_flags { * the BSS that the interface that requested the scan is connected to * (if available). * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the - * time the last beacon/probe was received. The time is the TSF of the - * BSS that the interface that requested the scan is connected to - * (if available). + * time the last beacon/probe was received. For a non-MLO connection, the + * time is the TSF of the BSS that the interface that requested the scan is + * connected to (if available). For an MLO connection, the time is the TSF + * of the BSS corresponding with link ID specified in the scan request (if + * specified). * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of * channel dwell time. * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate - * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate. + * configuration (AP/mesh), supporting a legacy (non-HT/VHT) rate. * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate * configuration (AP/mesh) with HT rates. * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate @@ -6386,6 +6451,7 @@ enum nl80211_feature_flags { * receiving control port frames over nl80211 instead of the netdevice. * @NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT: This driver/device supports * (average) ACK signal strength reporting. + * @NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: Backward-compatible ID * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate * TXQs. * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the @@ -6410,8 +6476,7 @@ enum nl80211_feature_flags { * @NL80211_EXT_FEATURE_AP_PMKSA_CACHING: Driver/device supports PMKSA caching * (set/del PMKSA operations) in AP mode. * - * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports - * filtering of sched scan results using band specific RSSI thresholds. + * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Obsolete * * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power * to a station. @@ -6520,6 +6585,11 @@ enum nl80211_feature_flags { * DFS master on the same channel as described in FCC-594280 D01 * (Section B.3). This, for example, allows P2P GO and P2P clients to * operate on DFS channels as long as there's a concurrent BSS connection. + * + * @NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT: The driver has support for SPP + * (signaling and payload protected) A-MSDUs and this shall be advertised + * in the RSNXE. + * * @NUM_NL80211_EXT_FEATURES: number of extended features. * @MAX_NL80211_EXT_FEATURES: highest extended feature index. */ @@ -6561,7 +6631,7 @@ enum nl80211_ext_feature_index { NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER, NL80211_EXT_FEATURE_AIRTIME_FAIRNESS, NL80211_EXT_FEATURE_AP_PMKSA_CACHING, - NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, + NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, /* obsolete */ NL80211_EXT_FEATURE_EXT_KEY_ID, NL80211_EXT_FEATURE_STA_TX_PWR, NL80211_EXT_FEATURE_SAE_OFFLOAD, @@ -6594,6 +6664,7 @@ enum nl80211_ext_feature_index { NL80211_EXT_FEATURE_OWE_OFFLOAD, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP, NL80211_EXT_FEATURE_DFS_CONCURRENT, + NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT, /* add new features before the definition below */ NUM_NL80211_EXT_FEATURES, @@ -6678,7 +6749,7 @@ enum nl80211_timeout_reason { * request parameters IE in the probe request * @NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe responses * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE: send probe request frames at - * rate of at least 5.5M. In case non OCE AP is discovered in the channel, + * rate of at least 5.5M. In case non-OCE AP is discovered in the channel, * only the first probe req in the channel will be sent in high rate. * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: allow probe request * tx deferral (dot11FILSProbeDelay shall be set to 15ms) @@ -6714,7 +6785,7 @@ enum nl80211_timeout_reason { * received on the 2.4/5 GHz channels to actively scan only the 6GHz * channels on which APs are expected to be found. Note that when not set, * the scan logic would scan all 6GHz channels, but since transmission of - * probe requests on non PSC channels is limited, it is highly likely that + * probe requests on non-PSC channels is limited, it is highly likely that * these channels would passively be scanned. Also note that when the flag * is set, in addition to the colocated APs, PSC channels would also be * scanned if the user space has asked for it. @@ -6764,6 +6835,8 @@ enum nl80211_acl_policy { * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and * turn on other antennas after CTS/RTS). + * @__NL80211_SMPS_AFTER_LAST: internal + * @NL80211_SMPS_MAX: highest used enumeration */ enum nl80211_smps_mode { NL80211_SMPS_OFF, @@ -6985,6 +7058,8 @@ enum nl80211_bss_select_attr { * @NL80211_NAN_FUNC_PUBLISH: function is publish * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up + * @__NL80211_NAN_FUNC_TYPE_AFTER_LAST: internal use + * @NL80211_NAN_FUNC_MAX_TYPE: internal use */ enum nl80211_nan_function_type { NL80211_NAN_FUNC_PUBLISH, @@ -7046,7 +7121,7 @@ enum nl80211_nan_func_term_reason { * The instance ID for the follow up Service Discovery Frame. This is u8. * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type * is follow up. This is a u8. - * The requestor instance ID for the follow up Service Discovery Frame. + * The requester instance ID for the follow up Service Discovery Frame. * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the * follow up Service Discovery Frame. This is a binary attribute. * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a @@ -7145,7 +7220,7 @@ enum nl80211_nan_match_attributes { }; /** - * nl80211_external_auth_action - Action to perform with external + * enum nl80211_external_auth_action - Action to perform with external * authentication request. Used by NL80211_ATTR_EXTERNAL_AUTH_ACTION. * @NL80211_EXTERNAL_AUTH_START: Start the authentication. * @NL80211_EXTERNAL_AUTH_ABORT: Abort the ongoing authentication. @@ -7163,7 +7238,7 @@ enum nl80211_external_auth_action { * @NL80211_FTM_RESP_ATTR_LCI: The content of Measurement Report Element * (9.4.2.22 in 802.11-2016) with type 8 - LCI (9.4.2.22.10), * i.e. starting with the measurement token - * @NL80211_FTM_RESP_ATTR_CIVIC: The content of Measurement Report Element + * @NL80211_FTM_RESP_ATTR_CIVICLOC: The content of Measurement Report Element * (9.4.2.22 in 802.11-2016) with type 11 - Civic (Section 9.4.2.22.13), * i.e. starting with the measurement token * @__NL80211_FTM_RESP_ATTR_LAST: Internal @@ -7436,7 +7511,7 @@ enum nl80211_peer_measurement_attrs { * @NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED: flag attribute indicating if * trigger based ranging measurement is supported * @NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED: flag attribute indicating - * if non trigger based ranging measurement is supported + * if non-trigger-based ranging measurement is supported * * @NUM_NL80211_PMSR_FTM_CAPA_ATTR: internal * @NL80211_PMSR_FTM_CAPA_ATTR_MAX: highest attribute number @@ -7490,7 +7565,7 @@ enum nl80211_peer_measurement_ftm_capa { * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based * ranging will be used. - * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non trigger based + * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non-trigger-based * ranging measurement (flag) * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED are * mutually exclusive. @@ -7568,7 +7643,7 @@ enum nl80211_peer_measurement_ftm_failure_reasons { * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS: number of FTM Request frames * transmitted (u32, optional) * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES: number of FTM Request frames - * that were acknowleged (u32, optional) + * that were acknowledged (u32, optional) * @NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME: retry time received from the * busy peer (u32, seconds) * @NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP: actual number of bursts exponent @@ -7729,7 +7804,7 @@ enum nl80211_iftype_akm_attributes { * @NL80211_FILS_DISCOVERY_ATTR_INT_MIN: Minimum packet interval (u32, TU). * Allowed range: 0..10000 (TU = Time Unit) * @NL80211_FILS_DISCOVERY_ATTR_INT_MAX: Maximum packet interval (u32, TU). - * Allowed range: 0..10000 (TU = Time Unit) + * Allowed range: 0..10000 (TU = Time Unit). If set to 0, the feature is disabled. * @NL80211_FILS_DISCOVERY_ATTR_TMPL: Template data for FILS discovery action * frame including the headers. * @@ -7762,7 +7837,8 @@ enum nl80211_fils_discovery_attributes { * * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT: Maximum packet interval (u32, TU). * Allowed range: 0..20 (TU = Time Unit). IEEE P802.11ax/D6.0 - * 26.17.2.3.2 (AP behavior for fast passive scanning). + * 26.17.2.3.2 (AP behavior for fast passive scanning). If set to 0, the feature is + * disabled. * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL: Unsolicited broadcast probe response * frame template (binary). * @@ -7805,6 +7881,7 @@ enum nl80211_sae_pwe_mechanism { * * @NL80211_SAR_TYPE_POWER: power limitation specified in 0.25dBm unit * + * @NUM_NL80211_SAR_TYPE: internal */ enum nl80211_sar_type { NL80211_SAR_TYPE_POWER, @@ -7818,6 +7895,8 @@ enum nl80211_sar_type { /** * enum nl80211_sar_attrs - Attributes for SAR spec * + * @__NL80211_SAR_ATTR_INVALID: Invalid + * * @NL80211_SAR_ATTR_TYPE: the SAR type as defined in &enum nl80211_sar_type. * * @NL80211_SAR_ATTR_SPECS: Nested array of SAR power @@ -7849,6 +7928,8 @@ enum nl80211_sar_attrs { /** * enum nl80211_sar_specs_attrs - Attributes for SAR power limit specs * + * @__NL80211_SAR_ATTR_SPECS_INVALID: Invalid + * * @NL80211_SAR_ATTR_SPECS_POWER: Required (s32)value to specify the actual * power limit value in units of 0.25 dBm if type is * NL80211_SAR_TYPE_POWER. (i.e., a value of 44 represents 11 dBm). @@ -7963,4 +8044,54 @@ enum nl80211_ap_settings_flags { NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 1 << 1, }; +/** + * enum nl80211_wiphy_radio_attrs - wiphy radio attributes + * + * @__NL80211_WIPHY_RADIO_ATTR_INVALID: Invalid + * + * @NL80211_WIPHY_RADIO_ATTR_INDEX: Index of this radio (u32) + * @NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE: Frequency range supported by this + * radio. Attribute may be present multiple times. + * @NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION: Supported interface + * combination for this radio. Attribute may be present multiple times + * and contains attributes defined in &enum nl80211_if_combination_attrs. + * + * @__NL80211_WIPHY_RADIO_ATTR_LAST: Internal + * @NL80211_WIPHY_RADIO_ATTR_MAX: Highest attribute + */ +enum nl80211_wiphy_radio_attrs { + __NL80211_WIPHY_RADIO_ATTR_INVALID, + + NL80211_WIPHY_RADIO_ATTR_INDEX, + NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE, + NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION, + + /* keep last */ + __NL80211_WIPHY_RADIO_ATTR_LAST, + NL80211_WIPHY_RADIO_ATTR_MAX = __NL80211_WIPHY_RADIO_ATTR_LAST - 1, +}; + +/** + * enum nl80211_wiphy_radio_freq_range - wiphy radio frequency range + * + * @__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID: Invalid + * + * @NL80211_WIPHY_RADIO_FREQ_ATTR_START: Frequency range start (u32). + * The unit is kHz. + * @NL80211_WIPHY_RADIO_FREQ_ATTR_END: Frequency range end (u32). + * The unit is kHz. + * + * @__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST: Internal + * @NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: Highest attribute + */ +enum nl80211_wiphy_radio_freq_range { + __NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID, + + NL80211_WIPHY_RADIO_FREQ_ATTR_START, + NL80211_WIPHY_RADIO_FREQ_ATTR_END, + + __NL80211_WIPHY_RADIO_FREQ_ATTR_LAST, + NL80211_WIPHY_RADIO_FREQ_ATTR_MAX = __NL80211_WIPHY_RADIO_FREQ_ATTR_LAST - 1, +}; + #endif /* __LINUX_NL80211_H */