]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] wireless/atmel: fix Open System authentication process bugs
authorDan Williams <dcbw@redhat.com>
Sun, 5 Feb 2006 22:55:16 +0000 (17:55 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 17 Feb 2006 13:12:57 +0000 (08:12 -0500)
commita28afe546ff655bde897c6b7641cbc16b41c4598
treee565cee69f3fe47e2d48b274bc265d63b9623c00
parent41abd3b9742f18f8b9898fc704bfd7c79c1a35c7
[PATCH] wireless/atmel: fix Open System authentication process bugs

This patch fixes a number of bugs in the authentication process:

1) When falling back to Shared Key authentication mode from Open System,
a missing 'return' would cause the auth request to be sent, but would
drop the card into Management Error state.  When falling back, the
driver should also indicate that it is switching to Shared Key mode by
setting exclude_unencrypted.

2) Initial authentication modes were apparently wrong in some cases,
causing the driver to attempt Shared Key authentication mode when in
fact the access point didn't support that mode or even had WEP disabled.
The driver should set the correct initial authentication mode based on
wep_is_on and exclude_unencrypted.

3) Authentication response packets from the access point in Open System
mode were getting ignored because the driver was expecting the sequence
number of a Shared Key mode response.  The patch separates the OS and SK
mode handling to provide the correct behavior.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/atmel.c