Fix transmit queue selection based on frame type. I introduced an error
authorjmatthew <jmatthew@openbsd.org>
Mon, 16 Jan 2023 22:08:50 +0000 (22:08 +0000)
committerjmatthew <jmatthew@openbsd.org>
Mon, 16 Jan 2023 22:08:50 +0000 (22:08 +0000)
here when I split up urtwn_tx() to add support for RTL8192EU devices.

from Mikhail (mp395990 at gmail)
ok stsp@

sys/dev/usb/if_urtwn.c

index a615fde..130d5b0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_urtwn.c,v 1.103 2022/08/21 07:56:31 kevlo Exp $    */
+/*     $OpenBSD: if_urtwn.c,v 1.104 2023/01/16 22:08:50 jmatthew Exp $ */
 
 /*-
  * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -1659,7 +1659,7 @@ urtwn_tx(void *cookie, struct mbuf *m, struct ieee80211_node *ni)
                qos = ieee80211_get_qos(wh);
                tid = qos & IEEE80211_QOS_TID;
                qid = ieee80211_up_to_ac(ic, tid);
-       } else if ((wh->i_fc[1] & IEEE80211_FC0_TYPE_MASK)
+       } else if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK)
            != IEEE80211_FC0_TYPE_DATA) {
                /* Use AC VO for management frames. */
                qid = EDCA_AC_VO;