From 3c8ac1c94d3be039c30a603082198768a82f4732 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Wed, 19 Sep 2018 10:43:42 -0400 Subject: netifd: fix wpa mixed mode matching Change wpa mixed mode matching to not accidently catch wep+mixed. All documented cases have the character between {wpa,psk} and mixed as a '-' but no need to break things which were working, so preserve the * case. Reported-by: "Rick Farina (Zero_Chaos)" [Allow "psk-mixed" to be prefixed, to align with the *psk2* and *psk* cases, slightly reword subject and commit message.] Signed-off-by: Jo-Philipp Wich --- scripts/netifd-wireless.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/netifd-wireless.sh') diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh index 8816bff..45f84fe 100644 --- a/scripts/netifd-wireless.sh +++ b/scripts/netifd-wireless.sh @@ -214,7 +214,7 @@ wireless_vif_parse_encryption() { wpa2*|*psk2*) wpa=2 ;; - *mixed*) + wpa*mixed*|psk*mixed*) wpa=3 ;; wpa*|*psk*) -- cgit v1.2.3