LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 04-16-2008, 05:17 PM   #1
andywest
LQ Newbie
 
Registered: Oct 2003
Location: France
Distribution: debian
Posts: 26

Rep: Reputation: 15
D-Link DWA-140 802.11n USB (with Ralink RT2870 chispet) driver probs


trying to get native ralink driver working on Debian Etch (std 2.6.18-4 kernel) with D-Link USB key

have wpa-supplicant package installed and this is working well with built-in Intel2200BG 11g chipset on laptop.

ralink driver : 2007_1220_RT2870_Linux_STA_v1.2.1.0

followed std setup intructions in ReadMe
folowing settings are perhaps most important in config.mk :
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

$make
....
/sbin/insmod rt2870sta.ko

when I do an "ifup ra0" get follwoing:
ifup ra0
ioctl[SIOCSIWPMKSA]: Network is down
ioctl[SIOCSIWMODE]: Network is down
Could not configure driver to use managed mode
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 -

Cannot seem to connect to my 11n AP (WPA) (and can connect to it using WinXP and the key)
although I can connect with this driver to my 11g AP (WEP):
iwconfig
ra0 RT2870 Wireless ESSID:"11gAP" Nickname:"RT2870STA"
Mode:Managed Frequency=2.462 GHz Access Point: 00:15:A5:5E:F7:ED
Bit Rate=54 Mb/s
RTS thrff Fragment thrff
Encryption key:5575-3555-7A55-5555-7939-5572-55
Link Quality=78/100 Signal level:-64 dBm Noise level:-87 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

my /etc/wpa_supplicant.conf seems to be OK, there is an entry for the 11n
extract:
network={
ssid="11n-AP"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=CCMP TKIP WEP104 WEP40
psk="anotherpassword"
priority=5
}


if I try to do an "iwconfig ra0 essid 11n-AP" the essid is not changed, stays at "" and ra0 cannot associate with 11n AP.

but kwifimanger detects my 11n AP (can see the essid) but thinks its running WEP not WPA?


maybe wpa-supplicant is wrongly configured for the key mgmt?

(I have the built-in 2200BG WiFi switched off during this test)
 
Old 04-16-2008, 06:15 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
The thing that throws me is this. the output of iwconfig says the ESSID is 11gAP. Now in the wpa_supplicant.conf you have 11n-AP. Now the ESSID defined in /etc/sysconfig/network-scripts/ifcfg-ra0 and wpa_supplicant.conf file must match exact even case sensitive. Also when generating the WPA key you must use exact case for ESSID and Passkey. Also just make sure you are using WPA and not WPA2?

Brian
 
Old 06-12-2008, 01:40 PM   #3
andywest
LQ Newbie
 
Registered: Oct 2003
Location: France
Distribution: debian
Posts: 26

Original Poster
Rep: Reputation: 15
I got it working

compiled driver with switches (in config.mk) HAS_WPA_SUPPLICANT = y and HAS_NATIVE_WPA_SUPPLICANT = n

However despite many tries couldn't configure client correclty with WPA_supplicant (which works fine for the built in Intel 11g chipset) and had to run it by editing ralink's own config file (i.e /etc/Wireless/RT2870/RT2870STA.dat).

Driver didn't seem to work perfectly with iwconfig etc. (debian wireless-tools v28-1)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
802.11n support? kmand Linux - Wireless Networking 0 01-07-2008 10:33 AM
driver for d-link dwa-610 eecwlee Linux - Wireless Networking 3 01-01-2008 04:55 AM
802.11N wifi for a laptop poorboyiii Linux - Hardware 1 11-09-2007 04:51 PM
802.11n support in a/b/g cards lostinvietnam Linux - Wireless Networking 3 09-15-2007 02:25 PM
drivers for 802.11n usb adapters - are there any robertson1953 Linux - Wireless Networking 1 08-29-2007 08:29 AM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration