From patchwork Sun Nov 25 22:24:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1799681 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 73B09DF264 for ; Sun, 25 Nov 2012 22:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536Ab2KYWZ0 (ORCPT ); Sun, 25 Nov 2012 17:25:26 -0500 Received: from ht1.myhostedexchange.com ([69.50.2.37]:17476 "EHLO ht1.hostedexchange.local" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753516Ab2KYWZZ (ORCPT ); Sun, 25 Nov 2012 17:25:25 -0500 Received: from eagle4.ritirata.org (81.174.7.56) by ht1.hostedexchange.local (172.16.69.39) with Microsoft SMTP Server id 8.3.279.5; Sun, 25 Nov 2012 14:25:24 -0800 From: Antonio Quartulli To: Johannes Berg CC: , Antonio Quartulli Subject: [PATCH] mac80211: in ADHOC print debug message for every Auth message Date: Sun, 25 Nov 2012 23:24:27 +0100 Message-ID: <1353882267-27576-1-git-send-email-antonio@open-mesh.com> X-Mailer: git-send-email 1.8.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The debug message has to be printed also for an Auth message with auth_sequence != 1. This helps understanding whether the two Auth messages are exchanged correctly or not. Signed-off-by: Antonio Quartulli --- net/mac80211/ibss.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index cc11558..845973b 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -374,11 +374,13 @@ static void ieee80211_rx_mgmt_auth_ibss(struct ieee80211_sub_if_data *sdata, auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); - if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) - return; ibss_dbg(sdata, "RX Auth SA=%pM DA=%pM BSSID=%pM (auth_transaction=%d)\n", mgmt->sa, mgmt->da, mgmt->bssid, auth_transaction); + + if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) + return; + sta_info_destroy_addr(sdata, mgmt->sa); sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, 0, false); rcu_read_unlock();