hangstrap
Posts: 4
Joined: Wed Oct 03, 2012 7:59 am

Wireless Adapter not working

Wed Oct 03, 2012 8:29 am

Like many others I am having problems getting my wireless adapter working. It is a (working) Ralink RT2501/RT2573

I have read the posts, but have got stuck. Suspect that it is something simple. I am running the latest wheezy-debian, am using a powered hub with a good quality power supply.

I have a fair understanding of Linux, but am by no means a expert.

Thanks for any advice
Richard

here is the kernel log
[ 4.082542] usb 1-1.3.3: new high-speed USB device number 6 using dwc_otg
[ 4.101239] devtmpfs: mounted
[ 4.107984] Freeing init memory: 124K
[ 4.348849] usb 1-1.3.3: New USB device found, idVendor=148f, idProduct=2573
[ 4.359784] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.371432] usb 1-1.3.3: Product: 54M.USB.......
[ 4.378996] usb 1-1.3.3: Manufacturer: Ralink
[ 4.387068] usb 1-1.3.3: SerialNumber: 12345
I have the following usb connected
pi@raspberrypi ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 005: ID 1058:1023 Western Digital Technologies, Inc. Elements SE
Bus 001 Device 006: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter
Bus 001 Device 007: ID 05dc:a764 Lexar Media, Inc.
iwlist scan reports
wlan0 Scan completed :
Cell 01 - Address: 00:24:17:36:5A:9F
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=70/70 Signal level=-28 dBm
Encryption key:on
ESSID:"TheSchmidts"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000000027e53c53d
Extra: Last beacon: 490ms ago
IE: Unknown: 000B5468655363686D69647473
IE: Unknown: 010882848B962430486C
IE: Unknown: 03010B
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: DD060010180202F0
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
my interfaces file contains
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.254

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf
wpa-debug-level 3
and the wpa.conf file contains
pi@raspberrypi ~ $ cat /etc/wpa.conf
network={
ssid="TheSchmidts"
proto=WPA2
key_mgnt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="my secret password"
}
lwconfig reports
lo no wireless extensions.

wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on

eth0 no wireless extensions.
and finally, when I try and start it

sudo ifup wlan0 -v
Configuring interface wlan0=wlan0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: wpa-driver nl80211,wext (default)
wpa_supplicant: using debug level: 3
wpa_supplicant: /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -t -ddd -c /etc/wpa.conf -C /var/run/wpa_supplicant
Starting /sbin/wpa_supplicant...
1349250758.900709: ssid - hexdump_ascii(len=11):
54 68 65 53 63 68 6d 69 64 74 73 TheSchmidts
1349250758.906138: PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

dhclient -1 -v -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases wlan0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/d8:5d:4c:96:12:94
Sending on LPF/wlan0/d8:5d:4c:96:12:94
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
Failed to bring up wlan0.

LaoGuy
Posts: 1
Joined: Fri Oct 05, 2012 7:38 pm

Re: Wireless Adapter not working

Fri Oct 05, 2012 8:06 pm

Hello. I'm looking at your wlan0 configuration in your, /etc/network/interfaces it looks different than mine.
I'm running the 2012-09-18-wheezy-raspbian image and using Asus USB N10 dongle. The following is my working configuration of the network interfaces and wpa_supplicant.conf file (these files are required, for mine anyways):

______________________________
sudo nano /etc/network/interfaces
`````````````````````````````````````````````````````
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/_supplicant/wpa_supplicant.conf
iface default inet dhcp
``````````````````````````````````````````````````````````
________________________________________
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
`````````````````````````````````````````````````````````````````````````
network={
ssid="YourWifiName"
psk="password"
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
auth_alg=OPEN
}

network={
key_mgmt=NONE
}
___________________________________________________
After configuration, reboot. Then login and run your wpa_gui to see if it finds it.

thogue
Posts: 131
Joined: Wed Sep 19, 2012 2:16 am

Re: Wireless Adapter not working

Fri Oct 05, 2012 8:38 pm

You are failing to associate, so the problem is surely with your wpa_conf file somewhere,

Depending on your setup, if you have multiple access points and move around a lot. I recommend a setup like mine. My media center pi sd card does not have a wpa_supplicant.conf at all, I just put the wpa-psk wpa-ssid lines in there.
iface wlan0 inet dhcp
wpa-ssid mynetworkname
wpa-psk mysecretpassphrase
This worked best in my opinion. (I never had to mess with association problems.

however my raspbarian sd card setup is as follows


/etc/network/interfaces

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
#auto wlan0
iface wlan0 inet manual
#wpa-conf /etc/wpa.config
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
/etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
	ssid="home"
	psk="REDACTED"
	proto=RSN
	key_mgmt=WPA-PSK
	pairwise=TKIP
	group=TKIP WEP104 WEP40
	auth_alg=OPEN
	identity="1"
}

network={
	ssid="IT'S A TRAP!!!"
	psk=ce217REDACTED815c44dfeed4540521
	identity="2"
}

network={
	ssid="2WIRE853"
	psk=0ce48b163bREDACTED95f937467a522af64394c2d
	identity="3"
}
the second 2 entries I configured manually using wpa_passphrase, I am pretty sure hashing the wpa key like this helps as configuration is obviously pickier without it hashed. (The second two entries will not work with the passphrase in the file) If you are going to just put the two lines into your network config file, you will need to use wpa_passphrase to "pre-compute" the PSK with wpa_passphrase

ebartel
Posts: 9
Joined: Thu Aug 16, 2012 11:32 am

Re: Wireless Adapter not working

Sat Oct 06, 2012 2:33 am

Code: Select all

Bus 001 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
The issue may be the hub. I tried to use a powered hub as this seemed the best thing to do with a wifi dongle. I got a cheapo powered hub with the exact same Terminus chipset on eBay. With the hub the dongle was recognized, it would do a scan, find the access point, etc. The only thing was when it tried to get an IP with DHCP, it would not work. Other devices like a keyboard worked fine in the hub.

As a last attempt I tried the device directly in the pi and it worked fine with my existing configuration. I did notice that the login prompt and ifconfig were slow to respond whenever the hub was plugged in. I also tried hooking the hub up to a power supply that had more than adequate amperage and that did not change the behavior. All of this was done within a couple feet of the access point to rule that out.

You might want to try another hub or plugging it in directly.

hangstrap
Posts: 4
Joined: Wed Oct 03, 2012 7:59 am

Re: Wireless Adapter not working

Sat Oct 06, 2012 8:34 am

I tried your simple solution and it worked like a treat. Thanks a lot :D :D

thogue
Posts: 131
Joined: Wed Sep 19, 2012 2:16 am

Re: Wireless Adapter not working

Sat Oct 06, 2012 12:43 pm

So was it power issue or config issue? Curious


I've had power issues with USB items on hubs. One of my wifi cards is really picky which hub or it will do one of the following 1.
Not then on at all 2. Turn on and just won't see anything if you scan.

hangstrap
Posts: 4
Joined: Wed Oct 03, 2012 7:59 am

Re: Wireless Adapter not working

Sun Oct 07, 2012 9:30 pm

No problem with the power supply or the hub
Just a configuration problem - I moved the configuration of the wifi name and password into the interfaces file and it all burst into life.

ltore123
Posts: 2
Joined: Sun Mar 22, 2015 10:16 pm

Re: Wireless Adapter not working

Sun Mar 22, 2015 10:25 pm

LaoGuy
wpa-roam /etc/_supplicant/wpa_supplicant.conf wrong
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf correct

Return to “Troubleshooting”