Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fff47f108d7bd9f80b223cd187e09dbb0cb89114 Commit: fff47f108d7bd9f80b223cd187e09dbb0cb89114 Parent: b8bedefd8fe589ff87a681e20583c8317030491d Author: Luis Carlos Cobo Rus <[EMAIL PROTECTED]> AuthorDate: Wed May 30 12:16:13 2007 -0400 Committer: John W. Linville <[EMAIL PROTECTED]> CommitDate: Tue Jun 12 14:02:32 2007 -0400
[PATCH] libertas: deauthenticate from AP in channel switch 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 <[EMAIL PROTECTED]> Signed-off-by: John W. Linville <[EMAIL PROTECTED]> --- drivers/net/wireless/libertas/assoc.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 06a90b4..f67efa0 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c @@ -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) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html