]> git.karo-electronics.de Git - karo-tx-linux.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)
commit7345137930907ba747781636c60112f7c2789aa8
treee565cee69f3fe47e2d48b274bc265d63b9623c00
parent0d467502b7fc2656f01d7f18ab290c8d41762018
[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