diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-06-30 21:23:23 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-06-30 21:23:23 +0000 |
commit | 03a3b230428af3dfad8a2660809025cc47b938c6 (patch) | |
tree | ef8ffae136509b04a3591b2f9fd5c7b6b3d2cc99 /sys/net80211/ieee80211_scan_sta.c | |
parent | 59be299a4e0e2fe099e874859863a1c5971b06cb (diff) | |
download | FreeBSD-src-03a3b230428af3dfad8a2660809025cc47b938c6.zip FreeBSD-src-03a3b230428af3dfad8a2660809025cc47b938c6.tar.gz |
Change the channel number in the scan results struct to be a pointer to the
operating channel and use this in the scan cache rather than directly using
ic_curchan. Some firmware cards can only do a full scan and so ic_curchan does
not have the correct value.
Also add IEEE80211_CHAN2IEEE to directly dereference ic_ieee from the channel
to be used in the fast path.
Reviewed by: sam, sephe
Approved by: re (kensmith)
Diffstat (limited to 'sys/net80211/ieee80211_scan_sta.c')
-rw-r--r-- | sys/net80211/ieee80211_scan_sta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c index 7bd04c8..88e5090 100644 --- a/sys/net80211/ieee80211_scan_sta.c +++ b/sys/net80211/ieee80211_scan_sta.c @@ -257,7 +257,7 @@ found: memcpy(ise->se_tstamp.data, sp->tstamp, sizeof(ise->se_tstamp)); ise->se_intval = sp->bintval; ise->se_capinfo = sp->capinfo; - ise->se_chan = ic->ic_curchan; + ise->se_chan = sp->curchan; ise->se_fhdwell = sp->fhdwell; ise->se_fhindex = sp->fhindex; ise->se_erp = sp->erp; |