wl18xx: sane defaults for HT capabilities
authorArik Nemtsov <arik@wizery.com>
Wed, 13 Jun 2012 16:09:25 +0000 (19:09 +0300)
committerLuciano Coelho <coelho@ti.com>
Thu, 21 Jun 2012 13:48:20 +0000 (16:48 +0300)
commitfa2adfcdbd88124e8b7cc46c6363b1343dabc09d
tree7a821003a5b3178ca39db9989f2b9c20fc3002de
parent68a847f2c1ea2b974a28c5b537fe846522d7a9c0
wl18xx: sane defaults for HT capabilities

Introduce a default set of HT capabilities that are set according to the
number of antennas on the board. Move the HT setting code down to allow
the number of antennas to be set (and optionally overridden) before it.

Remove the "mimo" HT option, since the default mode now enables MIMO is
possible.

Use this opportunity to add a helper function for setting HT
capabilities and reduce the volume of the code a bit.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wl18xx/main.c
drivers/net/wireless/ti/wlcore/wlcore.h