Hi,
I've a problem configuring my wireless interface. I usually connect to two
access points. One located at my home and another one at my work. The problem
is that I should change my /etc/conf.d/net every time to connect the
them.
here is my config:
---------------------------------------------------------------
preup() {
if [[ ${IFACE} == "eth1" ]]; then
/sbin/ifconfig eth1 up
echo 0\
> /sys/devices/pci0000:00/0000:00:1c.1/0000:06:00.0/rf_kill
/sbin/iwconfig eth1 txpower on
/sbin/ifconfig eth1 up
sleep 3
fi
return 0
}
modules=("iwconfig" )
#essid_eth1="any"
essid_eth1="Home_ali"
preferred_aps_wlan1=( "Home_ali" "P-P" )
associate_order="preferredonly"
key_Home_ali="s:KeyKeyKey"
config_Home_ali=( "dhcp" )
config_P_P=( "192.168.2.6 netmask 255.255.240.0" )
routes_P_P=( "default via 192.168.1.10" )
dns_servers_P_P=( "127.0.0.1 4.2.2.4" )
--------------------------------------------------------------------
When I set essid_eth1 to "any", It can not detect the ESSID automatically and
connect to it, and I should edit the config file manually, and the strange
thing is when I specifically set my essid in the config it can successfully
connect to any of them. and I can manually scan the access points by iwlist:
-------------------------------------------------------------------
localhost ISP # iwconfig eth1 txpower on
localhost ISP # iwlist eth1 scan
eth1 Scan completed :
Cell 01 - Address: 00:30:4F:4F:E8:EA
ESSID:"Home_ali"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.462 GHz (Channel 11)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=79/100 Signal level=-55 dBm Noise level=-55 dBm
Extra: Last beacon: 1199ms ago
------------------------------------------------------------------------
here is the error, when I start the interface by init.d script:
------------------------------------------------------------------
localhost ~ # /etc/init.d/net.eth1 start
* Service net.eth1 starting
Error for wireless request "Set Tx Power" (8B27) :
GET failed on device eth1 ; Resource temporarily unavailable.
Failed to configure wireless for eth1
[ !! ]
* ERROR: net.eth1 failed to start
-----------------------------------------------------------------------
here is what I get from dmesg:
------------------------------------------------------------------
ipw3945: Detected geography ABG (11 802.11bg channels, 13 802.11a channels)
ipw3945: Error sending SCAN_ABORT_CMD: time out after 500ms.
--------------------------------------------------------------------------
Does anyone have any clue about this? I'm using the latest driver form:
http://linuxwireless.org/en/users/Download.
Best regards
Platoali