diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-07-03 09:11:03 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-10 12:10:14 -0400 |
commit | 091185d6bc77d8177fe894b35d64d3ad081c7c30 (patch) | |
tree | 300a93f396246aebe311ffd230d8f8de0db0da09 /drivers/net/wireless/ti/wlcore/wlcore_i.h | |
parent | wlcore: don't set SDIO_FAILED flag when driver state is off (diff) | |
download | linux-dev-091185d6bc77d8177fe894b35d64d3ad081c7c30.tar.xz linux-dev-091185d6bc77d8177fe894b35d64d3ad081c7c30.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/wlcore_i.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore_i.h b/drivers/net/wireless/ti/wlcore/wlcore_i.h index 2a0e896b7d0c..0187eef4fb07 100644 --- a/drivers/net/wireless/ti/wlcore/wlcore_i.h +++ b/drivers/net/wireless/ti/wlcore/wlcore_i.h @@ -62,6 +62,9 @@ #define WL12XX_INVALID_ROLE_ID 0xff #define WL12XX_INVALID_LINK_ID 0xff +/* the driver supports the 2.4Ghz and 5Ghz bands */ +#define WLCORE_NUM_BANDS 2 + #define WL12XX_MAX_RATE_POLICIES 16 /* Defined by FW as 0. Will not be freed or allocated. */ @@ -360,7 +363,7 @@ struct wl12xx_vif { int channel; enum nl80211_channel_type channel_type; - u32 bitrate_masks[IEEE80211_NUM_BANDS]; + u32 bitrate_masks[WLCORE_NUM_BANDS]; u32 basic_rate_set; /* |