PERFORCE change 76714 for review
Sam Leffler
sam at FreeBSD.org
Sun May 8 16:10:11 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=76714
Change 76714 by sam at 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;
More information about the p4-projects
mailing list