Hi,
I am trying to set up wpa_supplicant on a TS7553 with ASUS WL-167g
It works when I don't use WPA... I suspect I need to download thew
kernel etc... but before I go that route, maybe there is a quick fix?
I've got it working using WEP and iwpriv (rather than
wpa_supplicant)... see the bottom of this email.
Here's some info:
I'm running debian out of the box from the Micro SD card.
# uname -a
Linux ts7500 2.6.24.4 #1 Thu Aug 5 09:30:24 MST 2010 armv4l GNU/Linux
# ls -l /lib/modules/2.6.24.4/kernel/drivers/net/wireless/rt73.ko
-rwxr-xr-x 1 root root 278360 Aug 5 17:46
/lib/modules/2.6.24.4/kernel/drivers/net/wireless/rt73.ko
# ls -l /lib/firmware/rt73.bin
-rw------- 1 root root 2048 Nov 30 2005 /lib/firmware/rt73.bin
# ls -l /sys/bus/usb/drivers/rt73
total 0
lrwxrwxrwx 1 root root 0 Dec 19 04:51 1-2:1.0 ->
../../../../devices/platform/str8100-ehci/usb1/1-2/1-2:1.0
--w------- 1 root root 4096 Dec 19 04:51 bind
lrwxrwxrwx 1 root root 0 Dec 19 04:51 module -> ../../../../module/rt73
--w------- 1 root root 4096 Dec 19 04:51 new_id
--w------- 1 root root 4096 Dec 19 04:51 uevent
--w------- 1 root root 4096 Dec 19 04:51 unbind
# ls -l /sys/module/rt73
total 0
drwxr-xr-x 2 root root 0 Dec 19 04:51 drivers
drwxr-xr-x 2 root root 0 Dec 19 04:51 holders
-r--r--r-- 1 root root 4096 Dec 19 04:51 initstate
-r--r--r-- 1 root root 4096 Dec 19 04:51 refcnt
# lsmod
Module Size Used by
g_ether 17744 0
str8100_udc 13476 1 g_ether
rt73 230384 1
ohci_hcd 14372 0
smsc9500 57252 0
smscusbnet 16076 1 smsc9500
usb_storage 23072 0
ehci_hcd 22028 0
usbcore 74268 6
rt73,ohci_hcd,smsc9500,smscusbnet,usb_storage,ehci_hcd
sd_mod 15504 0
scsi_mod 55372 2 usb_storage,sd_mod
# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0b05:1723 ASUSTek Computer, Inc. WL-167G v2
802.11g Adapter [ralink]
Bus 001 Device 001: ID 0000:0000
# lsusb -v
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.24.4 ohci_hcd
iProduct 2 str8100-ohci
iSerial 1 str8100-ohci
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0001
Self Powered
Bus 001 Device 003: ID 0b05:1723 ASUSTek Computer, Inc. WL-167G v2
802.11g Adapter [ralink]
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0b05 ASUSTek Computer, Inc.
idProduct 0x1723 WL-167G v2 802.11g Adapter [ralink]
bcdDevice 0.01
iManufacturer 1 Ralink
iProduct 2 802.11 bg WLAN
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.24.4 ehci_hcd
iProduct 2 str8100-ehci
iSerial 1 str8100-ehci
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0503 highspeed power enable connect
Device Status: 0x0001
Self Powered
# cat /etc/network/interfaces
auto loiface lo inet loopback
auto rausb2
iface rausb2 inet static
wpa-conf /etc/wpa_supplicant.conf
address 192.168.0.50
network 192.168.0.0
netmask 255.255.0.0
broadcast 192.168.0.255
gateway 192.168.1.222
# cat /etc/wpa_supplicant.conf
#ap_scan=1
network={
ssid="Zwartberg R&D"
# key_mgmt=WPA-PSK
key_mgmt=NONE
# psk="my psk"
# proto=RSN
# pairwise=CCMP
# group=CCMP
}
This works.
However, if I change the wpa_supplicant.conf as so:
network={
ssid="Zwartberg R&D"
key_mgmt=WPA-PSK
psk="my psk"
proto=RSN
pairwise=CCMP
group=CCMP
}
and set my router back to WPA and AES... then it does not work.
Following is the out put from wpa_supplicant:
# ifdown rausb2
# /usr/local/bin/wpa_supplicant -c/etc/wpa_supplicant.conf -irausb2 -ddd
Initializing interface 'rausb2' conf '/etc/wpa_supplicant.conf' driver
'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 3 - start of a new network block
ssid - hexdump_ascii(len=13):
5a 77 61 72 74 62 65 72 67 20 52 26 44 Zwartberg R&D
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
proto: 0x2
pairwise: 0x10
group: 0x10
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='Zwartberg R&D'
Initializing interface (2) 'rausb2'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
ioctl[SIOCSIWPMKSA]: Network is down
ioctl[SIOCSIWMODE]: Network is down
Could not configure driver to use managed mode
SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: e0:cb:4e:a6:5b:09
wpa_driver_hostap_set_wpa: enabled=1
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
Driver does not support WPA.
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_countermeasures: enabled=0
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
wpa_driver_hostap_set_drop_unencrypted: enabled=1
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
Setting scan request: 0 sec 100000 usec
Added interface rausb2
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'rausb2' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'rausb2' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'rausb2' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan
to speed up initial association
Received 81 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:30:4f:6b:9e:03 ssid='Zwartberg R&D' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:30:4f:6b:9e:03 ssid='Zwartberg R&D' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
...etc
Obviously this is relevant:
"Driver does not support WPA."
What should I do? Do the new versions of kernel and rt73.ko on the
website solve this?
(I've spent a day looking for solutions on mail lists, but only found
similar problems to mine with no real solution.)
Its also a bit disconcerting to see that if I open up my router again
to use no security, then although I can then get a connection and
everything works, there are lots of ioctl errors reported, though
others on email lists have said this is a known wpa_supplicant issue
and it does not cause problems. e.g.
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Also:
# iwpriv rausb2 set EncrypType=WPAPSK
Interface doesn't accept private ioctl...
set (8BE2): Invalid argument
But if I set up the router to WEB open and do this:
ifconfig rausb2 up
# iwpriv rausb2 set Channel=6
# iwpriv rausb2 set EncrypType=WEP
# iwpriv rausb2 set SSID="Zwartberg R&D"
# iwpriv rausb2 set DefaultKeyID=1
# iwpriv rausb2 set Key1=..........
# dhclient rausb2
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/rausb2/e0:cb:4e:a6:5b:09
Sending on LPF/rausb2/e0:cb:4e:a6:5b:09
Sending on Socket/fallback
DHCPDISCOVER on rausb2 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 192.168.0.1
DHCPREQUEST on rausb2 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.18 -- renewal in 40043 seconds.
It works!
... but I'd like my unit to be able to connect to more than just
WEP... so any help will be appreciated.
Thanks
--
Brian Modra Land line: +27 23 5411 462
Mobile: +27 79 69 77 082
5 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa
http://www.zwartberg.com/
Fax: +27865510467
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|