Skip to contentSkip to conversation

Patch "mwifiex: Avoid skipping WEP key deletion for AP" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message May 9, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

mwifiex: Avoid skipping WEP key deletion for AP

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
mwifiex-avoid-skipping-wep-key-deletion-for-ap.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From a5b60de6972decc6b50a39abb376077c3c3621c8 Mon Sep 17 00:00:00 2001

From: Ganapathi Bhat <[email protected]>
Date: Fri, 3 Feb 2017 18:30:22 +0530
Subject: mwifiex: Avoid skipping WEP key deletion for AP

From: Ganapathi Bhat <[email protected]>

commit a5b60de6972decc6b50a39abb376077c3c3621c8 upstream.

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")
---
 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c |    2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c +0 -2
@@ -1159,8 +1159,6 @@ int mwifiex_set_encode(struct mwifiex_pr
 			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);

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/mwifiex-avoid-skipping-wep-key-deletion-for-ap.patch