rsi: fix for WoWLAN wakeup in security mode.
authorSiva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Thu, 5 Jul 2018 12:38:21 +0000 (18:08 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:14:47 +0000 (10:14 +0300)
System is unable to wake-up through magic-packet in secured connections.
Because key descriptor is getting corrupted and firmware is unable to
decrypt the magic packet. Fixed the issue by properly preparing it
before sending it to firmware.

Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mgmt.c

index 8280f3240802a25263a3e64673a727dca3e820e7..1095df7d957350f20b218bd32c8dadb30d3d9153 100644 (file)
@@ -746,7 +746,7 @@ int rsi_hal_load_key(struct rsi_common *common,
                        key_descriptor |= RSI_CIPHER_TKIP;
        }
        key_descriptor |= RSI_PROTECT_DATA_FRAMES;
-       key_descriptor |= ((key_id << RSI_KEY_ID_OFFSET) & RSI_KEY_ID_MASK);
+       key_descriptor |= (key_id << RSI_KEY_ID_OFFSET);
 
        rsi_set_len_qno(&set_key->desc_dword0.len_qno,
                        (frame_len - FRAME_DESC_SZ), RSI_WIFI_MGMT_Q);