diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-03-13 20:08:16 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-03-16 19:59:02 +0100 |
commit | 04e4b779cc64c85955910909b979c81177691a3b (patch) | |
tree | 76df5ea2462283b140391643f3569edb2e994051 /package/network/utils | |
parent | fb0a80f4cfd38febdb52e7f0478f8f8fa0631e1d (diff) | |
download | upstream-04e4b779cc64c85955910909b979c81177691a3b.tar.gz upstream-04e4b779cc64c85955910909b979c81177691a3b.tar.bz2 upstream-04e4b779cc64c85955910909b979c81177691a3b.zip |
mac80211: backport the txq scheduling / airtime fairness API
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/utils')
-rw-r--r-- | package/network/utils/iw/patches/001-nl80211_h_sync.patch | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/package/network/utils/iw/patches/001-nl80211_h_sync.patch b/package/network/utils/iw/patches/001-nl80211_h_sync.patch index e1d318f529..5f15684d30 100644 --- a/package/network/utils/iw/patches/001-nl80211_h_sync.patch +++ b/package/network/utils/iw/patches/001-nl80211_h_sync.patch @@ -1,21 +1,45 @@ --- a/nl80211.h +++ b/nl80211.h -@@ -2299,6 +2299,9 @@ enum nl80211_commands { +@@ -2299,6 +2299,12 @@ enum nl80211_commands { * This is also used for capability advertisement in the wiphy information, * with the appropriate sub-attributes. * ++ * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime ++ * scheduler. ++ * + * @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 -@@ -2748,6 +2751,8 @@ enum nl80211_attrs { +@@ -2748,6 +2754,10 @@ enum nl80211_attrs { NL80211_ATTR_PEER_MEASUREMENTS, ++ NL80211_ATTR_AIRTIME_WEIGHT, ++ + NL80211_ATTR_WIPHY_ANTENNA_GAIN, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, +@@ -3125,6 +3135,9 @@ enum nl80211_sta_bss_param { + * might not be fully accurate. + * @NL80211_STA_INFO_CONNECTED_TO_GATE: set to true if STA has a path to a + * mesh gate (u8, 0 or 1) ++ * @NL80211_STA_INFO_TX_DURATION: aggregate PPDU duration for all frames ++ * sent to the station (u64, usec) ++ * @NL80211_STA_INFO_AIRTIME_WEIGHT: current airtime weight for station (u16) + * @__NL80211_STA_INFO_AFTER_LAST: internal + * @NL80211_STA_INFO_MAX: highest possible station info attribute + */ +@@ -3168,6 +3181,8 @@ enum nl80211_sta_info { + NL80211_STA_INFO_RX_MPDUS, + NL80211_STA_INFO_FCS_ERROR_COUNT, + NL80211_STA_INFO_CONNECTED_TO_GATE, ++ NL80211_STA_INFO_TX_DURATION, ++ NL80211_STA_INFO_AIRTIME_WEIGHT, + + /* keep last */ + __NL80211_STA_INFO_AFTER_LAST, |