wireless: Add channel/frequency conversions to ieee80211.h
authorDavid Kilroy <kilroyd@googlemail.com>
Tue, 23 Dec 2008 14:03:38 +0000 (14:03 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:58:46 +0000 (15:58 -0500)
commit9ee677c2276bfcbcf68042ec2718a504af0c5fd7
tree0b5528241690e143c60832d319ddbb2ad1c5d7f1
parenteaee7cc2c180c291084a1c1f49cd2bf13002b3e1
wireless: Add channel/frequency conversions to ieee80211.h

Added mappings for FHSS, DSSS and OFDM channels - with macros to point
HR DSSS and ERP to the DSSS mappings. Currently just static inline
functions.

Use the new functions in the older fullmac drivers. This eliminates a
number of const static buffers and removes a couple of range checks that
are now redundant.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Richard Farina <sidhayn@gmail.com>
Acked-by: Jeroen Vreeken <pe1rxq@amsat.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c
drivers/net/wireless/atmel.c
drivers/net/wireless/orinoco/orinoco.c
drivers/net/wireless/rndis_wlan.c
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/zd1201.c
include/linux/ieee80211.h