mwifiex: use IEEE80211_HT_CAP_ macros for 11n cap_info
authorMarc Yang <yangyang@marvell.com>
Sat, 26 Mar 2011 02:47:02 +0000 (19:47 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 20:20:01 +0000 (16:20 -0400)
commit6d2bd916afe6950b50f750cd82bbb9c6ff58611f
treeb8e53e3b6dfcd1dbed899cd3b6afd60110dec450
parentb93f85f0fb019f527b68569aafb836c94b89a47e
mwifiex: use IEEE80211_HT_CAP_ macros for 11n cap_info

The hw_dot_11n_dev_cap reported by firmware hw_spec
has different format than the 11n capabilities.
Hence a lot of SET_ and RESET_ bit operation macros
were used to convert the dev_cap format to 11n
capability format. However the locally defined 11n
ht_cap macros are not necessary as we can use
IEEE80211_HT_CAP_ macros directly.

The 32-bit dev_cap bitmap is added as comment to
explain the mapping between firmware and 11n spec.

Some unused macros and unnecessary adapter variables
are also removed.

Signed-off-by: Marc Yang <yangyang@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@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/cfg80211.c
drivers/net/wireless/mwifiex/cmdevt.c
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/init.c
drivers/net/wireless/mwifiex/join.c
drivers/net/wireless/mwifiex/main.h