summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-12-17 03:36:24 +0000
committersam <sam@FreeBSD.org>2004-12-17 03:36:24 +0000
commit18314077b7f2ce96d758bd42b6ce0c909ffcc1d4 (patch)
treece5dde574bf411200b885600ffe74c8a2fed898c /sys/dev/wi
parent584f9ac38a4029d76d5e57562e00788296fc1bd3 (diff)
downloadFreeBSD-src-18314077b7f2ce96d758bd42b6ce0c909ffcc1d4.zip
FreeBSD-src-18314077b7f2ce96d758bd42b6ce0c909ffcc1d4.tar.gz
set ic_ibss_chan when entering RUN state to match ic_bss so the channel
reported when associated to an AP is correct
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index e59bd3c..ac14223 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -2697,6 +2697,7 @@ wi_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
wi_read_rid(sc, WI_RID_CURRENT_CHAN, &val, &buflen);
/* XXX validate channel */
ni->ni_chan = &ic->ic_channels[le16toh(val)];
+ ic->ic_ibss_chan = ni->ni_chan;
#if NBPFILTER > 0
sc->sc_tx_th.wt_chan_freq = sc->sc_rx_th.wr_chan_freq =
htole16(ni->ni_chan->ic_freq);
OpenPOWER on IntegriCloud