summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_scan.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-06-30 21:23:23 +0000
committerthompsa <thompsa@FreeBSD.org>2007-06-30 21:23:23 +0000
commit03a3b230428af3dfad8a2660809025cc47b938c6 (patch)
treeef8ffae136509b04a3591b2f9fd5c7b6b3d2cc99 /sys/net80211/ieee80211_scan.h
parent59be299a4e0e2fe099e874859863a1c5971b06cb (diff)
downloadFreeBSD-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.h')
-rw-r--r--sys/net80211/ieee80211_scan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_scan.h b/sys/net80211/ieee80211_scan.h
index 4881aea..d8953c4 100644
--- a/sys/net80211/ieee80211_scan.h
+++ b/sys/net80211/ieee80211_scan.h
@@ -117,8 +117,8 @@ void ieee80211_scan_iterate(struct ieee80211com *,
struct ieee80211_scanparams {
uint16_t capinfo; /* 802.11 capabilities */
uint16_t fhdwell; /* FHSS dwell interval */
- uint8_t chan; /* */
- uint8_t bchan;
+ struct ieee80211_channel *curchan;
+ uint8_t bchan; /* chan# advertised inside beacon */
uint8_t fhindex;
uint8_t erp;
uint16_t bintval;
OpenPOWER on IntegriCloud