From patchwork Mon Jul 12 12:46:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 111426 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6CClCGk016234 for ; Mon, 12 Jul 2010 12:47:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120Ab0GLMrL (ORCPT ); Mon, 12 Jul 2010 08:47:11 -0400 Received: from he.sipsolutions.net ([78.46.109.217]:52709 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751497Ab0GLMrK (ORCPT ); Mon, 12 Jul 2010 08:47:10 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1OYIOP-0001YF-AV; Mon, 12 Jul 2010 14:45:53 +0200 Subject: [PATCH] cfg80211: ignore spurious deauth From: Johannes Berg To: Paul Stewart Cc: linux-wireless@vger.kernel.org, "John W. Linville" In-Reply-To: References: <1278091743.15412.17.camel@jlt3.sipsolutions.net> <1278094401.15412.27.camel@jlt3.sipsolutions.net> Date: Mon, 12 Jul 2010 14:46:43 +0200 Message-ID: <1278938803.5870.24.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 12 Jul 2010 12:47:13 +0000 (UTC) --- wireless-testing.orig/net/wireless/mlme.c 2010-07-12 14:34:22.000000000 +0200 +++ wireless-testing/net/wireless/mlme.c 2010-07-12 14:42:27.000000000 +0200 @@ -44,10 +44,10 @@ void cfg80211_send_rx_auth(struct net_de } } - WARN_ON(!done); - - nl80211_send_rx_auth(rdev, dev, buf, len, GFP_KERNEL); - cfg80211_sme_rx_auth(dev, buf, len); + if (done) { + nl80211_send_rx_auth(rdev, dev, buf, len, GFP_KERNEL); + cfg80211_sme_rx_auth(dev, buf, len); + } wdev_unlock(wdev); }