[rdkb][common][app][Add wifi hal EHT support]
[Description]
Add wifi hal EHT support.
1. halinterface add EHT support patch.
2. wifi-test-tool add EHT support for config wifi.
3. uci init script align OpenWrt parsing EHT capab.
[Release-log]
N/A
Change-Id: I4b351a61f43f137cec9c7bcf9f3e8e78d5386aff
diff --git a/recipes-wifi/hostapd/files/mac80211.sh b/recipes-wifi/hostapd/files/mac80211.sh
index b83e7aa..6449516 100644
--- a/recipes-wifi/hostapd/files/mac80211.sh
+++ b/recipes-wifi/hostapd/files/mac80211.sh
@@ -132,6 +132,13 @@
mode_band="$band"
channel="$chan"
htmode="$mode"
+ if [ "$band" = "6g" ]
+ then
+ encryption=sae
+ key=12345678
+ else
+ encryption=none
+ fi
done
}
@@ -217,8 +224,11 @@
set wireless.default_radio${devidx}.network=lan
set wireless.default_radio${devidx}.mode=ap
set wireless.default_radio${devidx}.ssid=Filogic_${mode_band}
- set wireless.default_radio${devidx}.encryption=none
+ set wireless.default_radio${devidx}.encryption=${encryption}
EOF
+ [ -n "$key" ] && {
+ uci -q set wireless.default_radio${devidx}.key=${key}
+ }
uci -q commit wireless
devidx=$(($devidx + 1))