1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 19:43:16 +03:00

madwifi: change the network scripts to use the new wds sta separation feature

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12005 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-07-30 05:22:16 +00:00
parent 0448c53b0d
commit ef0bb0a891
3 changed files with 16 additions and 2 deletions

View File

@ -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

View 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

View File

@ -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;;