summaryrefslogtreecommitdiff
path: root/package/madwifi/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/madwifi/files')
-rw-r--r--package/madwifi/files/etc/hotplug.d/net/10-madwifi12
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh3
2 files changed, 15 insertions, 0 deletions
diff --git a/package/madwifi/files/etc/hotplug.d/net/10-madwifi b/package/madwifi/files/etc/hotplug.d/net/10-madwifi
new file mode 100644
index 0000000000..f5afce3f21
--- /dev/null
+++ b/package/madwifi/files/etc/hotplug.d/net/10-madwifi
@@ -0,0 +1,12 @@
+if [ "$ACTION" = "add" -o "$ACTION" = "register" ]; then
+ case "$INTERFACE" in
+ ath*.sta*)
+ local BASEIF="${INTERFACE%%\.*}"
+
+ include /lib/network
+ scan_interfaces
+ local CONFIG="$(find_config "$BASEIF")"
+ [ -n "$CONFIG" ] && setup_interface "$INTERFACE" "$CONFIG"
+ ;;
+ esac
+fi
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 5a47f70193..fe1e582f5b 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -120,6 +120,9 @@ enable_atheros() {
iwpriv "$ifname" ff "$ff"
fi
+ config_get wdssep "$vif" wdssep
+ [ -n "$wdssep" ] && iwpriv "$ifname" wdssep "$wdssep"
+
config_get wds "$vif" wds
case "$wds" in
1|on|enabled) wds=1;;