diff options
Diffstat (limited to 'package/kernel/broadcom-wl/files')
-rw-r--r-- | package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index deb4ddf1d2..2780fa1679 100644 --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh @@ -456,22 +456,22 @@ detect_broadcom() { config_get type wl${i} type [ "$type" = broadcom ] && continue channel=`wlc ifname wl${i} channel` - cat <<EOF -config wifi-device wl${i} - option type broadcom - option channel ${channel:-11} - option txantenna 3 - option rxantenna 3 - # REMOVE THIS LINE TO ENABLE WIFI: - option disabled 1 - -config wifi-iface - option device wl${i} - option network lan - option mode ap - option ssid Lede${i#0} - option encryption none + uci -q batch <<-EOF + set wireless.wl${i}=wifi-device + set wireless.wl${i}.type=broadcom + set wireless.wl${i}.channel=${channel:-11} + set wireless.wl${i}.txantenna=3 + set wireless.wl${i}.rxantenna=3 + set wireless.wl${i}.disabled=1 + + set wireless.default_wl${i}=wifi-iface + set wireless.default_wl${i}.device=wl${i} + set wireless.default_wl${i}.network=lan + set wireless.default_wl${i}.mode=ap + set wireless.default_wl${i}.ssid=Lede${i#0} + set wireless.default_wl${i}.encryption=none EOF + uci -q commit wireless done } |