mwifiex: cleanup in mwifiex_fill_cap_info()
authorAmitkumar Karwar <akarwar@marvell.com>
Sat, 8 Feb 2014 00:27:31 +0000 (16:27 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Feb 2014 20:36:18 +0000 (15:36 -0500)
commit341b88007275121e9d85e3e38fc6b7546a4e7e9d
tree3a48351c5018bf4427cc4c8fce48f06ca70df73f
parent4bcf93d3a4d6f145e9d871afc4797018d33c4bb1
mwifiex: cleanup in mwifiex_fill_cap_info()

Pass 'struct ieee80211_ht_cap' pointer to
mwifiex_fill_cap_info() instead of
'struct mwifiex_ie_types_htcap' pointer, because the routine
internally uses the later one.
This patch also adds WARN_ON_ONCE check for NULL band.

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/11n.c
drivers/net/wireless/mwifiex/11n.h
drivers/net/wireless/mwifiex/join.c
drivers/net/wireless/mwifiex/scan.c