diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2014-11-19 13:47:38 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-19 18:45:36 +0100 |
commit | b6da911b3cf1d342f2f7123c9eb6463d299bca4e (patch) | |
tree | 7e90aaf36e8149ca731e4d8589d9d18556de933b /net/mac80211/sta_info.c | |
parent | 4f9610d528a6aa5642fa350fa93fbd905a753ae8 (diff) | |
download | blackbird-op-linux-b6da911b3cf1d342f2f7123c9eb6463d299bca4e.tar.gz blackbird-op-linux-b6da911b3cf1d342f2f7123c9eb6463d299bca4e.zip |
mac80211: synchronously reserve TID per station
In TDLS (e.g., TDLS off-channel) there is a requirement for
some drivers to supply an unused TID between the AP and the
device to the FW, to allow sending PTI requests and to allow
the FW to aggregate on a specific TID for better throughput.
To ensure that the allocated TID is indeed unused, this patch
introduces an API for blocking the driver from TXing on that
TID.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 86ca62765699..a42f5b2b024d 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -351,6 +351,9 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata, sta->sta_state = IEEE80211_STA_NONE; + /* Mark TID as unreserved */ + sta->reserved_tid = IEEE80211_TID_UNRESERVED; + ktime_get_ts(&uptime); sta->last_connected = uptime.tv_sec; ewma_init(&sta->avg_signal, 1024, 8); |