From c6918e3c7e447e6507ff2385f585cfa618854ace Mon Sep 17 00:00:00 2001 From: jmatthew Date: Mon, 16 Jan 2023 22:08:50 +0000 Subject: [PATCH] Fix transmit queue selection based on frame type. I introduced an error 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index a615fdea5fc..130d5b051ce 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -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 @@ -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; -- 2.20.1