From patchwork Wed Apr 3 09:49:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 2386031 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9BBC53FD8C for ; Wed, 3 Apr 2013 10:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758776Ab3DCKaS (ORCPT ); Wed, 3 Apr 2013 06:30:18 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:58149 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758073Ab3DCKaS (ORCPT ); Wed, 3 Apr 2013 06:30:18 -0400 Received: by mail-pa0-f49.google.com with SMTP id kp14so832841pab.36 for ; Wed, 03 Apr 2013 03:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=rkoZKYWjY+hq2CX6Si116lVoWMK69NfgvjoqeihXnGU=; b=KmbLH+QpOJnpWlVDmzRke/z4T0SbGX0pgEK8QR2qohzokYMcTj3NFrVPwM9hb+6A4N YSX3z2XQN4J5/Ywlb+Sn2Rst16EFL6kirQgd+lb7Pdv1Nu1HR68prQCRTWSnff75GWpu CoAMDUm3nzUTF/Ou5vaK0Eq6ZX5Asbdrl+ly4vGj8xlfF/ewc5ykfSePWDRU78mFTEvF JsjXw4ucHCDgvCLZlfbmvLb42jJpTUyaFl4fnPmmtTnZhnKUkvNJHkoShSGFf/zVDrAw cR6tg4gbLSFCzT1qhWDDc5i4D2YXSXbkRGwKJVeMejC9SRwTKrYRKFnnWavxvX3ydfF4 sZJQ== X-Received: by 10.66.228.194 with SMTP id sk2mr2427434pac.51.1364985017316; Wed, 03 Apr 2013 03:30:17 -0700 (PDT) Received: from localhost.localdomain ([58.26.233.146]) by mx.google.com with ESMTPS id kb3sm5504668pbc.21.2013.04.03.03.30.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Apr 2013 03:30:15 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, linville@tuxdriver.com, devel@lists.open80211s.org, Chun-Yeow Yeoh Subject: [PATCH] mac80211: fix the PREP mesh hwmp debug message Date: Wed, 3 Apr 2013 17:49:53 +0800 Message-Id: <1364982593-30977-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The mesh hwmp debug message is a bit confusing. The "sending PREP to %p" should be the MAC address of mesh STA that has originated the PREQ message and the "received PREP from %pM" should be the MAC address of the mesh STA that has originated the PREP message. Signed-off-by: Chun-Yeow Yeoh --- net/mac80211/mesh_hwmp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index bdb8d3b..9490433 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -144,7 +144,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, *pos++ = WLAN_EID_PREQ; break; case MPATH_PREP: - mhwmp_dbg(sdata, "sending PREP to %pM\n", target); + mhwmp_dbg(sdata, "sending PREP to %pM\n", orig_addr); ie_len = 31; pos = skb_put(skb, 2 + ie_len); *pos++ = WLAN_EID_PREP; @@ -661,7 +661,7 @@ static void hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata, u32 target_sn, orig_sn, lifetime; mhwmp_dbg(sdata, "received PREP from %pM\n", - PREP_IE_ORIG_ADDR(prep_elem)); + PREP_IE_TARGET_ADDR(prep_elem)); orig_addr = PREP_IE_ORIG_ADDR(prep_elem); if (ether_addr_equal(orig_addr, sdata->vif.addr))