hodad
November 27th, 2010, 07:51 PM
Using a D-Link wireless router, trying to get it through the authentication process with the client through a D-Link DWA-125 USB wireless. When I set encryption to "none" on both ends, the router links up OK, but when I enter matching encryption settings on the router, and then in the driver data file (RT2870STA.dat) on the client side, I can't get it to authenticate. I've tried all possible combinations in the .dat file with no luck. I'm fairly well convinced that there is a bug in the .dat file settings, and that the wireless port setting need to be forced at startup through the /etc/networking/interfces file, or some such procedure, to override the settings in the .dat file.
Router wireless encryption settings:
WPA Personal
WPA2
TKIP
<password>
.dat file settings:
AuthMode=WPA2PSK
EncrypType=TKIP
WPAPSK=<password>
************************************************** ********
Present readings:
desktop:~$ ping 192.168.0.1
connect: Network is unreachable
desktop:~$ iwlist ra0 scan
ra0 Scan completed :
Cell 01 - Address: 00:1E:58:E8:F5:DB
Protocol:802.11b/g/n
ESSID:"axmey"
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:100/100 Signal level:-29 dBm Noise level:-92 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
desktop:~$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
ra0 Ralink STA ESSID:"" Nickname:"RT2870STA"
Mode:Auto Frequency=2.437 GHz Bit Rate=1 Mb/s
RTS thr:off Fragment thr:off
Link Quality=10/100 Signal level:-33 dBm Noise level:-33 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
lshw -C network
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: RTL8111/8168B PCI Express Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 03
serial: 20:cf:30:56:26:ae
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom ethernet physical
configuration: broadcast=yes driver=r8169 driverversion=2.3LK-NAPI latency=0 multicast=yes
resources: irq:26 ioport:e800(size=256) memory:fdfff000-fdffffff(prefetchable) memory:fdff8000-fdffbfff(prefetchable) memory:febf0000-febfffff(prefetchable)
*-network
description: Wireless interface
physical id: 1
logical name: ra0
serial: 1c:bd:b9:80:71:a6
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=RALINK WLAN driverversion=2.4.0.1 multicast=yes wireless=Ralink STA
************************************************** ******
Any idea how I can set client settings through a shell file, or some other way, to get it to match the router settings?
Thanks!
Router wireless encryption settings:
WPA Personal
WPA2
TKIP
<password>
.dat file settings:
AuthMode=WPA2PSK
EncrypType=TKIP
WPAPSK=<password>
************************************************** ********
Present readings:
desktop:~$ ping 192.168.0.1
connect: Network is unreachable
desktop:~$ iwlist ra0 scan
ra0 Scan completed :
Cell 01 - Address: 00:1E:58:E8:F5:DB
Protocol:802.11b/g/n
ESSID:"axmey"
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:100/100 Signal level:-29 dBm Noise level:-92 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
desktop:~$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
ra0 Ralink STA ESSID:"" Nickname:"RT2870STA"
Mode:Auto Frequency=2.437 GHz Bit Rate=1 Mb/s
RTS thr:off Fragment thr:off
Link Quality=10/100 Signal level:-33 dBm Noise level:-33 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
lshw -C network
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: RTL8111/8168B PCI Express Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 03
serial: 20:cf:30:56:26:ae
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom ethernet physical
configuration: broadcast=yes driver=r8169 driverversion=2.3LK-NAPI latency=0 multicast=yes
resources: irq:26 ioport:e800(size=256) memory:fdfff000-fdffffff(prefetchable) memory:fdff8000-fdffbfff(prefetchable) memory:febf0000-febfffff(prefetchable)
*-network
description: Wireless interface
physical id: 1
logical name: ra0
serial: 1c:bd:b9:80:71:a6
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=RALINK WLAN driverversion=2.4.0.1 multicast=yes wireless=Ralink STA
************************************************** ******
Any idea how I can set client settings through a shell file, or some other way, to get it to match the router settings?
Thanks!