mwifiex: Enable dynamic bandwidth signalling
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 16 Dec 2016 07:25:45 +0000 (12:55 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:25:58 +0000 (13:25 +0200)
Enable dynamic bandwidth signalling by setting the corresponding
bit in MAC control register.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/fw.h
drivers/net/wireless/marvell/mwifiex/init.c

index f48247cfc548fd0b410dff71d3d6b57dbb4d5697..55db158fd1565b6001833cc48443beb73a5088fb 100644 (file)
@@ -441,6 +441,7 @@ enum mwifiex_channel_flags {
 #define HostCmd_ACT_MAC_PROMISCUOUS_ENABLE    BIT(7)
 #define HostCmd_ACT_MAC_ALL_MULTICAST_ENABLE  BIT(8)
 #define HostCmd_ACT_MAC_ADHOC_G_PROTECTION_ON BIT(13)
+#define HostCmd_ACT_MAC_DYNAMIC_BW_ENABLE     BIT(16)
 
 #define HostCmd_BSS_MODE_IBSS               0x0002
 #define HostCmd_BSS_MODE_ANY                0x0003
index b36cb3fef35881112e7ff1246f9fb085e393bdb1..0e89ccfa244ef149a73605337213349f190bebb1 100644 (file)
@@ -92,7 +92,8 @@ int mwifiex_init_priv(struct mwifiex_private *priv)
        for (i = 0; i < ARRAY_SIZE(priv->wep_key); i++)
                memset(&priv->wep_key[i], 0, sizeof(struct mwifiex_wep_key));
        priv->wep_key_curr_index = 0;
-       priv->curr_pkt_filter = HostCmd_ACT_MAC_RX_ON | HostCmd_ACT_MAC_TX_ON |
+       priv->curr_pkt_filter = HostCmd_ACT_MAC_DYNAMIC_BW_ENABLE |
+                               HostCmd_ACT_MAC_RX_ON | HostCmd_ACT_MAC_TX_ON |
                                HostCmd_ACT_MAC_ETHERNETII_ENABLE;
 
        priv->beacon_period = 100; /* beacon interval */