iw: update to version 4.7
[openwrt/staging/lynxis/omap.git] / package / network / utils / iw / patches / 001-nl80211_h_sync.patch
index 215c740dd721392479ea80ce1a5def659ce16b27..cf39a3e5fcda3609e21b6e5f0f299eb841a3b7d8 100644 (file)
@@ -1,39 +1,89 @@
 --- a/nl80211.h
 +++ b/nl80211.h
-@@ -1555,6 +1555,9 @@ enum nl80211_commands {
-  *    data is in the format defined for the payload of the QoS Map Set element
-  *    in IEEE Std 802.11-2012, 8.4.2.97.
+@@ -1817,6 +1817,11 @@ enum nl80211_commands {
+  * @NL80211_ATTR_STA_SUPPORT_P2P_PS: whether P2P PS mechanism supported
+  *    or not. u8, one of the values of &enum nl80211_sta_p2p_ps_status
   *
++ * @NL80211_ATTR_PAD: attribute used for padding for 64-bit alignment
++ *
 + * @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
   * @__NL80211_ATTR_AFTER_LAST: internal use
-  */
-@@ -1883,6 +1886,8 @@ enum nl80211_attrs {
+@@ -2197,6 +2202,10 @@ enum nl80211_attrs {
  
-       NL80211_ATTR_QOS_MAP,
+       NL80211_ATTR_STA_SUPPORT_P2P_PS,
  
++      NL80211_ATTR_PAD,
++
 +      NL80211_ATTR_WIPHY_ANTENNA_GAIN,
 +
        /* add attributes here, update the policy in nl80211.c */
  
        __NL80211_ATTR_AFTER_LAST,
-@@ -2442,9 +2447,15 @@ enum nl80211_reg_rule_attr {
-  * enum nl80211_sched_scan_match_attr - scheduled scan match attributes
-  * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved
-  * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching,
-- * only report BSS with matching SSID.
-+ *    only report BSS with matching SSID.
-  * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a
-- *    BSS in scan results. Filtering is turned off if not specified.
-+ *    BSS in scan results. Filtering is turned off if not specified. Note that
-+ *    if this attribute is in a match set of its own, then it is treated as
-+ *    the default value for all matchsets with an SSID, rather than being a
-+ *    matchset of its own without an RSSI filter. This is due to problems with
-+ *    how this API was implemented in the past. Also, due to the same problem,
-+ *    the only way to create a matchset with only an RSSI filter (with this
-+ *    attribute) is if there's only a single matchset with the RSSI attribute.
-  * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
-  *    attribute number currently defined
-  * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
+@@ -2513,6 +2522,7 @@ enum nl80211_sta_bss_param {
+  *    attributes carrying the actual values.
+  * @NL80211_STA_INFO_RX_DURATION: aggregate PPDU duration for all frames
+  *    received from the station (u64, usec)
++ * @NL80211_STA_INFO_PAD: attribute used for padding for 64-bit alignment
+  * @__NL80211_STA_INFO_AFTER_LAST: internal
+  * @NL80211_STA_INFO_MAX: highest possible station info attribute
+  */
+@@ -2550,6 +2560,7 @@ enum nl80211_sta_info {
+       NL80211_STA_INFO_BEACON_SIGNAL_AVG,
+       NL80211_STA_INFO_TID_STATS,
+       NL80211_STA_INFO_RX_DURATION,
++      NL80211_STA_INFO_PAD,
+       /* keep last */
+       __NL80211_STA_INFO_AFTER_LAST,
+@@ -2566,6 +2577,7 @@ enum nl80211_sta_info {
+  *    transmitted MSDUs (not counting the first attempt; u64)
+  * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted
+  *    MSDUs (u64)
++ * @NL80211_TID_STATS_PAD: attribute used for padding for 64-bit alignment
+  * @NUM_NL80211_TID_STATS: number of attributes here
+  * @NL80211_TID_STATS_MAX: highest numbered attribute here
+  */
+@@ -2575,6 +2587,7 @@ enum nl80211_tid_stats {
+       NL80211_TID_STATS_TX_MSDU,
+       NL80211_TID_STATS_TX_MSDU_RETRIES,
+       NL80211_TID_STATS_TX_MSDU_FAILED,
++      NL80211_TID_STATS_PAD,
+       /* keep last */
+       NUM_NL80211_TID_STATS,
+@@ -3011,6 +3024,7 @@ enum nl80211_user_reg_hint_type {
+  *    transmitting data (on channel or globally)
+  * @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_MAX: highest survey info attribute number
+  *    currently defined
+  * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use
+@@ -3026,6 +3040,7 @@ enum nl80211_survey_info {
+       NL80211_SURVEY_INFO_TIME_RX,
+       NL80211_SURVEY_INFO_TIME_TX,
+       NL80211_SURVEY_INFO_TIME_SCAN,
++      NL80211_SURVEY_INFO_PAD,
+       /* keep last */
+       __NL80211_SURVEY_INFO_AFTER_LAST,
+@@ -3451,6 +3466,7 @@ enum nl80211_bss_scan_width {
+  * @NL80211_BSS_LAST_SEEN_BOOTTIME: CLOCK_BOOTTIME timestamp when this entry
+  *    was last updated by a received frame. The value is expected to be
+  *    accurate to about 10ms. (u64, nanoseconds)
++ * @NL80211_BSS_PAD: attribute used for padding for 64-bit alignment
+  * @__NL80211_BSS_AFTER_LAST: internal
+  * @NL80211_BSS_MAX: highest BSS attribute
+  */
+@@ -3471,6 +3487,7 @@ enum nl80211_bss {
+       NL80211_BSS_BEACON_TSF,
+       NL80211_BSS_PRESP_DATA,
+       NL80211_BSS_LAST_SEEN_BOOTTIME,
++      NL80211_BSS_PAD,
+       /* keep last */
+       __NL80211_BSS_AFTER_LAST,