1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Bandaid ieee80211_set_chan to handle a channel parameter of "any";

this can happen under certain conditions when scanning.  This logic
will eventually go away with the new scanning code.

While here de-inline the routine.

MFC after:	1 week
This commit is contained in:
Sam Leffler 2005-12-12 18:42:20 +00:00
parent 6cfac1074c
commit 1b49e12042
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153351

View File

@ -217,10 +217,12 @@ ieee80211_node_unauthorize(struct ieee80211_node *ni)
* Set/change the channel. The rate set is also updated as
* to insure a consistent view by drivers.
*/
static __inline void
static void
ieee80211_set_chan(struct ieee80211com *ic,
struct ieee80211_node *ni, struct ieee80211_channel *chan)
{
if (chan == IEEE80211_CHAN_ANYC) /* XXX while scanning */
chan = ic->ic_curchan;
ni->ni_chan = chan;
ni->ni_rates = ic->ic_sup_rates[ieee80211_chan2mode(ic, chan)];
}