LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   D-Link DWA-140 802.11n USB (with Ralink RT2870 chispet) driver probs (https://www.linuxquestions.org/questions/linux-hardware-18/d-link-dwa-140-802-11n-usb-with-ralink-rt2870-chispet-driver-probs-635827/)

andywest 04-16-2008 04:17 PM

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 thr:off Fragment thr:off
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)

Brian1 04-16-2008 05:15 PM

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

andywest 06-12-2008 12:40 PM

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)


All times are GMT -5. The time now is 02:25 AM.