summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-30 05:22:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-30 05:22:16 +0000
commit55b55f686124a40c859dbb0607af513263f1016f (patch)
tree1482e621ebfd8c0f2d104c1f224651525f7961a1
parente606b1603bd65ac4ecf4e60d4ca20d5296f0ecee (diff)
downloadmtk-20170518-55b55f686124a40c859dbb0607af513263f1016f.zip
mtk-20170518-55b55f686124a40c859dbb0607af513263f1016f.tar.gz
mtk-20170518-55b55f686124a40c859dbb0607af513263f1016f.tar.bz2
madwifi: change the network scripts to use the new wds sta separation feature
SVN-Revision: 12005
-rw-r--r--package/madwifi/Makefile3
-rw-r--r--package/madwifi/files/etc/hotplug.d/net/10-madwifi12
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh3
3 files changed, 16 insertions, 2 deletions
diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile
index 48fa28e..97516e4 100644
--- a/package/madwifi/Makefile
+++ b/package/madwifi/Makefile
@@ -214,9 +214,8 @@ define Build/InstallDev
endef
define KernelPackage/madwifi/install
- $(INSTALL_DIR) $(1)/lib/wifi
- $(INSTALL_DATA) ./files/lib/wifi/madwifi.sh $(1)/lib/wifi
$(INSTALL_DIR) $(1)/usr/sbin
+ $(CP) ./files/* $(1)/
$(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,$(MADWIFI_APPLETS)} $(1)/usr/sbin/
endef
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 0000000..f5afce3
--- /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 5a47f70..fe1e582 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;;