mwifiex: correction in number of bitrates
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 8 Mar 2012 03:36:07 +0000 (19:36 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Mar 2012 19:05:08 +0000 (14:05 -0500)
commit8763848e03a9098e5b6f81428a98738dc960a436
treebb295f1bf8c0dba0e11b04cda0ae83a65869f444
parentd11f0ca0121996461b17e93941e9dfa0a9eebbd1
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>
drivers/net/wireless/mwifiex/cfg80211.c