From patchwork Fri Feb 5 00:21:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit PAPILLAULT X-Patchwork-Id: 77251 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o150LOk1026969 for ; Fri, 5 Feb 2010 00:21:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933493Ab0BEAVX (ORCPT ); Thu, 4 Feb 2010 19:21:23 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:36467 "EHLO smtp1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933476Ab0BEAVX (ORCPT ); Thu, 4 Feb 2010 19:21:23 -0500 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 25D0B940024; Fri, 5 Feb 2010 01:21:16 +0100 (CET) Received: from benoit-laptop (ns.popipo.fr [88.163.232.53]) by smtp1-g21.free.fr (Postfix) with ESMTP id D25779400AA; Fri, 5 Feb 2010 01:21:13 +0100 (CET) Received: by benoit-laptop (Postfix, from userid 1000) id 62FE01DE079; Fri, 5 Feb 2010 01:21:12 +0100 (CET) From: Benoit Papillault To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Benoit Papillault , stable@kernel.org Subject: [PATCH] mac80211: Fix probe request filtering in IBSS mode Date: Fri, 5 Feb 2010 01:21:03 +0100 Message-Id: <1265329263-3120-1-git-send-email-benoit.papillault@free.fr> X-Mailer: git-send-email 1.6.3.3 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]); Fri, 05 Feb 2010 00:21:25 +0000 (UTC) diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 86bd2a0..e905c45 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -714,7 +714,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, } if (pos[1] != 0 && (pos[1] != ifibss->ssid_len || - !memcmp(pos + 2, ifibss->ssid, ifibss->ssid_len))) { + memcmp(pos + 2, ifibss->ssid, ifibss->ssid_len))) { /* Ignore ProbeReq for foreign SSID */ return; }