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/mlme.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/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 39b660b9a908..010b127a3937 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2151,7 +2151,7 @@ static void ieee80211_sta_tx_wmm_ac_notify(struct ieee80211_sub_if_data *sdata, | |||
2151 | u16 tx_time) | 2151 | u16 tx_time) |
2152 | { | 2152 | { |
2153 | struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; | 2153 | struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; |
2154 | u16 tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; | 2154 | u16 tid = ieee80211_get_tid(hdr); |
2155 | int ac = ieee80211_ac_from_tid(tid); | 2155 | int ac = ieee80211_ac_from_tid(tid); |
2156 | struct ieee80211_sta_tx_tspec *tx_tspec = &ifmgd->tx_tspec[ac]; | 2156 | struct ieee80211_sta_tx_tspec *tx_tspec = &ifmgd->tx_tspec[ac]; |
2157 | unsigned long now = jiffies; | 2157 | unsigned long now = jiffies; |