Skip to content

Commit

Permalink
[PATCH] libertas: deauthenticate from AP in channel switch
Browse files Browse the repository at this point in the history
This avoids channel mismatch between driver and firmware in case we change
channel while associated to an AP.

Signed-off-by: Luis Carlos Cobo Rus <luisca@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis Carlos Cobo Rus authored and John W. Linville committed Jun 12, 2007
1 parent b8bedef commit fff47f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,11 @@ static int should_deauth_infrastructure(wlan_adapter *adapter,
return 1;
}

if (test_bit(ASSOC_FLAG_CHANNEL, &assoc_req->flags)) {
lbs_deb_assoc("Deauthenticating due to channel switch.\n");
return 1;
}

/* FIXME: deal with 'auto' mode somehow */
if (test_bit(ASSOC_FLAG_MODE, &assoc_req->flags)) {
if (assoc_req->mode != IW_MODE_INFRA)
Expand Down

0 comments on commit fff47f1

Please sign in to comment.