From patchwork Fri Mar 18 20:22:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Cardona X-Patchwork-Id: 644941 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2IKNCTZ012545 for ; Fri, 18 Mar 2011 20:23:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757198Ab1CRUXL (ORCPT ); Fri, 18 Mar 2011 16:23:11 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:37973 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757150Ab1CRUXK (ORCPT ); Fri, 18 Mar 2011 16:23:10 -0400 Received: by mail-iy0-f174.google.com with SMTP id 26so4365892iyb.19 for ; Fri, 18 Mar 2011 13:23:09 -0700 (PDT) Received: by 10.42.244.8 with SMTP id lo8mr2120076icb.380.1300479789746; Fri, 18 Mar 2011 13:23:09 -0700 (PDT) Received: from localhost.localdomain (adsl-99-114-136-65.dsl.pltn13.sbcglobal.net [99.114.136.65]) by mx.google.com with ESMTPS id 19sm2425023ibx.1.2011.03.18.13.23.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 13:23:08 -0700 (PDT) From: Javier Cardona To: "John W. Linville" Cc: Javier Cardona , Thomas Pedersen , devel@lists.open80211s.org, Johannes Berg , linux-wireless@vger.kernel.org Subject: [PATCH 3/5 v4] mac80211: Accept mesh auth frames before a peer link has been established Date: Fri, 18 Mar 2011 13:22:10 -0700 Message-Id: <1300479732-25920-4-git-send-email-javier@cozybit.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1299288252-28314-1-git-send-email-thomas@cozybit.com> References: <1299288252-28314-1-git-send-email-thomas@cozybit.com> 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 18 Mar 2011 20:23:13 +0000 (UTC) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 5c1930b..fe0f1e3 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -502,7 +502,8 @@ ieee80211_rx_mesh_check(struct ieee80211_rx_data *rx) if (ieee80211_is_probe_req(hdr->frame_control) || ieee80211_is_probe_resp(hdr->frame_control) || - ieee80211_is_beacon(hdr->frame_control)) + ieee80211_is_beacon(hdr->frame_control) || + ieee80211_is_auth(hdr->frame_control)) return RX_CONTINUE; return RX_DROP_MONITOR;