Return-path: Received: from mail-ew0-f207.google.com ([209.85.219.207]:38004 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbZJTHdp (ORCPT ); Tue, 20 Oct 2009 03:33:45 -0400 Received: by ewy3 with SMTP id 3so4494556ewy.17 for ; Tue, 20 Oct 2009 00:33:48 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1256018933.4475.6.camel@johannes.local> References: <1256018933.4475.6.camel@johannes.local> Date: Tue, 20 Oct 2009 09:33:48 +0200 Message-ID: <2d0a357f0910200033t25c6b848x6d321057b69e47e6@mail.gmail.com> Subject: Re: [PATCH] cfg80211: sme: deauthenticate on assoc failure From: Sedat Dilek To: Johannes Berg Cc: John Linville , linux-wireless , "Luis R. Rodriguez" Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: SXMgdGhpcyBwYXRjaCBvbiB0b3Agb2Ygd2lyZWxlc3MtdGVzdGluZyAobWFzdGVyLTIwMDktMTAt MTYpPwoKSXQgZmFpbHMgaGVyZToKLi4uCkFwcGx5aW5nIHBhdGNoIGxpbnV4LXdpcmVsZXNzL21h YzgwMjExLWtlZXAtYXV0aC1zdGF0ZS13aGVuLWFzc29jLWZhaWxzLnBhdGNoCnBhdGNoaW5nIGZp bGUgbmV0L21hYzgwMjExL21sbWUuYwpIdW5rICMxIEZBSUxFRCBhdCAxNDU3LgoxIG91dCBvZiAx IGh1bmsgRkFJTEVEIC0tIHJlamVjdHMgaW4gZmlsZSBuZXQvbWFjODAyMTEvbWxtZS5jClBhdGNo IGxpbnV4LXdpcmVsZXNzL21hYzgwMjExLWtlZXAtYXV0aC1zdGF0ZS13aGVuLWFzc29jLWZhaWxz LnBhdGNoCmRvZXMgbm90IGFwcGx5IChlbmZvcmNlIHdpdGggLWYpCkVSUk9SOiBmYWlsZWQgdG8g YXBwbHkgcGF0Y2ggc2VyaWVzIQoKRG9lcyBpdCBuZWVkIHRvIHJldmVydC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