mac80211: Fix patch
[openwrt/staging/hauke.git] / package / network / utils / iw / patches / 001-nl80211_h_sync.patch
index 5aa3cd5146f1772c40cff16851c71ddb2970e3e1..ff374d886670a9148197e17ef6570d44daa036ef 100644 (file)
@@ -1,9 +1,16 @@
+diff --git a/nl80211.h b/nl80211.h
+index 47700a2..09892ca 100644
 --- a/nl80211.h
 +++ b/nl80211.h
-@@ -2527,6 +2527,13 @@ enum nl80211_commands {
+@@ -2527,6 +2527,18 @@ enum nl80211_commands {
   *    override mask. Used with NL80211_ATTR_S1G_CAPABILITY in
   *    NL80211_CMD_ASSOCIATE or NL80211_CMD_CONNECT.
   *
++ * @NL80211_ATTR_SAE_PWE: Indicates the mechanism(s) allowed for SAE PWE
++ *    derivation in WPA3-Personal networks which are using SAE authentication.
++ *    This is a u8 attribute that encapsulates one of the values from
++ *    &enum nl80211_sae_pwe_mechanism.
++ *
 + * @NL80211_ATTR_RECONNECT_REQUESTED: flag attribute, used with deauth and
 + *    disassoc events to indicate that an immediate reconnect to the AP
 + *    is desired.
   * @NUM_NL80211_ATTR: total number of nl80211_attrs available
   * @NL80211_ATTR_MAX: highest attribute number currently defined
   * @__NL80211_ATTR_AFTER_LAST: internal use
-@@ -3016,6 +3023,10 @@ enum nl80211_attrs {
+@@ -3016,6 +3028,12 @@ enum nl80211_attrs {
        NL80211_ATTR_S1G_CAPABILITY,
        NL80211_ATTR_S1G_CAPABILITY_MASK,
  
++      NL80211_ATTR_SAE_PWE,
++
 +      NL80211_ATTR_RECONNECT_REQUESTED,
 +
 +      NL80211_ATTR_WIPHY_ANTENNA_GAIN,
        /* add attributes here, update the policy in nl80211.c */
  
        __NL80211_ATTR_AFTER_LAST,
+@@ -7124,4 +7142,23 @@ enum nl80211_unsol_bcast_probe_resp_attributes {
+       NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX =
+               __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST - 1
+ };
++
++/**
++ * enum nl80211_sae_pwe_mechanism - The mechanism(s) allowed for SAE PWE
++ *    derivation. Applicable only when WPA3-Personal SAE authentication is
++ *    used.
++ *
++ * @NL80211_SAE_PWE_UNSPECIFIED: not specified, used internally to indicate that
++ *    attribute is not present from userspace.
++ * @NL80211_SAE_PWE_HUNT_AND_PECK: hunting-and-pecking loop only
++ * @NL80211_SAE_PWE_HASH_TO_ELEMENT: hash-to-element only
++ * @NL80211_SAE_PWE_BOTH: both hunting-and-pecking loop and hash-to-element
++ *    can be used.
++ */
++enum nl80211_sae_pwe_mechanism {
++      NL80211_SAE_PWE_UNSPECIFIED,
++      NL80211_SAE_PWE_HUNT_AND_PECK,
++      NL80211_SAE_PWE_HASH_TO_ELEMENT,
++      NL80211_SAE_PWE_BOTH,
++};
+ #endif /* __LINUX_NL80211_H */