X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e3bd6b245abb37a08f7fe7b20832b90bd7f09d52..b217dc27cc1cc4912d73da025d232a8bc1aa9673:/package/madwifi/files/lib/wifi/madwifi.sh diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index a3cf4d75e..24d371b38 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -221,7 +221,7 @@ enable_atheros() { [ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&- config_get distance "$device" distance - [ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&- + [ -n "$distance" ] && sysctl -w dev."$device".distance="$distance" >&- config_get rate "$vif" rate [ -n "$rate" ] && iwconfig "$ifname" rate "${rate%%.*}" @@ -300,8 +300,10 @@ enable_atheros() { config_set "$vif" bridge "$bridge" start_net "$ifname" "$net_cfg" } - [ -n "$ssid" ] && iwconfig "$ifname" essid on - iwconfig "$ifname" essid "$ssid" + [ -n "$ssid" ] && { + iwconfig "$ifname" essid on + iwconfig "$ifname" essid "$ssid" + } set_wifi_up "$vif" "$ifname" # TXPower settings only work if device is up already