mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-08 13:37:07 +08:00
Compare commits
1 Commits
emctrl_exa
...
bsta_mlo_o
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24b613f2b0 |
@@ -8,6 +8,7 @@ generate_wireless_sta_config=0
|
|||||||
network_mode="$(fw_printenv -n netmode)" # default is layer3
|
network_mode="$(fw_printenv -n netmode)" # default is layer3
|
||||||
multiap_mode="$(fw_printenv -n multiap_mode)" # default is full
|
multiap_mode="$(fw_printenv -n multiap_mode)" # default is full
|
||||||
disable_mlo="$(fw_printenv -n disable_mlo)"
|
disable_mlo="$(fw_printenv -n disable_mlo)"
|
||||||
|
disable_mlo="${disable_mlo:-0}"
|
||||||
|
|
||||||
is_airoha() {
|
is_airoha() {
|
||||||
[ -f /proc/device-tree/compatible ] || return
|
[ -f /proc/device-tree/compatible ] || return
|
||||||
@@ -26,6 +27,8 @@ is_qualcomm() {
|
|||||||
|
|
||||||
generate_multiap_config() {
|
generate_multiap_config() {
|
||||||
devidx=0
|
devidx=0
|
||||||
|
sta_num=0
|
||||||
|
mlo_one_sta=0
|
||||||
|
|
||||||
generate_config() {
|
generate_config() {
|
||||||
dev="$1"
|
dev="$1"
|
||||||
@@ -113,6 +116,14 @@ generate_multiap_config() {
|
|||||||
uci set mapagent.@radio[-1].band="$mode_band"
|
uci set mapagent.@radio[-1].band="$mode_band"
|
||||||
|
|
||||||
if [ "$network_mode" == "extender" ]; then
|
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 add mapagent bsta
|
||||||
uci set mapagent.@bsta[-1].device="$device"
|
uci set mapagent.@bsta[-1].device="$device"
|
||||||
uci set mapagent.@bsta[-1].ifname="$ifname"
|
uci set mapagent.@bsta[-1].ifname="$ifname"
|
||||||
@@ -141,6 +152,8 @@ generate_multiap_config() {
|
|||||||
ubus call uci set "{\"config\":\"wireless\",\"type\":\"wifi-iface\", \
|
ubus call uci set "{\"config\":\"wireless\",\"type\":\"wifi-iface\", \
|
||||||
\"match\":{\"mode\":\"sta\", \"ifname\":\"$ifname\", \"device\":\"$device\"},\"values\":{\"multi_ap\":\"1\"}}" 2>/dev/null
|
\"match\":{\"mode\":\"sta\", \"ifname\":\"$ifname\", \"device\":\"$device\"},\"values\":{\"multi_ap\":\"1\"}}" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
sta_num=$((sta_num+1))
|
||||||
|
}
|
||||||
else
|
else
|
||||||
uci add mapagent ap
|
uci add mapagent ap
|
||||||
uci set mapagent.@ap[-1].type="fronthaul"
|
uci set mapagent.@ap[-1].type="fronthaul"
|
||||||
|
|||||||
Reference in New Issue
Block a user