mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
madwifi: change the network scripts to use the new wds sta separation feature
SVN-Revision: 12005
This commit is contained in:
parent
e606b1603b
commit
55b55f6861
@ -214,9 +214,8 @@ define Build/InstallDev
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/madwifi/install
|
define KernelPackage/madwifi/install
|
||||||
$(INSTALL_DIR) $(1)/lib/wifi
|
|
||||||
$(INSTALL_DATA) ./files/lib/wifi/madwifi.sh $(1)/lib/wifi
|
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(CP) ./files/* $(1)/
|
||||||
$(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,$(MADWIFI_APPLETS)} $(1)/usr/sbin/
|
$(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,$(MADWIFI_APPLETS)} $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
12
package/madwifi/files/etc/hotplug.d/net/10-madwifi
Normal file
12
package/madwifi/files/etc/hotplug.d/net/10-madwifi
Normal file
@ -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
|
@ -120,6 +120,9 @@ enable_atheros() {
|
|||||||
iwpriv "$ifname" ff "$ff"
|
iwpriv "$ifname" ff "$ff"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
config_get wdssep "$vif" wdssep
|
||||||
|
[ -n "$wdssep" ] && iwpriv "$ifname" wdssep "$wdssep"
|
||||||
|
|
||||||
config_get wds "$vif" wds
|
config_get wds "$vif" wds
|
||||||
case "$wds" in
|
case "$wds" in
|
||||||
1|on|enabled) wds=1;;
|
1|on|enabled) wds=1;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user