From patchwork Wed Oct 14 00:50:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Rodriguez X-Patchwork-Id: 53570 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9E0rVHn000342 for ; Wed, 14 Oct 2009 00:53:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823AbZJNAvU (ORCPT ); Tue, 13 Oct 2009 20:51:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753717AbZJNAvU (ORCPT ); Tue, 13 Oct 2009 20:51:20 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:55174 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753453AbZJNAvT (ORCPT ); Tue, 13 Oct 2009 20:51:19 -0400 Received: from mcgrof by bombadil.infradead.org with local (Exim 4.69 #1 (Red Hat Linux)) id 1Mxs4g-000744-RD; Wed, 14 Oct 2009 00:50:42 +0000 From: "Luis R. Rodriguez" To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, "Luis R. Rodriguez" , ic.felix@gmail.com, Johannes Berg Subject: [PATCH] mac80211: fix SME warning by removing stale BSS upon assoc failure Date: Tue, 13 Oct 2009 20:50:42 -0400 Message-Id: <1255481442-27130-1-git-send-email-lrodriguez@atheros.com> X-Mailer: git-send-email 1.6.2.rc1.3.g81d3f Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 33a696f..a884672 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1463,11 +1463,11 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, if (status_code != WLAN_STATUS_SUCCESS) { printk(KERN_DEBUG "%s: AP denied association (code=%d)\n", sdata->dev->name, status_code); list_del(&wk->list); kfree(wk); - return RX_MGMT_CFG80211_ASSOC; + return RX_MGMT_CFG80211_DEAUTH; } if ((aid & (BIT(15) | BIT(14))) != (BIT(15) | BIT(14))) printk(KERN_DEBUG "%s: invalid aid value %d; bits 15:14 not " "set\n", sdata->dev->name, aid);