From patchwork Tue Jun 3 08:24:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pontus Fuchs X-Patchwork-Id: 355238 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D2DE1140092 for ; Tue, 3 Jun 2014 18:25:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 861E29D2E4; Tue, 3 Jun 2014 04:25:45 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jGC0k7Fea4It; Tue, 3 Jun 2014 04:25:45 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 111629D2AD; Tue, 3 Jun 2014 04:25:20 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2846617C01F for ; Tue, 3 Jun 2014 04:25:18 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7u9nsQDExJK0 for ; Tue, 3 Jun 2014 04:25:11 -0400 (EDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 088919D238 for ; Tue, 3 Jun 2014 04:25:10 -0400 (EDT) Received: by mail-la0-f43.google.com with SMTP id mc6so3301091lab.30 for ; Tue, 03 Jun 2014 01:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=l9Q/ywWevPXGc1aeragItdYWY0sa1eg7nIhiy+hHnRQ=; b=Jig3FnVDiEFZKeyCPf67tQtOmRdT7CNQLylUxmSKsE9q7He/Z+sTKU9EG2F2zs8pPx TXNyjKpsIWqd+xTlcRvvdwM6+mzSG9TmcIqVLQ4Uv5m43TLj2RMvAWvAVDvnygzdPPmf g44oJDjsMUnElnt0vSVhfNWXgoR0ToqDGYnUhHIexR21Psmt1xQcVOhzC/76SVmV7j/l EpkWatjtxtr1X4xxmkk2kLgia6d5YHmz1noKxuKxkzwSANlBew5CqeFHx981lysblJYZ kR2N/OHBV/UZ6bkWVOgwmtrtIuDx1jnDhTJUKXzxBs3vK5/7e0OF+w5PmI+ESlKL24T9 wKBw== X-Received: by 10.152.87.20 with SMTP id t20mr810360laz.79.1401783908171; Tue, 03 Jun 2014 01:25:08 -0700 (PDT) Received: from localhost.localdomain (host-95-192-230-88.mobileonline.telia.com. [95.192.230.88]) by mx.google.com with ESMTPSA id y6sm13300753laj.17.2014.06.03.01.25.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jun 2014 01:25:07 -0700 (PDT) From: Pontus Fuchs To: hostap@lists.shmoo.com Subject: [PATCH 2/2] nl80211: Improve debug output by printing SA and DA in frames Date: Tue, 3 Jun 2014 10:24:54 +0200 Message-Id: <1401783894-3592-2-git-send-email-pontus.fuchs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401783894-3592-1-git-send-email-pontus.fuchs@gmail.com> References: <1401783894-3592-1-git-send-email-pontus.fuchs@gmail.com> X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Signed-off-by: Pontus Fuchs --- src/drivers/driver_nl80211.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 56434ed..bf4f6a0 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1735,8 +1735,9 @@ static void mlme_event_mgmt(struct i802_bss *bss, rx_freq = drv->last_mgmt_freq = event.rx_mgmt.freq; } wpa_printf(MSG_DEBUG, - "nl80211: RX frame freq=%d ssi_signal=%d stype=%u (%s) len=%u", - rx_freq, ssi_signal, stype, fc2str(fc), + "nl80211: RX frame sa=" MACSTR + " freq=%d ssi_signal=%d stype=%u (%s) len=%u", + MAC2STR(mgmt->sa), rx_freq, ssi_signal, stype, fc2str(fc), (unsigned int) len); event.rx_mgmt.frame = frame; event.rx_mgmt.frame_len = len; @@ -7071,8 +7072,9 @@ static int wpa_driver_nl80211_send_mlme(struct i802_bss *bss, const u8 *data, mgmt = (struct ieee80211_mgmt *) data; fc = le_to_host16(mgmt->frame_control); - wpa_printf(MSG_DEBUG, "nl80211: send_mlme - noack=%d freq=%u no_cck=%d offchanok=%d wait_time=%u fc=0x%x (%s) nlmode=%d", - noack, freq, no_cck, offchanok, wait_time, fc, fc2str(fc), drv->nlmode); + wpa_printf(MSG_DEBUG, "nl80211: send_mlme - da= " MACSTR " noack=%d " + "freq=%u no_cck=%d offchanok=%d wait_time=%u fc=0x%x (%s) nlmode=%d", + MAC2STR(mgmt->da), noack, freq, no_cck, offchanok, wait_time, fc, fc2str(fc), drv->nlmode); if ((is_sta_interface(drv->nlmode) || drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) &&