[Cbe-oss-dev] Problem with WPA IE info in gelic driver?

Mikael Djurfeldt mikael at djurfeldt.com
Tue Mar 18 06:33:05 EST 2008


My PS3 with firmware 2.17 can use WPA to communicate with my wireless
router from the game os.  I am trying to get wireless networking to
work on the Linux side.

I'm running a Debian lenny system, have compiled Geoff Levand's latest
kernel sources (2.6.25-rc4-00000-g71503dd), and am using the
wpa_supplicant and wpa_cli binaries from the 20080201 ADDON CD.

Output of wpa_supplicant indicates that the WPA IE information is not
transmitted correctly from the driver (see logs below).  Could you
please advice me how to proceed?  (Please add a Cc: to
mikael at djurfeldt.com---I am not on this list.)

Details:

Because of the udev renaming rules under Debian, I have had to insert a command:

  ip link set eth1_rename_ren name eth1

in the network interface configure script in order to get the correct
name on the interface.

This is my wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wpa
ap_scan=1

network={
  ssid="mamaliga"
  key_mgmt=WPA-PSK
  proto=WPA
  pairwise=TKIP
  group=TKIP
  psk="<deleted>"
}


This is the output of wpa_supplicant (but see a second log below!):

-------------------------------------------------------------------------------------
brasa:/home/mdj# wpa_supplicant -ieth1 -Dps3
-c/etc/wpa_supplicant/wpa_supplicant.conf -dd
Initializing interface 'eth1' conf
'/etc/wpa_supplicant/wpa_supplicant.conf' driver 'ps3' ctrl_interface
'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' ->
'/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='wpa' (DEPRECATED)
ap_scan=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=8):
     6d 61 6d 61 6c 69 67 61                           mamaliga
key_mgmt: 0x2
proto: 0x1
pairwise: 0x8
group: 0x8
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='mamaliga'
Initializing interface (2) 'eth1'
Interface eth1 set UP - waiting a second for the driver to complete
initialization
SIOCGIWRANGE: WE(compiled)=22 WE(source)=22 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:19:c5:72:c6:48
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
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
ctrl_interface_group=1001 (from group name 'wpa')
wpa_driver_ps3_get_capa:<-

wpa_driver_ps3_get_capa:->

Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' 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
ioctl[SIOCGIWSCAN]: No such device
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=16
Received 491 bytes of scan results (2 BSSes)
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1c:f0:f4:eb:d0 ssid='mamaliga' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - no WPA/RSN proto match
1: 00:14:c1:1e:12:82 ssid='hokerum' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
Try to find non-WPA AP
0: 00:1c:f0:f4:eb:d0 ssid='mamaliga' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - non-WPA network not allowed
1: 00:14:c1:1e:12:82 ssid='hokerum' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
No suitable AP found.
Setting scan request: 5 sec 0 usec
-----------------------------------------------------------------------------------------

Here is a corresponding log from my laptop (same router):

blue:~# wpa_supplicant -ieth1 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd
Initializing interface 'eth1' conf
'/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default'
ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' ->
'/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=8):
     6d 61 6d 61 6c 69 67 61                           mamaliga
key_mgmt: 0x2
proto: 0x1
pairwise: 0x8
group: 0x8
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='mamaliga'
Initializing interface (2) 'eth1'
Interface eth1 set UP - waiting a second for the driver to complete
initialization
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:13:ce:3a:67:8a
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
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
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 1260 bytes of scan results (5 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1c:f0:f4:eb:d0 ssid='mamaliga' wpa_ie_len=26 rsn_ie_len=24 caps=0x11
   selected based on WPA IE
   selected WPA AP 00:1c:f0:f4:eb:d0 ssid='mamaliga'
Try to find non-WPA AP
Trying to associate with 00:1c:f0:f4:eb:d0 (SSID='mamaliga' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2
02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 02
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00
0f ac 02 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00
00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: DISCONNECTED -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=16
RX EAPOL from 00:1c:f0:f4:eb:d0
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00
00 00 c0 cc d4 7e 98 87 04 ef 75 fc d5 35 3b 13 2b 72 39 0a c6 72 c9
7e 85 bc 3e ff 13 df 3c 0a 70 fd 84 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 c0
  key_nonce - hexdump(len=32): cc d4 7e 98 87 04 ef 75 fc d5 35 3b 13
2b 72 39 0a c6 72 c9 7e 85 bc 3e ff 13 df 3c 0a 70 fd 84
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00
00 00 00 00 00 c0 cc d4 7e 98 87 04 ef 75 fc d5 35 3b 13 2b 72 39 0a
c6 72 c9 7e 85 bc 3e ff 13 df 3c 0a 70 fd 84 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATING -> 4WAY_HANDSHAKE



More information about the cbe-oss-dev mailing list