]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: setup correct skb priority for nullfunc
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 27 Nov 2015 08:37:11 +0000 (09:37 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Dec 2015 14:50:48 +0000 (16:50 +0200)
After queue nullfunc for MCC case, we hit WARN_ON
in xmit.c:2398 while skb priority wasn't set.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/channel.c

index 28bbbef7cabda2cdd06e0c4c2d3d8f0da94f5070..2afb8dabf39a98082a584b168f51cd59f8529d03 100644 (file)
@@ -1101,6 +1101,7 @@ ath_chanctx_send_vif_ps_frame(struct ath_softc *sc, struct ath_vif *avp,
                        nullfunc->frame_control |=
                                cpu_to_le16(IEEE80211_FCTL_PM);
 
+               skb->priority = 7;
                skb_set_queue_mapping(skb, IEEE80211_AC_VO);
                if (!ieee80211_tx_prepare_skb(sc->hw, vif, skb, band, &sta)) {
                        dev_kfree_skb_any(skb);