Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f918699 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville
Browse files

rtlwifi: rtl8192se: Fix regression due to commit 1bf4bbb4

Beginning with kernel 3.13, this driver fails on some systems. The problem
was bisected to:

Commit 1bf4bbb4
Author: Felix Fietkau <nbd@openwrt.org>
Title: mac80211: send control port protocol frames to the VO queue

There is noting wrong with the above commit. The regression occurs because
V0 queue on RTL8192SE cards uses priority 6, not the usual 7. The fix is to
modify the rtl8192se routine that sets the correct transmit queue.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=74541



Reported-by: default avatarAlex Miller <almiller_1@yahoo.co.uk>
Tested-by: default avatarAlex Miller <almiller_1@yahoo.co.uk>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>    [3.13+]
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 62e54dbb
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -49,6 +49,12 @@ static u8 _rtl92se_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 skb_queue)
	if (ieee80211_is_nullfunc(fc))
	if (ieee80211_is_nullfunc(fc))
		return QSLT_HIGH;
		return QSLT_HIGH;


	/* Kernel commit 1bf4bbb4024dcdab changed EAPOL packets to use
	 * queue V0 at priority 7; however, the RTL8192SE appears to have
	 * that queue at priority 6
	 */
	if (skb->priority == 7)
		return QSLT_VO;
	return skb->priority;
	return skb->priority;
}
}