Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2004 09:30:24 -0800 (PST)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 45447 for review
Message-ID:  <200401161730.i0GHUOIk088964@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=45447

Change 45447 by sam@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401161730.i0GHUOIk088964>