From 509ffb22475ebdd5291d510a098f996473951344 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 27 Sep 2015 01:15:22 +0200 Subject: [PATCH 1/1] wireless: fix bogus isolate setting on unbridged configuration This was caused by a faulty test for the isolate option (arithmetic on a variable with no default) Signed-off-by: Felix Fietkau --- scripts/netifd-wireless.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh index 83a8223..d5f3867 100644 --- a/scripts/netifd-wireless.sh +++ b/scripts/netifd-wireless.sh @@ -254,10 +254,8 @@ _wireless_set_brsnoop_isolation() { json_get_var isolate isolate - [ $isolate -gt 0 -o -z "$network_bridge" ] && return - - [ -z "$multicast_to_unicast" ] && multicast_to_unicast=1 - [ $multicast_to_unicast -gt 0 ] && json_add_boolean isolate 1 + [ ${isolate:-0} -gt 0 -o -z "$network_bridge" ] && return + [ ${multicast_to_unicast:-1} -gt 0 ] && json_add_boolean isolate 1 } for_each_interface() { -- 2.11.0