]> git.karo-electronics.de Git - linux-beck.git/commit
cfg80211: Extend channel to frequency mapping for 802.11j
authorBruno Randolf <br1@einfach.org>
Mon, 17 Jan 2011 04:37:28 +0000 (13:37 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Jan 2011 20:34:17 +0000 (15:34 -0500)
commit59eb21a6504731fc16db4cf9463065dd61093e08
tree4a3732d451c85a5949c6d6294db51a56530677d8
parent60f2d1d506195803fa6e1dcf3972637b740fdd60
cfg80211: Extend channel to frequency mapping for 802.11j

Extend channel to frequency mapping for 802.11j Japan 4.9GHz band, according to
IEEE802.11 section 17.3.8.3.2 and Annex J. Because there are now overlapping
channel numbers in the 2GHz and 5GHz band we can't map from channel to
frequency without knowing the band. This is no problem as in most contexts we
know the band. In places where we don't know the band (and WEXT compatibility)
we assume the 2GHz band for channels below 14.

This patch does not implement all channel to frequency mappings defined in
802.11, it's just an extension for 802.11j 20MHz channels. 5MHz and 10MHz
channels as well as 802.11y channels have been omitted.

The following drivers have been updated to reflect the API changes:
iwl-3945, iwl-agn, iwmc3200wifi, libertas, mwl8k, rt2x00, wl1251, wl12xx.
The drivers have been compile-tested only.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Brian Prodoehl <bprodoehl@gmail.com>
Acked-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
18 files changed:
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwmc3200wifi/cfg80211.c
drivers/net/wireless/iwmc3200wifi/rx.c
drivers/net/wireless/libertas/cfg.c
drivers/net/wireless/mwl8k.c
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/wl1251/rx.c
drivers/net/wireless/wl12xx/rx.c
include/net/cfg80211.h
net/mac80211/ibss.c
net/mac80211/mesh.c
net/mac80211/mlme.c
net/mac80211/scan.c
net/wireless/reg.c
net/wireless/util.c
net/wireless/wext-compat.c