diff options
author | Sara Sharon <sara.sharon@intel.com> | 2018-02-19 07:48:40 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-02-22 15:13:03 -0500 |
commit | a1f2ba04cc92414b6b933289365eab878b0b2bf4 (patch) | |
tree | ab2e4b79651071f5214a1632d5d72be6a2156428 /net/mac80211/iface.c | |
parent | 7299d6f7bfd1921c0cfb5e202155f1a5cfdb57d0 (diff) |
mac80211: add get TID helper
Extracting the TID from the QOS header is common enough
to justify helper.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 5fe01f82df12..d13ba064951f 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -1324,8 +1324,7 @@ static void ieee80211_iface_work(struct work_struct *work) | |||
1324 | mutex_lock(&local->sta_mtx); | 1324 | mutex_lock(&local->sta_mtx); |
1325 | sta = sta_info_get_bss(sdata, mgmt->sa); | 1325 | sta = sta_info_get_bss(sdata, mgmt->sa); |
1326 | if (sta) { | 1326 | if (sta) { |
1327 | u16 tid = *ieee80211_get_qos_ctl(hdr) & | 1327 | u16 tid = ieee80211_get_tid(hdr); |
1328 | IEEE80211_QOS_CTL_TID_MASK; | ||
1329 | 1328 | ||
1330 | __ieee80211_stop_rx_ba_session( | 1329 | __ieee80211_stop_rx_ba_session( |
1331 | sta, tid, WLAN_BACK_RECIPIENT, | 1330 | sta, tid, WLAN_BACK_RECIPIENT, |