| From de3da80461f48946b9493fb2b2d54ce6dcdc3e12 Mon Sep 17 00:00:00 2001 |
| From: Johannes Berg <johannes.berg@intel.com> |
| Date: Fri, 14 Apr 2023 12:50:11 +0200 |
| Subject: [PATCH 06/28] update nl80211.h |
| |
| Bring in nl80211.h from 6.4-rc. |
| |
| Change-Id: I96b818a987d243b5cf97e2cc9c62d57637e17165 |
| Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| --- |
| info.c | 4 + |
| nl80211.h | 230 +++++++++++++++++++++++++++++++++++++++++++++++++++--- |
| 2 files changed, 224 insertions(+), 10 deletions(-) |
| |
| diff --git a/info.c b/info.c |
| index 5229d44..9955e5e 100644 |
| --- a/info.c |
| +++ b/info.c |
| @@ -166,6 +166,10 @@ static void ext_feat_print(enum nl80211_ext_feature_index idx) |
| ext_feat_case(BSS_COLOR, "BSS coloring support"); |
| ext_feat_case(FILS_CRYPTO_OFFLOAD, "FILS crypto offload"); |
| ext_feat_case(RADAR_BACKGROUND, "Radar background support"); |
| + ext_feat_case(POWERED_ADDR_CHANGE, "can change MAC address while up"); |
| + ext_feat_case(PUNCT, "preamble puncturing in AP mode"); |
| + ext_feat_case(SECURE_NAN, "secure NAN support"); |
| + ext_feat_case(AUTH_AND_DEAUTH_RANDOM_TA, "random auth/deauth transmitter address"); |
| } |
| } |
| |
| diff --git a/nl80211.h b/nl80211.h |
| index d9490e3..c59fec4 100644 |
| --- a/nl80211.h |
| +++ b/nl80211.h |
| @@ -323,6 +323,17 @@ |
| * Once the association is done, the driver cleans the FILS AAD data. |
| */ |
| |
| +/** |
| + * DOC: Multi-Link Operation |
| + * |
| + * In Multi-Link Operation, a connection between to 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 |
| + * now need to be given the %NL80211_ATTR_MLO_LINK_ID attribute, e.g. to |
| + * use %NL80211_CMD_START_AP or similar functions. |
| + */ |
| + |
| /** |
| * enum nl80211_commands - supported nl80211 commands |
| * |
| @@ -366,14 +377,22 @@ |
| * the non-transmitting interfaces are deleted as well. |
| * |
| * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified |
| - * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. |
| + * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. %NL80211_ATTR_MAC |
| + * represents peer's MLD address for MLO pairwise key. For MLO group key, |
| + * the link is identified by %NL80211_ATTR_MLO_LINK_ID. |
| * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT, |
| * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD. |
| + * For MLO connection, the link to set default key is identified by |
| + * %NL80211_ATTR_MLO_LINK_ID. |
| * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, |
| * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER, |
| - * and %NL80211_ATTR_KEY_SEQ attributes. |
| + * and %NL80211_ATTR_KEY_SEQ attributes. %NL80211_ATTR_MAC represents |
| + * peer's MLD address for MLO pairwise key. The link to add MLO |
| + * group key is identified by %NL80211_ATTR_MLO_LINK_ID. |
| * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX |
| - * or %NL80211_ATTR_MAC. |
| + * or %NL80211_ATTR_MAC. %NL80211_ATTR_MAC represents peer's MLD address |
| + * for MLO pairwise key. The link to delete group key is identified by |
| + * %NL80211_ATTR_MLO_LINK_ID. |
| * |
| * @NL80211_CMD_GET_BEACON: (not used) |
| * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface |
| @@ -405,7 +424,8 @@ |
| * interface identified by %NL80211_ATTR_IFINDEX. |
| * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC |
| * or, if no MAC address given, all stations, on the interface identified |
| - * by %NL80211_ATTR_IFINDEX. %NL80211_ATTR_MGMT_SUBTYPE and |
| + * by %NL80211_ATTR_IFINDEX. For MLD station, MLD address is used in |
| + * %NL80211_ATTR_MAC. %NL80211_ATTR_MGMT_SUBTYPE and |
| * %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 |
| @@ -753,6 +773,13 @@ |
| * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA |
| * counters which will be updated to the current value. This attribute |
| * is used during CSA period. |
| + * For TX on an MLD, the frequency can be omitted and the link ID be |
| + * specified, or if transmitting to a known peer MLD (with MLD addresses |
| + * in the frame) both can be omitted and the link will be selected by |
| + * lower layers. |
| + * For RX notification, %NL80211_ATTR_RX_HW_TIMESTAMP may be included to |
| + * indicate the frame RX timestamp and %NL80211_ATTR_TX_HW_TIMESTAMP may |
| + * be included to indicate the ack TX timestamp. |
| * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this |
| * command may be used with the corresponding cookie to cancel the wait |
| * time if it is known that it is no longer necessary. This command is |
| @@ -763,7 +790,9 @@ |
| * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies |
| * the TX command and %NL80211_ATTR_FRAME includes the contents of the |
| * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged |
| - * the frame. |
| + * the frame. %NL80211_ATTR_TX_HW_TIMESTAMP may be included to indicate the |
| + * tx timestamp and %NL80211_ATTR_RX_HW_TIMESTAMP may be included to |
| + * indicate the ack RX timestamp. |
| * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for |
| * backward compatibility. |
| * |
| @@ -1108,6 +1137,12 @@ |
| * has been received. %NL80211_ATTR_FRAME is used to specify the |
| * frame contents. The frame is the raw EAPoL data, without ethernet or |
| * 802.11 headers. |
| + * For an MLD transmitter, the %NL80211_ATTR_MLO_LINK_ID may be given and |
| + * its effect will depend on the destination: If the destination is known |
| + * to be an MLD, this will be used as a hint to select the link to transmit |
| + * the frame on. If the destination is not an MLD, this will select both |
| + * the link to transmit on and the source address will be set to the link |
| + * address of that link. |
| * When used as an event indication %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, |
| * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT and %NL80211_ATTR_MAC are added |
| * indicating the protocol type of the received frame; whether the frame |
| @@ -1132,6 +1167,23 @@ |
| * %NL80211_ATTR_STATUS_CODE attribute in %NL80211_CMD_EXTERNAL_AUTH |
| * command interface. |
| * |
| + * Host driver sends MLD address of the AP with %NL80211_ATTR_MLD_ADDR in |
| + * %NL80211_CMD_EXTERNAL_AUTH event to indicate user space to enable MLO |
| + * during the authentication offload in STA mode while connecting to MLD |
| + * APs. Host driver should check %NL80211_ATTR_MLO_SUPPORT flag capability |
| + * in %NL80211_CMD_CONNECT to know whether the user space supports enabling |
| + * MLO during the authentication offload or not. |
| + * User space should enable MLO during the authentication only when it |
| + * receives the AP MLD address in authentication offload request. User |
| + * space shouldn't enable MLO when the authentication offload request |
| + * doesn't indicate the AP MLD address even if the AP is MLO capable. |
| + * User space should use %NL80211_ATTR_MLD_ADDR as peer's MLD address and |
| + * interface address identified by %NL80211_ATTR_IFINDEX as self MLD |
| + * address. User space and host driver to use MLD addresses in RA, TA and |
| + * BSSID fields of the frames between them, and host driver translates the |
| + * MLD addresses to/from link addresses based on the link chosen for the |
| + * authentication. |
| + * |
| * Host driver reports this status on an authentication failure to the |
| * user space through the connect result as the user space would have |
| * initiated the connection through the connect request. |
| @@ -1237,6 +1289,26 @@ |
| * to describe the BSSID address of the AP and %NL80211_ATTR_TIMEOUT to |
| * specify the timeout value. |
| * |
| + * @NL80211_CMD_ADD_LINK: Add a new link to an interface. The |
| + * %NL80211_ATTR_MLO_LINK_ID attribute is used for the new link. |
| + * @NL80211_CMD_REMOVE_LINK: Remove a link from an interface. This may come |
| + * without %NL80211_ATTR_MLO_LINK_ID as an easy way to remove all links |
| + * in preparation for e.g. roaming to a regular (non-MLO) AP. |
| + * |
| + * @NL80211_CMD_ADD_LINK_STA: Add a link to an MLD station |
| + * @NL80211_CMD_MODIFY_LINK_STA: Modify a link of an MLD station |
| + * @NL80211_CMD_REMOVE_LINK_STA: Remove a link of an MLD station |
| + * |
| + * @NL80211_CMD_SET_HW_TIMESTAMP: Enable/disable HW timestamping of Timing |
| + * measurement and Fine timing measurement frames. If %NL80211_ATTR_MAC |
| + * is included, enable/disable HW timestamping only for frames to/from the |
| + * specified MAC address. Otherwise enable/disable HW timestamping for |
| + * all TM/FTM frames (including ones that were enabled with specific MAC |
| + * address). If %NL80211_ATTR_HW_TIMESTAMP_ENABLED is not included, disable |
| + * HW timestamping. |
| + * The number of peers that HW timestamping can be enabled for concurrently |
| + * is indicated by %NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS. |
| + * |
| * @NL80211_CMD_MAX: highest used command number |
| * @__NL80211_CMD_AFTER_LAST: internal use |
| */ |
| @@ -1481,6 +1553,15 @@ enum nl80211_commands { |
| |
| NL80211_CMD_ASSOC_COMEBACK, |
| |
| + NL80211_CMD_ADD_LINK, |
| + NL80211_CMD_REMOVE_LINK, |
| + |
| + NL80211_CMD_ADD_LINK_STA, |
| + NL80211_CMD_MODIFY_LINK_STA, |
| + NL80211_CMD_REMOVE_LINK_STA, |
| + |
| + NL80211_CMD_SET_HW_TIMESTAMP, |
| + |
| /* add new commands above here */ |
| |
| /* used to define NL80211_CMD_MAX below */ |
| @@ -2340,8 +2421,10 @@ enum nl80211_commands { |
| * |
| * @NL80211_ATTR_IFTYPE_EXT_CAPA: Nested attribute of the following attributes: |
| * %NL80211_ATTR_IFTYPE, %NL80211_ATTR_EXT_CAPA, |
| - * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities per |
| - * interface type. |
| + * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities and |
| + * other interface-type specific capabilities per interface type. For MLO, |
| + * %NL80211_ATTR_EML_CAPABILITY and %NL80211_ATTR_MLD_CAPA_AND_OPS are |
| + * present. |
| * |
| * @NL80211_ATTR_MU_MIMO_GROUP_DATA: array of 24 bytes that defines a MU-MIMO |
| * groupID for monitor mode. |
| @@ -2663,6 +2746,65 @@ enum nl80211_commands { |
| * association request when used with NL80211_CMD_NEW_STATION). Can be set |
| * only if %NL80211_STA_FLAG_WME is set. |
| * |
| + * @NL80211_ATTR_MLO_LINK_ID: A (u8) link ID for use with MLO, to be used with |
| + * various commands that need a link ID to operate. |
| + * @NL80211_ATTR_MLO_LINKS: A nested array of links, each containing some |
| + * per-link information and a link ID. |
| + * @NL80211_ATTR_MLD_ADDR: An MLD address, used with various commands such as |
| + * authenticate/associate. |
| + * |
| + * @NL80211_ATTR_MLO_SUPPORT: Flag attribute to indicate user space supports MLO |
| + * connection. Used with %NL80211_CMD_CONNECT. If this attribute is not |
| + * included in NL80211_CMD_CONNECT drivers must not perform MLO connection. |
| + * |
| + * @NL80211_ATTR_MAX_NUM_AKM_SUITES: U16 attribute. Indicates maximum number of |
| + * AKM suites allowed for %NL80211_CMD_CONNECT, %NL80211_CMD_ASSOCIATE and |
| + * %NL80211_CMD_START_AP in %NL80211_CMD_GET_WIPHY response. If this |
| + * attribute is not present userspace shall consider maximum number of AKM |
| + * suites allowed as %NL80211_MAX_NR_AKM_SUITES which is the legacy maximum |
| + * number prior to the introduction of this attribute. |
| + * |
| + * @NL80211_ATTR_EML_CAPABILITY: EML Capability information (u16) |
| + * @NL80211_ATTR_MLD_CAPA_AND_OPS: MLD Capabilities and Operations (u16) |
| + * |
| + * @NL80211_ATTR_TX_HW_TIMESTAMP: Hardware timestamp for TX operation in |
| + * nanoseconds (u64). This is the device clock timestamp so it will |
| + * probably reset when the device is stopped or the firmware is reset. |
| + * When used with %NL80211_CMD_FRAME_TX_STATUS, indicates the frame TX |
| + * timestamp. When used with %NL80211_CMD_FRAME RX notification, indicates |
| + * the ack TX timestamp. |
| + * @NL80211_ATTR_RX_HW_TIMESTAMP: Hardware timestamp for RX operation in |
| + * nanoseconds (u64). This is the device clock timestamp so it will |
| + * probably reset when the device is stopped or the firmware is reset. |
| + * When used with %NL80211_CMD_FRAME_TX_STATUS, indicates the ack RX |
| + * timestamp. When used with %NL80211_CMD_FRAME RX notification, indicates |
| + * the incoming frame RX timestamp. |
| + * @NL80211_ATTR_TD_BITMAP: Transition Disable bitmap, for subsequent |
| + * (re)associations. |
| + * |
| + * @NL80211_ATTR_PUNCT_BITMAP: (u32) Preamble puncturing bitmap, lowest |
| + * bit corresponds to the lowest 20 MHz channel. Each bit set to 1 |
| + * indicates that the sub-channel is punctured. Higher 16 bits are |
| + * reserved. |
| + * |
| + * @NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS: Maximum number of peers that HW |
| + * timestamping can be enabled for concurrently (u16), a wiphy attribute. |
| + * A value of 0xffff indicates setting for all peers (i.e. not specifying |
| + * an address with %NL80211_CMD_SET_HW_TIMESTAMP) is supported. |
| + * @NL80211_ATTR_HW_TIMESTAMP_ENABLED: Indicates whether HW timestamping should |
| + * be enabled or not (flag attribute). |
| + * |
| + * @NL80211_ATTR_EMA_RNR_ELEMS: Optional nested attribute for |
| + * reduced neighbor report (RNR) elements. This attribute can be used |
| + * only when NL80211_MBSSID_CONFIG_ATTR_EMA is enabled. |
| + * Userspace is responsible for splitting the RNR into multiple |
| + * elements such that each element excludes the non-transmitting |
| + * profiles already included in the MBSSID element |
| + * (%NL80211_ATTR_MBSSID_ELEMS) at the same index. Each EMA beacon |
| + * will be generated by adding MBSSID and RNR elements at the same |
| + * index. If the userspace includes more RNR elements than number of |
| + * MBSSID elements then these will be added in every EMA beacon. |
| + * |
| * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| * @NL80211_ATTR_MAX: highest attribute number currently defined |
| * @__NL80211_ATTR_AFTER_LAST: internal use |
| @@ -3177,6 +3319,28 @@ enum nl80211_attrs { |
| |
| NL80211_ATTR_DISABLE_EHT, |
| |
| + NL80211_ATTR_MLO_LINKS, |
| + NL80211_ATTR_MLO_LINK_ID, |
| + NL80211_ATTR_MLD_ADDR, |
| + |
| + NL80211_ATTR_MLO_SUPPORT, |
| + |
| + NL80211_ATTR_MAX_NUM_AKM_SUITES, |
| + |
| + NL80211_ATTR_EML_CAPABILITY, |
| + NL80211_ATTR_MLD_CAPA_AND_OPS, |
| + |
| + NL80211_ATTR_TX_HW_TIMESTAMP, |
| + NL80211_ATTR_RX_HW_TIMESTAMP, |
| + NL80211_ATTR_TD_BITMAP, |
| + |
| + NL80211_ATTR_PUNCT_BITMAP, |
| + |
| + NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS, |
| + NL80211_ATTR_HW_TIMESTAMP_ENABLED, |
| + |
| + NL80211_ATTR_EMA_RNR_ELEMS, |
| + |
| /* add attributes here, update the policy in nl80211.c */ |
| |
| __NL80211_ATTR_AFTER_LAST, |
| @@ -3231,6 +3395,11 @@ enum nl80211_attrs { |
| #define NL80211_HE_MIN_CAPABILITY_LEN 16 |
| #define NL80211_HE_MAX_CAPABILITY_LEN 54 |
| #define NL80211_MAX_NR_CIPHER_SUITES 5 |
| + |
| +/* |
| + * NL80211_MAX_NR_AKM_SUITES is obsolete when %NL80211_ATTR_MAX_NUM_AKM_SUITES |
| + * present in %NL80211_CMD_GET_WIPHY response. |
| + */ |
| #define NL80211_MAX_NR_AKM_SUITES 2 |
| #define NL80211_EHT_MIN_CAPABILITY_LEN 13 |
| #define NL80211_EHT_MAX_CAPABILITY_LEN 51 |
| @@ -3892,6 +4061,10 @@ enum nl80211_band_iftype_attr { |
| * @NL80211_BAND_ATTR_EDMG_BW_CONFIG: Channel BW Configuration subfield encodes |
| * the allowed channel bandwidth configurations. |
| * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251, Table 13. |
| + * @NL80211_BAND_ATTR_S1G_MCS_NSS_SET: S1G capabilities, supported S1G-MCS and NSS |
| + * set subfield, as in the S1G information IE, 5 bytes |
| + * @NL80211_BAND_ATTR_S1G_CAPA: S1G capabilities information subfield as in the |
| + * S1G information IE, 10 bytes |
| * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined |
| * @__NL80211_BAND_ATTR_AFTER_LAST: internal use |
| */ |
| @@ -3912,6 +4085,9 @@ enum nl80211_band_attr { |
| NL80211_BAND_ATTR_EDMG_CHANNELS, |
| NL80211_BAND_ATTR_EDMG_BW_CONFIG, |
| |
| + NL80211_BAND_ATTR_S1G_MCS_NSS_SET, |
| + NL80211_BAND_ATTR_S1G_CAPA, |
| + |
| /* keep last */ |
| __NL80211_BAND_ATTR_AFTER_LAST, |
| NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 |
| @@ -4853,6 +5029,8 @@ enum nl80211_bss_scan_width { |
| * Contains a nested array of signal strength attributes (u8, dBm), |
| * using the nesting index as the antenna number. |
| * @NL80211_BSS_FREQUENCY_OFFSET: frequency offset in KHz |
| + * @NL80211_BSS_MLO_LINK_ID: MLO link ID of the BSS (u8). |
| + * @NL80211_BSS_MLD_ADDR: MLD address of this BSS if connected to it. |
| * @__NL80211_BSS_AFTER_LAST: internal |
| * @NL80211_BSS_MAX: highest BSS attribute |
| */ |
| @@ -4878,6 +5056,8 @@ enum nl80211_bss { |
| NL80211_BSS_PARENT_BSSID, |
| NL80211_BSS_CHAIN_SIGNAL, |
| NL80211_BSS_FREQUENCY_OFFSET, |
| + NL80211_BSS_MLO_LINK_ID, |
| + NL80211_BSS_MLD_ADDR, |
| |
| /* keep last */ |
| __NL80211_BSS_AFTER_LAST, |
| @@ -5757,6 +5937,7 @@ enum plink_actions { |
| #define NL80211_KEK_LEN 16 |
| #define NL80211_KCK_EXT_LEN 24 |
| #define NL80211_KEK_EXT_LEN 32 |
| +#define NL80211_KCK_EXT_LEN_32 32 |
| #define NL80211_REPLAY_CTR_LEN 8 |
| |
| /** |
| @@ -5874,7 +6055,7 @@ enum nl80211_ap_sme_features { |
| * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up |
| * the connected inactive stations in AP mode. |
| * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested |
| - * to work properly to suppport receiving regulatory hints from |
| + * to work properly to support receiving regulatory hints from |
| * cellular base stations. |
| * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only |
| * here to reserve the value for API/ABI compatibility) |
| @@ -6174,6 +6355,23 @@ enum nl80211_feature_flags { |
| * @NL80211_EXT_FEATURE_RADAR_BACKGROUND: Device supports background radar/CAC |
| * detection. |
| * |
| + * @NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE: Device can perform a MAC address |
| + * change without having to bring the underlying network device down |
| + * first. For example, in station mode this can be used to vary the |
| + * origin MAC address prior to a connection to a new AP for privacy |
| + * or other reasons. Note that certain driver specific restrictions |
| + * might apply, e.g. no scans in progress, no offchannel operations |
| + * in progress, and no active connections. |
| + * |
| + * @NL80211_EXT_FEATURE_PUNCT: Driver supports preamble puncturing in AP mode. |
| + * |
| + * @NL80211_EXT_FEATURE_SECURE_NAN: Device supports NAN Pairing which enables |
| + * authentication, data encryption and message integrity. |
| + * |
| + * @NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA: Device supports randomized TA |
| + * in authentication and deauthentication frames sent to unassociated peer |
| + * using @NL80211_CMD_FRAME. |
| + * |
| * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| */ |
| @@ -6241,6 +6439,10 @@ enum nl80211_ext_feature_index { |
| NL80211_EXT_FEATURE_BSS_COLOR, |
| NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD, |
| NL80211_EXT_FEATURE_RADAR_BACKGROUND, |
| + NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE, |
| + NL80211_EXT_FEATURE_PUNCT, |
| + NL80211_EXT_FEATURE_SECURE_NAN, |
| + NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA, |
| |
| /* add new features before the definition below */ |
| NUM_NL80211_EXT_FEATURES, |
| @@ -6355,8 +6557,16 @@ enum nl80211_timeout_reason { |
| * @NL80211_SCAN_FLAG_FREQ_KHZ: report scan results with |
| * %NL80211_ATTR_SCAN_FREQ_KHZ. This also means |
| * %NL80211_ATTR_SCAN_FREQUENCIES will not be included. |
| - * @NL80211_SCAN_FLAG_COLOCATED_6GHZ: scan for colocated APs reported by |
| - * 2.4/5 GHz APs |
| + * @NL80211_SCAN_FLAG_COLOCATED_6GHZ: scan for collocated APs reported by |
| + * 2.4/5 GHz APs. When the flag is set, the scan logic will use the |
| + * information from the RNR element found in beacons/probe responses |
| + * 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 |
| + * 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. |
| */ |
| enum nl80211_scan_flags { |
| NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, |
| -- |
| 2.39.2 |
| |