rsi: set immediate wakeup bit
authorKarun Eagalapati <karun256@gmail.com>
Thu, 6 Jul 2017 14:37:14 +0000 (20:07 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:22:37 +0000 (17:22 +0300)
immediate wakeup bit is set while sending internal management
frame to the firmware.

Signed-off-by: Karun Eagalapati <karun256@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_hal.c

index c2303599c12e9b9380818d7e81be9b3881566866..7c9224fa53a3b285c629074b8fd65a49610e25fb 100644 (file)
@@ -149,6 +149,7 @@ int rsi_send_mgmt_pkt(struct rsi_common *common,
        extnd_size = ((uintptr_t)skb->data & 0x3);
 
        if (tx_params->flags & INTERNAL_MGMT_PKT) {
+               skb->data[1] |= BIT(7); /* Immediate Wakeup bit*/
                if ((extnd_size) > skb_headroom(skb)) {
                        rsi_dbg(ERR_ZONE, "%s: Unable to send pkt\n", __func__);
                        dev_kfree_skb(skb);