• Dan Williams's avatar
    [PATCH] wireless/atmel: fix Open System authentication process bugs · 73451379
    Dan Williams authored
    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: default avatarDan Williams <dcbw@redhat.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    73451379
atmel.c 131 KB