nuke old madwifi init script, add new /lib/wifi handler (usable for many configurations already), fix up a target name

SVN-Revision: 5889
lede-17.01
Felix Fietkau 2006-12-22 08:02:59 +00:00
parent a5546e6c40
commit 88e7da2bab
3 changed files with 6 additions and 8 deletions

View File

@ -41,7 +41,7 @@ ifeq ($(ARCH),powerpc)
endif endif
BUS:=PCI BUS:=PCI
ifneq ($(CONFIG_LINUX_2_6_AR531X),) ifneq ($(CONFIG_LINUX_2_6_ATHEROS),)
BUS:=AHB BUS:=AHB
HAL_TARGET:=ap51 HAL_TARGET:=ap51
endif endif
@ -140,8 +140,8 @@ define Build/UninstallDev
endef endef
define KernelPackage/madwifi/install define KernelPackage/madwifi/install
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/lib/wifi
$(INSTALL_BIN) ./files/madwifi.init $(1)/etc/init.d/madwifi $(INSTALL_DATA) ./files/lib/wifi/madwifi.sh $(1)/lib/wifi
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(1)/usr/sbin/ $(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(1)/usr/sbin/
endef endef

View File

@ -154,6 +154,9 @@ enable_atheros() {
} }
config_set "$vif" ifname "$ifname" config_set "$vif" ifname "$ifname"
config_get "$device" mode
iwpriv "$ifname" mode "${mode:-11g}"
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;;

View File

@ -1,5 +0,0 @@
#!/bin/sh /etc/rc.common
START=20
boot() {
iwpriv ath0 mode 3
}