mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
map-agent: map_genconfig: add dpp_chirp section for 2.4GHz
This commit is contained in:
parent
d6cf506901
commit
8554ccf3fc
1 changed files with 11 additions and 10 deletions
|
|
@ -44,19 +44,16 @@ generate_multiap_config() {
|
||||||
2g)
|
2g)
|
||||||
mode_band=2
|
mode_band=2
|
||||||
priority=2
|
priority=2
|
||||||
dpp_chan="81/1"
|
|
||||||
channels="1 6 11"
|
channels="1 6 11"
|
||||||
;;
|
;;
|
||||||
5g)
|
5g)
|
||||||
mode_band=5
|
mode_band=5
|
||||||
priority=1
|
priority=1
|
||||||
dpp_chan="128/36"
|
|
||||||
channels="36-64 100-112"
|
channels="36-64 100-112"
|
||||||
;;
|
;;
|
||||||
6g)
|
6g)
|
||||||
mode_band=6
|
mode_band=6
|
||||||
priority=0
|
priority=0
|
||||||
dpp_chan="133/49"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
@ -158,13 +155,17 @@ generate_multiap_config() {
|
||||||
uci set mapagent.@bsta[-1].band="$mode_band"
|
uci set mapagent.@bsta[-1].band="$mode_band"
|
||||||
uci set mapagent.@bsta[-1].priority="$priority"
|
uci set mapagent.@bsta[-1].priority="$priority"
|
||||||
|
|
||||||
#uci add mapagent dpp_uri
|
# add dpp_chirp section for 2.4GHz bSTA
|
||||||
#uci set mapagent.@dpp_uri[-1].type="qrcode"
|
if [ $mode_band -eq 2 ]; then
|
||||||
#uci set mapagent.@dpp_uri[-1].device="$device"
|
uci add mapagent dpp_chirp
|
||||||
#uci set mapagent.@dpp_uri[-1].ifname="$ifname"
|
uci set mapagent.@dpp_chirp[-1].type="qrcode"
|
||||||
#uci set mapagent.@dpp_uri[-1].band="$mode_band"
|
uci set mapagent.@dpp_chirp[-1].device="$device"
|
||||||
#uci set mapagent.@dpp_uri[-1].chirp_interval="10"
|
uci set mapagent.@dpp_chirp[-1].ifname="$ifname"
|
||||||
#uci add_list mapagent.@dpp_uri[-1].dpp_chan="$dpp_chan"
|
uci set mapagent.@dpp_chirp[-1].band="$mode_band"
|
||||||
|
for channel in $channels; do
|
||||||
|
uci add_list mapagent.@dpp_chirp[-1].channel="$channel"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $generate_wireless_sta_config -eq 1 ]; then
|
if [ $generate_wireless_sta_config -eq 1 ]; then
|
||||||
secname="default_sta_${device}"
|
secname="default_sta_${device}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue