mac80211: backport the txq scheduling / airtime fairness API
[oweals/openwrt.git] / package / network / utils / iw / patches / 001-nl80211_h_sync.patch
1 --- a/nl80211.h
2 +++ b/nl80211.h
3 @@ -2299,6 +2299,12 @@ enum nl80211_commands {
4   *     This is also used for capability advertisement in the wiphy information,
5   *     with the appropriate sub-attributes.
6   *
7 + * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime
8 + *     scheduler.
9 + *
10 + * @NL80211_ATTR_WIPHY_ANTENNA_GAIN: Configured antenna gain. Used to reduce
11 + *     transmit power to stay within regulatory limits. u32, dBi.
12 + *
13   * @NUM_NL80211_ATTR: total number of nl80211_attrs available
14   * @NL80211_ATTR_MAX: highest attribute number currently defined
15   * @__NL80211_ATTR_AFTER_LAST: internal use
16 @@ -2748,6 +2754,10 @@ enum nl80211_attrs {
17  
18         NL80211_ATTR_PEER_MEASUREMENTS,
19  
20 +       NL80211_ATTR_AIRTIME_WEIGHT,
21 +
22 +       NL80211_ATTR_WIPHY_ANTENNA_GAIN,
23 +
24         /* add attributes here, update the policy in nl80211.c */
25  
26         __NL80211_ATTR_AFTER_LAST,
27 @@ -3125,6 +3135,9 @@ enum nl80211_sta_bss_param {
28   *     might not be fully accurate.
29   * @NL80211_STA_INFO_CONNECTED_TO_GATE: set to true if STA has a path to a
30   *     mesh gate (u8, 0 or 1)
31 + * @NL80211_STA_INFO_TX_DURATION: aggregate PPDU duration for all frames
32 + *     sent to the station (u64, usec)
33 + * @NL80211_STA_INFO_AIRTIME_WEIGHT: current airtime weight for station (u16)
34   * @__NL80211_STA_INFO_AFTER_LAST: internal
35   * @NL80211_STA_INFO_MAX: highest possible station info attribute
36   */
37 @@ -3168,6 +3181,8 @@ enum nl80211_sta_info {
38         NL80211_STA_INFO_RX_MPDUS,
39         NL80211_STA_INFO_FCS_ERROR_COUNT,
40         NL80211_STA_INFO_CONNECTED_TO_GATE,
41 +       NL80211_STA_INFO_TX_DURATION,
42 +       NL80211_STA_INFO_AIRTIME_WEIGHT,
43  
44         /* keep last */
45         __NL80211_STA_INFO_AFTER_LAST,