PERFORCE change 46947 for review
Sam Leffler
sam at FreeBSD.org
Sat Feb 14 13:19:17 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=46947
Change 46947 by sam at sam_ebb on 2004/02/14 13:18:21
move up initialization of ic_des_chan to before ieee80211_setmode
to silence complaints about a NULL channel in ieee80211_chan2ieee
Affected files ...
.. //depot/projects/netperf+sockets/sys/net80211/ieee80211.c#14 edit
Differences ...
==== //depot/projects/netperf+sockets/sys/net80211/ieee80211.c#14 (text+ko) ====
@@ -155,10 +155,10 @@
/* validate ic->ic_curmode */
if ((ic->ic_modecaps & (1<<ic->ic_curmode)) == 0)
ic->ic_curmode = IEEE80211_MODE_AUTO;
+ ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */
(void) ieee80211_setmode(ic, ic->ic_curmode);
- ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */
if (ic->ic_lintval == 0)
ic->ic_lintval = 100; /* default sleep */
ic->ic_bmisstimeout = 7*ic->ic_lintval; /* default 7 beacons */
More information about the p4-projects
mailing list