ar6k with WPA

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ar6k with WPA

José Miguel Gonçalves
Hi,

I am using the ar6k driver from openmoko (retrieved following the
instructions at http://wireless.kernel.org/en/users/Drivers/ar6k), with
kernel 2.6.29 and wpa_supplicant 0.6.10, in a embedded board based on
Samsung's S3C2412 SoC with a AR6001 SDIO card.

While I've put the Wi-Fi to work in Ad-Hoc and Infrastructure mode using
no encryption and using WEP encryption, I'm having problems in
connecting to an AP with WAP or WAP2. Here is the log of one of such
connections:

Jan  1 00:00:06 (none) user.info kernel: mmc0: new SDIO card at address 0001
Jan  1 00:00:07 (none) user.warn kernel: BMI Get Target Info: Exit (ver:
0x20010009 type: 0x1)
Jan  1 00:00:07 (none) user.warn kernel: AR6000 Reg Code = 0x80000114
Jan  1 00:00:11 (none) daemon.notice wpa_supplicant[135]: Trying to
associate with SSID 'A. Guidance'
Jan  1 00:00:11 (none) user.warn kernel: ar6000_ioctl_siwauth(): Unknown
flag 0xc
Jan  1 00:00:11 (none) daemon.notice wpa_supplicant[135]: Association
request to the driver failed
Jan  1 00:00:11 (none) user.warn kernel: AR6000 disconnected
Jan  1 00:00:13 (none) user.warn kernel: AR6000 connected event on freq
5560 with bssid 68:ef:bd:17:d6:90  listenInterval=100, beaconInterval =
102, beaconIeLen = 26 assocReqLen=72 assocRespLen =42
Jan  1 00:00:13 (none) user.warn kernel: Network: Infrastructure
Jan  1 00:00:13 (none) daemon.notice wpa_supplicant[135]: Associated
with 68:ef:bd:17:d6:90
Jan  1 00:00:13 (none) daemon.warn wpa_supplicant[135]: WPA: Could not
find AP from the scan results
Jan  1 00:00:13 (none) daemon.notice wpa_supplicant[135]: WPA: Key
negotiation completed with 68:ef:bd:17:d6:90 [PTK=CCMP GTK=TKIP]
Jan  1 00:00:13 (none) daemon.notice wpa_supplicant[135]:
CTRL-EVENT-CONNECTED - Connection to 68:ef:bd:17:d6:90 completed (auth)
[id=0 id_str=]
Jan  1 00:00:13 (none) user.notice root: /etc/init.d/startip.sh wlan0
CONNECTED
Jan  1 00:01:03 (none) daemon.notice wpa_supplicant[135]: WPA: Group
rekeying completed with 68:ef:bd:17:d6:90 [GTK=TKIP]

The problem here (apart from the warning ar6000_ioctl_siwauth(): Unknown
flag 0xc) is that, after successfully associating with the AP, I'm able
to ping the board until the encryption key change notified by the log
message "WPA: Group rekeying completed...". After that, the
communication simply stops!

Any ideas what is happening? Anyone had a similar problem?

Best regards,
José Gonçalves


Reply | Threaded
Open this post in threaded view
|

Re: ar6k with WPA

Paul Fertser
José Miguel Gonçalves <[hidden email]> writes:
> I am using the ar6k driver from openmoko (retrieved following the
> instructions at http://wireless.kernel.org/en/users/Drivers/ar6k),
> with kernel 2.6.29 and wpa_supplicant 0.6.10, in a embedded board
> based on Samsung's S3C2412 SoC with a AR6001 SDIO card.

The driver and the chip are known to behave strangely sometimes, but
probably some of the magic methods from [1] might help you. I'm not
sure we have seen anything like your group rekeying issue though,
sorry.

[1] http://www.mail-archive.com/community@.../msg58146.html 
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: ar6k with WPA

José Miguel Gonçalves
On 09/29/2010 08:44 PM, Paul Fertser wrote:

> José Miguel Gonçalves<[hidden email]>  writes:
>    
>> I am using the ar6k driver from openmoko (retrieved following the
>> instructions at http://wireless.kernel.org/en/users/Drivers/ar6k),
>> with kernel 2.6.29 and wpa_supplicant 0.6.10, in a embedded board
>> based on Samsung's S3C2412 SoC with a AR6001 SDIO card.
>>      
> The driver and the chip are known to behave strangely sometimes, but
> probably some of the magic methods from [1] might help you. I'm not
> sure we have seen anything like your group rekeying issue though,
> sorry.
>
> [1] http://www.mail-archive.com/community@.../msg58146.html
>    

Unfortunately, none of that methods helped. My board stops responding as
soon as the group key changes.

Another question. I see some ioctl() errors on the wpa_supplicant
initialization (see bellow).
Is this normal?

$ wpa_supplicant -t -D wext -i wlan0 -c /etc/wpa_supplicant.conf
ioctl[SIOCSIWESSID]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
65.925456: Trying to associate with SSID 'A. Guidance'
AR6000 disconnected
AR6000 connected event on freq 5560 with bssid 68:ef:bd:17:d6:90  
listenInterval=100, beaconInterval = 102, beaconIeLen = 26
assocReqLen=72 assocRespLen =42
Network: Infrastructure
67.198350: Associated with 68:ef:bd:17:d6:90
67.217686: WPA: Could not find AP from the scan results
67.221104: WPA: Key negotiation completed with 68:ef:bd:17:d6:90
[PTK=CCMP GTK=TKIP]
67.221751: CTRL-EVENT-CONNECTED - Connection to 68:ef:bd:17:d6:90
completed (auth) [id=0 id_str=]
115.683928: WPA: Group rekeying completed with 68:ef:bd:17:d6:90 [GTK=TKIP]

Regards,
José Gonçalves

Reply | Threaded
Open this post in threaded view
|

Re: ar6k with WPA

Paul Fertser
Hi,

On Thu, Sep 30, 2010 at 06:27:33PM +0100, José Miguel Gonçalves wrote:

> Another question. I see some ioctl() errors on the wpa_supplicant  
> initialization (see bellow).
> Is this normal?
>
> $ wpa_supplicant -t -D wext -i wlan0 -c /etc/wpa_supplicant.conf
> ioctl[SIOCSIWESSID]: Invalid argument
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported

Yes, i see those as well, seem to be harmless.

> 65.925456: Trying to associate with SSID 'A. Guidance'

I wouldn't dare using spaces in my SSID but that's probably totally unrelated
:)

--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[hidden email]