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/rx.c | |
parent | 7299d6f7bfd1921c0cfb5e202155f1a5cfdb57d0 (diff) | |
download | op-kernel-dev-a1f2ba04cc92414b6b933289365eab878b0b2bf4.zip op-kernel-dev-a1f2ba04cc92414b6b933289365eab878b0b2bf4.tar.gz |
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/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 478a9c7..3dc162d 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1189,7 +1189,7 @@ static void ieee80211_rx_reorder_ampdu(struct ieee80211_rx_data *rx, ack_policy = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_ACK_POLICY_MASK; - tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; + tid = ieee80211_get_tid(hdr); tid_agg_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[tid]); if (!tid_agg_rx) { @@ -1528,9 +1528,7 @@ ieee80211_rx_h_uapsd_and_pspoll(struct ieee80211_rx_data *rx) ieee80211_has_pm(hdr->frame_control) && (ieee80211_is_data_qos(hdr->frame_control) || ieee80211_is_qos_nullfunc(hdr->frame_control))) { - u8 tid; - - tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; + u8 tid = ieee80211_get_tid(hdr); ieee80211_sta_uapsd_trigger(&rx->sta->sta, tid); } |