PERFORCE change 45447 for review
Sam Leffler
sam at FreeBSD.org
Fri Jan 16 09:30:26 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=45447
Change 45447 by sam at sam_ebb on 2004/01/16 09:29:45
when changing modes reset the rate set so drivers have
view consistent with ic_ibss_chan; this eliminates the
need for the hack in the ath driver where it recovers
when the rate set is empty and also fixes a problem where
you switch modes while operating in hostap mode
Affected files ...
.. //depot/projects/netperf+sockets/sys/net80211/ieee80211.c#5 edit
Differences ...
==== //depot/projects/netperf+sockets/sys/net80211/ieee80211.c#5 (text+ko) ====
@@ -735,6 +735,15 @@
ic->ic_flags &= ~IEEE80211_F_SHSLOT;
}
+ /*
+ * Setup an initial rate set according to the
+ * current/default channel selected above. This
+ * will be changed when scanning but must exist
+ * now so driver have a consistent state of ic_ibss_chan.
+ */
+ if (ic->ic_bss) /* NB: can be called before lateattach */
+ ic->ic_bss->ni_rates = ic->ic_sup_rates[mode];
+
ic->ic_curmode = mode;
return 0;
#undef N
More information about the p4-projects
mailing list