Wireless: fix regression error in security detection

This commit is contained in:
bergware
2025-04-26 16:02:31 +02:00
parent ce010035c8
commit b21658100f

View File

@@ -270,6 +270,8 @@ wifi_join(){
sed -ri "s/^(PASSWORD=\").+$/\1$ENCRYPT2\"/" $CFG
fi
SECURITY=${SECURITY:-$ATTR3}
# remove FT indicator
SECURITY=${SECURITY//FT\//}
# regulatory region
REGION=$(grep -Pom1 '^REGION="\K[^"]+' $CFG)
REGION_XX=$(grep -Pom1 '^REGION_XX="\K[^"]+' $CFG)