mwifiex: disable UAPSD mode when AP starts
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 30 Jan 2015 08:40:07 +0000 (00:40 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Feb 2015 13:28:56 +0000 (15:28 +0200)
When AP is started, firmware exits power save mode. This
means power save manager of AP takes priority over station.
Firmware stop sending periodic AWAKE events to host.

We may have UAPSD enabled on station which buffers data
packets until AWAKE event from firmware. Data path is
unnecessarily blocked in this case. This patch disables
UAPSD mode to reenable transmit data path.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/sta_cmdresp.c

index 39f31766812fd84da2faca04ad2798dae419f28d..5f8da5924666275615482fd07de75fa46d4bfb4a 100644 (file)
@@ -1105,6 +1105,9 @@ int mwifiex_process_sta_cmdresp(struct mwifiex_private *priv, u16 cmdresp_no,
        case HostCmd_CMD_UAP_SYS_CONFIG:
                break;
        case HostCmd_CMD_UAP_BSS_START:
+               adapter->tx_lock_flag = false;
+               adapter->pps_uapsd_mode = false;
+               adapter->delay_null_pkt = false;
                priv->bss_started = 1;
                break;
        case HostCmd_CMD_UAP_BSS_STOP: