Skip to content
Snippets Groups Projects
Verified Commit 046b3d7b authored by Balalakshmi Arunachalam Rajendran's avatar Balalakshmi Arunachalam Rajendran Committed by IOPSYS Dev
Browse files

add fronthauls to ieee1905 traffic exclusion list

parent 28bc2144
No related branches found
No related tags found
1 merge request!629Add FH interfaces to exclude i1905 traffic
Pipeline #190870 passed
......@@ -84,6 +84,19 @@ bsta_disable() {
sync_credentials() {
bands=""
json_init
get_mld_ifname() {
local mld_section=$1
local reqd_mld_id=$2
local mld_id mld_ifname
config_get mld_id $mld_section id
config_get mld_ifname $mld_section ifname
if [ "$mld_id" == "$reqd_mld_id" ]; then
echo $mld_ifname
fi
}
mapagent_process_fh() {
local section=$1
local dev=$2
......@@ -91,6 +104,22 @@ sync_credentials() {
multi_ap=$(get_type_by_section $section)
[ "$multi_ap" == "0" ] && return
config_get enabled $section enabled
if [ "$enabled" == "1" ] && [ "$multi_ap" == "2" ]; then
config_get mld_id $section mld_id
if [ -n "$mld_id" ]; then
local mld_ifname
mld_ifname=$(config_foreach get_mld_ifname mld $mld_id)
ifname=$mld_ifname
else
config_get ifname $section ifname
fi
if [ -n "$ifname" ] && ! echo "$(uci get ieee1905.@al-iface[0].exclude_ifname 2>/dev/null)" | grep -wq "$ifname"; then
uci -q add_list ieee1905.@al-iface[0].exclude_ifname="$ifname"
fi
fi
config_get device $section device
[ "$dev" != "$device" ] && return
......@@ -183,6 +212,7 @@ sync_credentials() {
config_foreach mapagent_process_radio radio
uci commit ieee1905
kill -SIGHUP `pidof ieee1905d`
json_cleanup
}
......@@ -675,6 +705,7 @@ teardown_iface() {
uci -q delete wireless.${section}.multi_ap_backhaul_ssid
uci -q delete wireless.${section}.multi_ap_backhaul_key
uci -q delete wireless.${section}.mld
uci -q del_list ieee1905.@al-iface[0].exclude_ifname=$2
}
config_load wireless
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment