diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2012-03-07 22:36:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-08 14:05:08 -0500 |
commit | 8763848e03a9098e5b6f81428a98738dc960a436 (patch) | |
tree | bb295f1bf8c0dba0e11b04cda0ae83a65869f444 /drivers/net | |
parent | d11f0ca0121996461b17e93941e9dfa0a9eebbd1 (diff) |
mwifiex: correction in number of bitrates
In recent commit "mwifiex: correct bitrates advertised..", we have
removed 22Mbps and 72Mbps bitrates from supported bitrate array.
It means number of bitrates has reduced from 14 to 12.
Initialize ".n_bitrates" to array size instead of hardcoding it.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index b4890a01ba92..84508b065265 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -646,7 +646,7 @@ static struct ieee80211_supported_band mwifiex_band_2ghz = { | |||
646 | .channels = mwifiex_channels_2ghz, | 646 | .channels = mwifiex_channels_2ghz, |
647 | .n_channels = ARRAY_SIZE(mwifiex_channels_2ghz), | 647 | .n_channels = ARRAY_SIZE(mwifiex_channels_2ghz), |
648 | .bitrates = mwifiex_rates, | 648 | .bitrates = mwifiex_rates, |
649 | .n_bitrates = 14, | 649 | .n_bitrates = ARRAY_SIZE(mwifiex_rates), |
650 | }; | 650 | }; |
651 | 651 | ||
652 | static struct ieee80211_channel mwifiex_channels_5ghz[] = { | 652 | static struct ieee80211_channel mwifiex_channels_5ghz[] = { |