diff options
author | Sara Sharon <sara.sharon@intel.com> | 2018-02-19 14:48:40 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-02-22 21:13:03 +0100 |
commit | a1f2ba04cc92414b6b933289365eab878b0b2bf4 (patch) | |
tree | ab2e4b79651071f5214a1632d5d72be6a2156428 /net/mac80211/iface.c | |
parent | 7299d6f7bfd1921c0cfb5e202155f1a5cfdb57d0 (diff) | |
download | linux-a1f2ba04cc92414b6b933289365eab878b0b2bf4.tar.bz2 |
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) mutex_lock(&local->sta_mtx); sta = sta_info_get_bss(sdata, mgmt->sa); if (sta) { - u16 tid = *ieee80211_get_qos_ctl(hdr) & - IEEE80211_QOS_CTL_TID_MASK; + u16 tid = ieee80211_get_tid(hdr); __ieee80211_stop_rx_ba_session( sta, tid, WLAN_BACK_RECIPIENT, |