mac80211: use helper function to access ieee802_1d_to_ac[]

cleanup patch to make use of ieee80211_ac_from_tid() to retrieve ac from
ieee802_1d_to_ac[]

Signed-off-by: Amadeusz Sławiński <amadeusz.slawinski@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Amadeusz Sławiński
2017-01-24 16:42:10 +01:00
committed by Johannes Berg
parent 42f82e2e62
commit 731977e97b
3 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local,
*/
if (*p & IEEE80211_QOS_CTL_EOSP)
*p &= ~IEEE80211_QOS_CTL_EOSP;
ac = ieee802_1d_to_ac[tid & 7];
ac = ieee80211_ac_from_tid(tid);
} else {
ac = IEEE80211_AC_BE;
}