From: Mark Nordstrand <m.nordstrand@gm...> - 2013-03-07 15:31:32
Added a USB wifi adapter. Starting it by hand, works well:
# ifconfig wlan0 up
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05
rtl8192c: Loading firmware file rtlwifi/rtl8192cufw.bin
ADDRCONF(NETDEV_UP): wlan0: link is not ready
# wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
# dhclient wlan0
# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0B:81:84:3C:6F
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20b:81ff:fe84:3c6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1544 (1.5 KiB) TX bytes:6761 (6.6 KiB)
Now to bring it up at boot, edited and add the following to
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
down killall wpa_supplicant
And, of course, /etc/wpa_supplicant.conf already looked like:
At boot, I can see the same messages from bringing it up by hand, and
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Failed to bring up wlan0.
Listening on LPF/wlan0/00:0b:81:84:3c:6f
Sending on LPF/wlan0/00:0b:81:84:3c:6f
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
For some reason (taking to long?) ifup and friends have started a
second wpa_supplicant in the first case, and at a guess,
wpa_supplicant hasn't finished in the second case.
What else needs to be be done to start wifi on an overo?