Skip to content
Snippets Groups Projects
Commit 756ef7de authored by Jakob Olsson's avatar Jakob Olsson
Browse files

scripts: multiap - enable network prior to backhaul steer

parent 307e4221
Branches
No related tags found
1 merge request!484Revert "agent: remove config syncing from bsta steer resp"
...@@ -285,7 +285,12 @@ bsta_steer() { ...@@ -285,7 +285,12 @@ bsta_steer() {
rc=$(wpa_cli -i $ifname set_n $network_id bssid $bssid) rc=$(wpa_cli -i $ifname set_n $network_id bssid $bssid)
[ "$rc" == "FAIL" ] && { [ "$rc" == "FAIL" ] && {
echo "FAIL: wpa_cli -i $ifname set_n 0 bssid $bssid" > /dev/console echo "1"
return;
}
rc=$(wpa_cli -i $ifname enable_n $network_id)
[ "$rc" == "FAIL" ] && {
echo "1" echo "1"
return; return;
} }
...@@ -293,14 +298,12 @@ bsta_steer() { ...@@ -293,14 +298,12 @@ bsta_steer() {
# reassociate could be used but performed worse during testing # reassociate could be used but performed worse during testing
rc=$(wpa_cli -i $ifname disconnect) rc=$(wpa_cli -i $ifname disconnect)
[ "$rc" == "FAIL" ] && { [ "$rc" == "FAIL" ] && {
echo "FAIL: wpa_cli -i $ifname disconnect" > /dev/console
echo "1" echo "1"
return; return;
} }
rc=$(wpa_cli -i $ifname reconnect) rc=$(wpa_cli -i $ifname reconnect)
[ "$rc" == "FAIL" ] && { [ "$rc" == "FAIL" ] && {
echo "FAIL: wpa_cli -i $ifname reconnect" > /dev/console
echo "1" echo "1"
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment