summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/brcm80211/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-07-24 19:35:57 +0400
committerJohn W. Linville <linville@tuxdriver.com>2012-08-06 22:56:29 +0400
commit858a455ba86b0b515d34972e68095ecd912c08cc (patch)
treea38c2f2ef1bf5308757394f3823e020a12e2f4e8 /drivers/net/wireless/brcm80211/include
parentcaacf05e5ad1abf0a2864863da4e33024bc68ec6 (diff)
downloadlinux-858a455ba86b0b515d34972e68095ecd912c08cc.tar.xz
brcmsmac: use ieee80211_channel_to_frequency
Instead of hard-coding almost the same functionality, just use ieee80211_channel_to_frequency() directly. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/include')
-rw-r--r--drivers/net/wireless/brcm80211/include/brcmu_wifi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/brcm80211/include/brcmu_wifi.h b/drivers/net/wireless/brcm80211/include/brcmu_wifi.h
index f10d30274c23..c11a290a1edf 100644
--- a/drivers/net/wireless/brcm80211/include/brcmu_wifi.h
+++ b/drivers/net/wireless/brcm80211/include/brcmu_wifi.h
@@ -67,11 +67,6 @@
#define WL_CHANSPEC_BAND_2G 0x2000
#define INVCHANSPEC 255
-/* used to calculate the chan_freq = chan_factor * 500Mhz + 5 * chan_number */
-#define WF_CHAN_FACTOR_2_4_G 4814 /* 2.4 GHz band, 2407 MHz */
-#define WF_CHAN_FACTOR_5_G 10000 /* 5 GHz band, 5000 MHz */
-#define WF_CHAN_FACTOR_4_G 8000 /* 4.9 GHz band for Japan */
-
#define CHSPEC_CHANNEL(chspec) ((u8)((chspec) & WL_CHANSPEC_CHAN_MASK))
#define CHSPEC_BAND(chspec) ((chspec) & WL_CHANSPEC_BAND_MASK)