root@beagleboard:~#
I also see in dmesg:-
# dmesg|grep rt25
[90899.806121] usbcore: registered new interface driver rt2500usb
[90901.238922] phy0 -> rt2500usb_init_eeprom: Error - Invalid RT chipset
detected.
I see the same on all other boxes with the latest vanilla kernels but
they all get associated, not the beagleboard. The dongle is on the EHCI
port.
I have both connman and avahi-daemon disabled.
root@beagleboard:~# ifup wlan0
[92446.902923] rt73usb 1-2.3:1.0: firmware: requesting rt73.bin
[92447.098175] ADDRCONF(NETDEV_UP): wlan0: link is not ready
udhcpc (v1.13.2) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
root@beagleboard:~#
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
Got a little further by changes to wpa_supplicant.conf, looking for
further clues.
# less /etc/wpa_supplicant.conf
###ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
# home network; allow all valid ciphers
network={
ssid="TalkTalk520"
scan_ssid=1
key_mgmt=WPA-PSK
psk="F0A2962918236417"
}
# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1b:9e:82:66:27 (SSID='TalkTalk520' freq=2437
MHz)
Associated with 00:1b:9e:82:66:27
WPA: Key negotiation completed with 00:1b:9e:82:66:27 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1b:9e:82:66:27 completed (auth)
[id=0 id_str=]
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:1b:9e:82:66:27
CTRL-EVENT-SCAN-RESULTS
WPA: Key negotiation completed with 00:1b:9e:82:66:27 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1b:9e:82:66:27 completed
(reauth) [id=0 id_str=]
WPA: Group rekeying completed with 00:1b:9e:82:66:27 [GTK=TKIP]
root@beagleboard:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0E:2E:E3:80:9B
inet6 addr: fe80::20e:2eff:fee3:809b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:191 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34369 (33.5 KiB) TX bytes:2316 (2.2 KiB)
root@beagleboard:~# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"TalkTalk520"
Mode:Managed Frequency:2.437 GHz Access Point:
00:1B:9E:82:66:27
Bit Rate=1 Mb/s Tx-Power=15 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption
key:2B44-A85A-1262-F93B-47D9-7B4E-BA66-AFD2-7B52-F1D9-DCAE-1372-9BBF-61A1-C5BB-853A
[2] Security mode:open
Power Management:off
Link Quality=70/100 Signal level:-56 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@beagleboard:~#
root@beagleboard:~# route add -net 192.168.1.0/24 gw 192.168.1.1 dev wlan0
SIOCADDRT: Network is unreachable
OK, "ifconfig wlan0 192.168.1.7", now I can ping other hosts and the router.
root@beagleboard:~# route add -net 192.168.1.0/24 gw 192.168.1.1
root@beagleboard:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0
wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.10.103 0.0.0.0 UG 0 0 0 eth0
It's a work around, just need to figure how to do it via the scripts
without having to use the wpa_supplicant command and manually configure
the interface.