Message ID | 1556884415-23474-3-git-send-email-yhchuang@realtek.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 82dea406c50946b9653dd80ec6f39a8d6f43ed89 |
Delegated to: | Kalle Valo |
Headers | show |
Series | rtw88: minor fixes from suggestions during review | expand |
<yhchuang@realtek.com> wrote: > From: Yan-Hsuan Chuang <yhchuang@realtek.com> > > AC numbers are defined as enum in mac80211, use them instead of bare > 0-3 indexing. > > Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> 3 patches applied to wireless-drivers-next.git, thanks. 82dea406c509 rtw88: pci: use ieee80211_ac_numbers instead of 0-3 0d7882950c73 rtw88: pci: check if queue mapping exceeds size of ac_to_hwq a3b0c66c5928 rtw88: more descriptions about LPS
diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index cfe05ba..87bfcb3 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -487,10 +487,10 @@ static void rtw_pci_stop(struct rtw_dev *rtwdev) } static u8 ac_to_hwq[] = { - [0] = RTW_TX_QUEUE_VO, - [1] = RTW_TX_QUEUE_VI, - [2] = RTW_TX_QUEUE_BE, - [3] = RTW_TX_QUEUE_BK, + [IEEE80211_AC_VO] = RTW_TX_QUEUE_VO, + [IEEE80211_AC_VI] = RTW_TX_QUEUE_VI, + [IEEE80211_AC_BE] = RTW_TX_QUEUE_BE, + [IEEE80211_AC_BK] = RTW_TX_QUEUE_BK, }; static u8 rtw_hw_queue_mapping(struct sk_buff *skb)