wlcore: define number of supported bands internally
authorArik Nemtsov <arik@wizery.com>
Tue, 3 Jul 2012 06:11:03 +0000 (09:11 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2012 16:10:14 +0000 (12:10 -0400)
commit091185d6bc77d8177fe894b35d64d3ad081c7c30
tree300a93f396246aebe311ffd230d8f8de0db0da09
parent4455556d71951cfb6010e267efd00a52b63c2c20
wlcore: define number of supported bands internally

Avoid using the IEEE80211_NUM_BANDS constant for arrays sizes etc, as
this can contain bands unsupported by the driver (e.g. 60Ghz). Use an
internal constant to determine the number of bands.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/wlcore.h
drivers/net/wireless/ti/wlcore/wlcore_i.h