http://madwifi.org/wiki/UserDocs/WDSBridge -> why I need to run two times script ? please and thanks, somethin must be wrong...
 
 
(script *------------------------------)
#!/bin/sh
 
modprobe ath_pci autocreate=none
 
echo ">wlanconfig ath0 create wlandev wifi0 wlanmode ap"
wlanconfig ath0 create wlandev wifi0 wlanmode ap
 
echo ">wlanconfig ath1 create wlandev wifi0 wlanmode wds"
wlanconfig ath1 create wlandev wifi0 wlanmode wds
 
echo ">iwconfig ath0 essid "NormalAP" channel 1"
iwconfig ath0 essid "NormalAP" channel 1
 
echo ">iwpriv ath1 wds_add 00:11:22:33:44:55"
iwpriv ath1 wds_add 00:11:22:33:44:55
 
echo ">iwpriv ath1 wds 1"
iwpriv ath1 wds 1
 
echo ">ifconfig ath1 192.168.11.1 up"
ifconfig ath1 192.168.11.1 up
 
echo ">ifconfig ath0 192.168.10.1 up"
ifconfig ath0 192.168.10.1 up
 
(console)----------------------------------
 
linux:/my_bin # ./aptouch
>wlanconfig ath0 create wlandev wifi0 wlanmode ap
ath0
>wlanconfig ath1 create wlandev wifi0 wlanmode wds
ath1
>iwconfig ath0 essid NormalAP channel 1
>iwpriv ath1 wds_add 00:11:22:33:44:55
ath1      no private ioctls.
 
>iwpriv ath1 wds 1
ath1      no private ioctls.
 
>ifconfig ath1 192.168.11.1 up
SIOCSIFADDR: No such device
ath1: unknown interface: No such device
ath1: unknown interface: No such device
>ifconfig ath0 192.168.10.1 up
 
linux:/my_bin # ./aptouch    (<---- second run)
>wlanconfig ath0 create wlandev wifi0 wlanmode ap
ath0
>wlanconfig ath1 create wlandev wifi0 wlanmode wds
ath1
>iwconfig ath0 essid NormalAP channel 1
>iwpriv ath1 wds_add 00:11:22:33:44:55
>iwpriv ath1 wds 1
>ifconfig ath1 192.168.11.1 up
>ifconfig ath0 192.168.10.1 up