summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArik Nemtsov2012-11-28 10:42:46 +0100
committerLuciano Coelho2012-12-11 11:37:23 +0100
commitc80daad625b382fcd72ad68a5c0a26933263aa85 (patch)
tree18b2987268f238f497ecd24c137c66e3d00b8f3f /drivers
parentwlcore: consolidate Rx BA bitmap management to links struct (diff)
downloadkernel-qcow2-linux-c80daad625b382fcd72ad68a5c0a26933263aa85.tar.gz
kernel-qcow2-linux-c80daad625b382fcd72ad68a5c0a26933263aa85.tar.xz
kernel-qcow2-linux-c80daad625b382fcd72ad68a5c0a26933263aa85.zip
wl18xx: support MIMO only if HT mode is not forced to SISO
Don't use MIMO rates when HT mode is forced to SISO, even if we have multiple antennas. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ti/wl18xx/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 3f6762c9b9a7..0ff9bc7b1f33 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -1078,7 +1078,12 @@ static bool wl18xx_is_mimo_supported(struct wl1271 *wl)
{
struct wl18xx_priv *priv = wl->priv;
- return priv->conf.phy.number_of_assembled_ant2_4 >= 2;
+ /* only support MIMO with multiple antennas, and when SISO
+ * is not forced through config
+ */
+ return (priv->conf.phy.number_of_assembled_ant2_4 >= 2) &&
+ (priv->conf.ht.mode != HT_MODE_WIDE) &&
+ (priv->conf.ht.mode != HT_MODE_SISO20);
}
/*