kernel: bump 5.10 to 5.10.218
[openwrt/openwrt.git] / package / network / utils / iw / patches / 001-nl80211_h_sync.patch
index bd2cb59b723020ca22a42ecb92b63f954a76993e..3fb5ca255c3f7e9d95493a0bec6ca0a5dcb183ac 100644 (file)
 --- a/nl80211.h
 +++ b/nl80211.h
-@@ -657,9 +657,7 @@
-  *    is used during CSA period.
-  * @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
-- *    also sent as an event whenever the driver has completed the off-channel
-- *    wait time.
-+ *    time if it is known that it is no longer necessary.
-  * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility.
-  * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame
-  *    transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies
-@@ -2358,8 +2356,8 @@ enum nl80211_commands {
+@@ -301,29 +301,6 @@
+  */
+ /**
+- * DOC: FILS shared key crypto offload
+- *
+- * This feature is applicable to drivers running in AP mode.
+- *
+- * FILS shared key crypto offload can be advertised by drivers by setting
+- * @NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD flag. The drivers that support
+- * FILS shared key crypto offload should be able to encrypt and decrypt
+- * association frames for FILS shared key authentication as per IEEE 802.11ai.
+- * With this capability, for FILS key derivation, drivers depend on userspace.
+- *
+- * After FILS key derivation, userspace shares the FILS AAD details with the
+- * driver and the driver stores the same to use in decryption of association
+- * request and in encryption of association response. The below parameters
+- * should be given to the driver in %NL80211_CMD_SET_FILS_AAD.
+- *    %NL80211_ATTR_MAC - STA MAC address, used for storing FILS AAD per STA
+- *    %NL80211_ATTR_FILS_KEK - Used for encryption or decryption
+- *    %NL80211_ATTR_FILS_NONCES - Used for encryption or decryption
+- *                    (STA Nonce 16 bytes followed by AP Nonce 16 bytes)
+- *
+- * Once the association is done, the driver cleans the FILS AAD data.
+- */
+-
+-/**
+  * enum nl80211_commands - supported nl80211 commands
   *
-  * @NL80211_ATTR_TWT_RESPONDER: Enable target wait time responder support.
+  * @NL80211_CMD_UNSPEC: unspecified command to catch errors
+@@ -1226,12 +1203,6 @@
+  * @NL80211_CMD_COLOR_CHANGE_COMPLETED: Notify userland that the color change
+  *    has completed
+  *
+- * @NL80211_CMD_SET_FILS_AAD: Set FILS AAD data to the driver using -
+- *    &NL80211_ATTR_MAC - for STA MAC address
+- *    &NL80211_ATTR_FILS_KEK - for KEK
+- *    &NL80211_ATTR_FILS_NONCES - for FILS Nonces
+- *            (STA Nonce 16 bytes followed by AP Nonce 16 bytes)
+- *
+  * @NL80211_CMD_MAX: highest used command number
+  * @__NL80211_CMD_AFTER_LAST: internal use
+  */
+@@ -1472,8 +1443,6 @@ enum nl80211_commands {
+       NL80211_CMD_COLOR_CHANGE_ABORTED,
+       NL80211_CMD_COLOR_CHANGE_COMPLETED,
+-      NL80211_CMD_SET_FILS_AAD,
+-
+       /* add new commands above here */
+       /* used to define NL80211_CMD_MAX below */
+@@ -2639,6 +2608,9 @@ enum nl80211_commands {
+  *    Mandatory parameter for the transmitting interface to enable MBSSID.
+  *    Optional for the non-transmitting interfaces.
   *
-- * @NL80211_ATTR_HE_OBSS_PD: nested attribute for OBSS Packet Detection
-- *    functionality.
 + * @NL80211_ATTR_WIPHY_ANTENNA_GAIN: Configured antenna gain. Used to reduce
 + *    transmit power to stay within regulatory limits. u32, dBi.
-  *
++ *
   * @NUM_NL80211_ATTR: total number of nl80211_attrs available
   * @NL80211_ATTR_MAX: highest attribute number currently defined
-@@ -2818,7 +2816,7 @@ enum nl80211_attrs {
-       NL80211_ATTR_TWT_RESPONDER,
+  * @__NL80211_ATTR_AFTER_LAST: internal use
+@@ -3145,6 +3117,8 @@ enum nl80211_attrs {
+       NL80211_ATTR_MBSSID_CONFIG,
+       NL80211_ATTR_MBSSID_ELEMS,
  
--      NL80211_ATTR_HE_OBSS_PD,
 +      NL80211_ATTR_WIPHY_ANTENNA_GAIN,
++
        /* add attributes here, update the policy in nl80211.c */
  
-@@ -3843,6 +3841,8 @@ enum nl80211_user_reg_hint_type {
-  * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan
-  *    (on this channel or globally)
-  * @NL80211_SURVEY_INFO_PAD: attribute used for padding for 64-bit alignment
-+ * @NL80211_SURVEY_INFO_TIME_BSS_RX: amount of time the radio spent
-+ *    receiving local BSS data
-  * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number
-  *    currently defined
-  * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use
-@@ -3859,6 +3859,7 @@ enum nl80211_survey_info {
-       NL80211_SURVEY_INFO_TIME_TX,
-       NL80211_SURVEY_INFO_TIME_SCAN,
-       NL80211_SURVEY_INFO_PAD,
-+      NL80211_SURVEY_INFO_TIME_BSS_RX,
+       __NL80211_ATTR_AFTER_LAST,
+@@ -4978,7 +4952,6 @@ enum nl80211_txrate_gi {
+  * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 69.12 GHz)
+  * @NL80211_BAND_6GHZ: around 6 GHz band (5.9 - 7.2 GHz)
+  * @NL80211_BAND_S1GHZ: around 900MHz, supported by S1G PHYs
+- * @NL80211_BAND_LC: light communication band (placeholder)
+  * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace
+  *    since newer kernel versions may support more bands
+  */
+@@ -4988,7 +4961,6 @@ enum nl80211_band {
+       NL80211_BAND_60GHZ,
+       NL80211_BAND_6GHZ,
+       NL80211_BAND_S1GHZ,
+-      NL80211_BAND_LC,
  
-       /* keep last */
-       __NL80211_SURVEY_INFO_AFTER_LAST,
-@@ -6495,26 +6496,4 @@ enum nl80211_peer_measurement_ftm_resp {
-       NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 1
+       NUM_NL80211_BANDS,
  };
--/**
-- * enum nl80211_obss_pd_attributes - OBSS packet detection attributes
-- * @__NL80211_HE_OBSS_PD_ATTR_INVALID: Invalid
-- *
-- * @NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET: the OBSS PD minimum tx power offset.
-- * @NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET: the OBSS PD maximum tx power offset.
+@@ -6046,11 +6018,6 @@ enum nl80211_feature_flags {
+  * @NL80211_EXT_FEATURE_BSS_COLOR: The driver supports BSS color collision
+  *    detection and change announcemnts.
+  *
+- * @NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD: Driver running in AP mode supports
+- *    FILS encryption and decryption for (Re)Association Request and Response
+- *    frames. Userspace has to share FILS AAD details to the driver by using
+- *    @NL80211_CMD_SET_FILS_AAD.
 - *
-- * @__NL80211_HE_OBSS_PD_ATTR_LAST: Internal
-- * @NL80211_HE_OBSS_PD_ATTR_MAX: highest OBSS PD attribute.
-- */
--enum nl80211_obss_pd_attributes {
--      __NL80211_HE_OBSS_PD_ATTR_INVALID,
--
--      NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET,
--      NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET,
--
--      /* keep last */
--      __NL80211_HE_OBSS_PD_ATTR_LAST,
--      NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1,
--};
--
--
- #endif /* __LINUX_NL80211_H */
+  * @NUM_NL80211_EXT_FEATURES: number of extended features.
+  * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
+  */
+@@ -6116,7 +6083,6 @@ enum nl80211_ext_feature_index {
+       NL80211_EXT_FEATURE_SECURE_RTT,
+       NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE,
+       NL80211_EXT_FEATURE_BSS_COLOR,
+-      NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD,
+       /* add new features before the definition below */
+       NUM_NL80211_EXT_FEATURES,
+@@ -7424,7 +7390,7 @@ enum nl80211_sar_specs_attrs {
+  * @NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY: Used by the kernel
+  *    to advertise the maximum profile periodicity supported by the driver
+  *    if EMA is enabled. Driver should indicate EMA support to the userspace
+- *    by setting wiphy->ema_max_profile_periodicity to
++ *    by setting wiphy->mbssid_max_ema_profile_periodicity to
+  *    a non-zero value.
+  *
+  * @NL80211_MBSSID_CONFIG_ATTR_INDEX: Mandatory parameter to pass the index of
+@@ -7443,7 +7409,7 @@ enum nl80211_sar_specs_attrs {
+  *
+  * @NL80211_MBSSID_CONFIG_ATTR_EMA: Flag used to enable EMA AP feature.
+  *    Setting this flag is permitted only if the driver advertises EMA support
+- *    by setting wiphy->ema_max_profile_periodicity to non-zero.
++ *    by setting wiphy->mbssid_max_ema_profile_periodicity to non-zero.
+  *
+  * @__NL80211_MBSSID_CONFIG_ATTR_LAST: Internal
+  * @NL80211_MBSSID_CONFIG_ATTR_MAX: highest attribute
+--- a/info.c
++++ b/info.c
+@@ -701,7 +701,6 @@ broken_combination:
+               ext_feat_print(tb, OPERATING_CHANNEL_VALIDATION, "Operating Channel Validation (OCV) support");
+               ext_feat_print(tb, 4WAY_HANDSHAKE_AP_PSK, "AP mode PSK offload support");
+               ext_feat_print(tb, BSS_COLOR, "BSS coloring support");
+-              ext_feat_print(tb, FILS_CRYPTO_OFFLOAD, "FILS crypto offload");
+       }
+       if (tb_msg[NL80211_ATTR_COALESCE_RULE]) {