aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2004-12-17 03:36:24 +0000
committerSam Leffler <sam@FreeBSD.org>2004-12-17 03:36:24 +0000
commit14ae1a9deb84fcc1fb82cb280f457af0ef85a0f5 (patch)
treece5dde574bf411200b885600ffe74c8a2fed898c /sys/dev/wi
parent86c9a453885939e791a00f0b7948a9e5d4592cee (diff)
Notes
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 e59bd3cd9c70d..ac14223143975 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);