X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/052dece811fc6f676805bf7625c24ff34d36d23e..b313ccbb4052a8eb71948173c83f0372314b7702:/package/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds diff --git a/package/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds b/package/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds index 3ca4cd2dc..d60a31629 100644 --- a/package/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds +++ b/package/broadcom-wl/files/etc/hotplug.d/net/20-broadcom_wds @@ -16,11 +16,23 @@ setup_broadcom_wds() { [ -z "$network" ] && return config_get addr "$CONFIG_SECTION" bssid + addr=$(echo "$addr" | tr 'A-F' 'a-f') [ "$addr" = "$remote" ] && { + local cfg="$CONFIG_SECTION" + include /lib/network scan_interfaces setup_interface "$iface" "$network" + + config_get encryption "$cfg" encryption + config_get key "$cfg" key + config_get ssid "$cfg" ssid + + [ "$encryption" != "none" ] && { + sleep 1 + nas4not lan "$iface" up auto aes "$encryption" "$key" "$ssid" + } } }