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.h | |
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.h')
-rw-r--r-- | sys/net80211/_ieee80211.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/_ieee80211.h b/sys/net80211/_ieee80211.h index 8747bfc..d952491 100644 --- a/sys/net80211/_ieee80211.h +++ b/sys/net80211/_ieee80211.h @@ -229,6 +229,8 @@ struct ieee80211_channel { (IEEE80211_IS_CHAN_2GHZ(_c) && \ ((_c)->ic_flags & IEEE80211_CHAN_HT) != 0) +#define IEEE80211_CHAN2IEEE(_c) (_c)->ic_ieee + /* ni_chan encoding for FH phy */ #define IEEE80211_FH_CHANMOD 80 #define IEEE80211_FH_CHAN(set,pat) (((set)-1)*IEEE80211_FH_CHANMOD+(pat)) |