Date: Sun, 8 May 2005 23:10:09 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 76714 for review Message-ID: <200505082310.j48NA99Q007330@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=76714 Change 76714 by sam@sam_ebb on 2005/05/08 23:09:20 set priority on outbound management frames Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211_output.c#9 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211_output.c#9 (text+ko) ==== @@ -259,7 +259,7 @@ ieee80211_pwrsave(ni, m); goto reclaim; } - /* calculate priority so we can find the tx queue */ + /* calculate priority so drivers can find the tx queue */ if (ieee80211_classify(ni, m)) { IEEE80211_DPRINTF(vap, IEEE80211_MSG_OUTPUT, "%s: discard, classification failure\n", @@ -402,6 +402,9 @@ ether_sprintf(wh->i_addr1), __func__); wh->i_fc[1] |= IEEE80211_FC1_WEP; } + + IEEE80211_NODE_STAT(ni, tx_mgmt); + #ifdef IEEE80211_DEBUG /* avoid printing too many frames */ if ((ieee80211_msg_debug(vap) && doprint(vap, type)) || @@ -416,7 +419,12 @@ #endif BPF_MTAP(ifp, m); /* 802.11 tx path */ - IEEE80211_NODE_STAT(ni, tx_mgmt); + if (ni->ni_flags & IEEE80211_NODE_QOS) { + /* NB: force all management frames to highest queue */ + M_WME_SETAC(m, WME_AC_VO); + } else + M_WME_SETAC(m, WME_AC_BE); + IF_ENQUEUE(&ic->ic_mgtq, m); /* NB: alternate tx path */ if_start(ic->ic_ifp); /* dispatch to device */ return 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505082310.j48NA99Q007330>