]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mwifiex: Avoid skipping WEP key deletion for AP
authorGanapathi Bhat <gbhat@marvell.com>
Fri, 3 Feb 2017 13:00:22 +0000 (18:30 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 Feb 2017 08:03:40 +0000 (10:03 +0200)
This patch fixes the issue specific to AP. AP is started with WEP
security and external station is connected to it. Data path works
in this case. Now if AP is restarted with WPA/WPA2 security,
station is able to connect but ping fails.

Driver skips the deletion of WEP keys if interface type is AP.
Removing that redundant check resolves the issue.

Fixes: e57f1734d87a ("mwifiex: add key material v2 support")
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c

index 644f3a2487414e40945f5af89094009f9bc733a2..1532ac9cee0b2f0a4bffda01073db5fa181286ca 100644 (file)
@@ -1159,8 +1159,6 @@ int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp,
                        encrypt_key.is_rx_seq_valid = true;
                }
        } else {
-               if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP)
-                       return 0;
                encrypt_key.key_disable = true;
                if (mac_addr)
                        memcpy(encrypt_key.mac_addr, mac_addr, ETH_ALEN);