Compare commits

...

1 Commits

Author SHA1 Message Date
Janusz Dziedzic
24b613f2b0 map-agent: bsta mlo one netdev
For MLO one netdev and multiple links
will be used and managed by wpa_supplicant.
2024-08-01 13:57:07 +00:00

View File

@@ -8,6 +8,7 @@ generate_wireless_sta_config=0
network_mode="$(fw_printenv -n netmode)" # default is layer3
multiap_mode="$(fw_printenv -n multiap_mode)" # default is full
disable_mlo="$(fw_printenv -n disable_mlo)"
disable_mlo="${disable_mlo:-0}"
is_airoha() {
[ -f /proc/device-tree/compatible ] || return
@@ -26,6 +27,8 @@ is_qualcomm() {
generate_multiap_config() {
devidx=0
sta_num=0
mlo_one_sta=0
generate_config() {
dev="$1"
@@ -113,6 +116,14 @@ generate_multiap_config() {
uci set mapagent.@radio[-1].band="$mode_band"
if [ "$network_mode" == "extender" ]; then
[ "$disable_mlo" == "1" ] || [ "$disable_mlo" == "0" -a "$sta_num" == "0" ] && {
# Do it when agent will be ready
#[ is_qualcomm -a "$disable_mlo" == "0" -a "$sta_num" == "0" ] && {
# ifname="wlan0"
# mode_band="any"
#}
uci add mapagent bsta
uci set mapagent.@bsta[-1].device="$device"
uci set mapagent.@bsta[-1].ifname="$ifname"
@@ -141,6 +152,8 @@ generate_multiap_config() {
ubus call uci set "{\"config\":\"wireless\",\"type\":\"wifi-iface\", \
\"match\":{\"mode\":\"sta\", \"ifname\":\"$ifname\", \"device\":\"$device\"},\"values\":{\"multi_ap\":\"1\"}}" 2>/dev/null
fi
sta_num=$((sta_num+1))
}
else
uci add mapagent ap
uci set mapagent.@ap[-1].type="fronthaul"