diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2007-06-30 21:23:23 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2007-06-30 21:23:23 +0000 |
| commit | b54b1bab4b4327346a420892b43703bc189462f0 (patch) | |
| tree | ef8ffae136509b04a3591b2f9fd5c7b6b3d2cc99 /sys/dev/wi | |
| parent | d35985e711c42df643ade7ffb2bf1b0d407eb3b1 (diff) | |
Notes
Diffstat (limited to 'sys/dev/wi')
| -rw-r--r-- | sys/dev/wi/if_wi.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 16f2d9fc014c..86f8b968ca80 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -3098,7 +3098,7 @@ wi_scan_result(struct wi_softc *sc, int fid, int cnt) memcpy(wh.i_addr2, ws_dat.wi_bssid, sizeof(ap->bssid)); memcpy(wh.i_addr3, ws_dat.wi_bssid, sizeof(ap->bssid)); - sp.chan = ap->channel = le16toh(ws_dat.wi_chid); + ap->channel = le16toh(ws_dat.wi_chid); ap->signal = le16toh(ws_dat.wi_signal); ap->noise = le16toh(ws_dat.wi_noise); ap->quality = ap->signal - ap->noise; @@ -3114,6 +3114,12 @@ wi_scan_result(struct wi_softc *sc, int fid, int cnt) sp.ssid = (uint8_t *)&ssid[0]; memcpy(sp.ssid + 2, ap->name, ap->namelen); sp.ssid[1] = ap->namelen; + sp.bchan = ap->channel; + sp.curchan = ieee80211_find_channel(ic, + ieee80211_ieee2mhz(ap->channel, IEEE80211_CHAN_B), + IEEE80211_CHAN_B); + if (sp.curchan == NULL) + sp.curchan = &ic->ic_channels[0]; sp.rates = &rates[0]; sp.tstamp = (uint8_t *)&rstamp; printf("calling add_scan \n"); |
