From: Amitkumar Karwar Date: Thu, 8 Mar 2012 03:36:07 +0000 (-0800) Subject: mwifiex: correction in number of bitrates X-Git-Tag: upstream/snapshot3+hdmi~7954^2~108^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8763848e03a9098e5b6f81428a98738dc960a436;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index b4890a0..84508b0 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 = { .channels = mwifiex_channels_2ghz, .n_channels = ARRAY_SIZE(mwifiex_channels_2ghz), .bitrates = mwifiex_rates, - .n_bitrates = 14, + .n_bitrates = ARRAY_SIZE(mwifiex_rates), }; static struct ieee80211_channel mwifiex_channels_5ghz[] = {