From patchwork Mon Nov 9 23:46:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Paulo X-Patchwork-Id: 58895 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA9NlUAu015196 for ; Mon, 9 Nov 2009 23:47:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755695AbZKIXrX (ORCPT ); Mon, 9 Nov 2009 18:47:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755694AbZKIXrX (ORCPT ); Mon, 9 Nov 2009 18:47:23 -0500 Received: from ey-out-2122.google.com ([74.125.78.24]:19838 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755680AbZKIXrW (ORCPT ); Mon, 9 Nov 2009 18:47:22 -0500 Received: by ey-out-2122.google.com with SMTP id 4so87855eyf.19 for ; Mon, 09 Nov 2009 15:47:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=1T82r1nt9hCq3rCgx1aN0isEUbRf/PBWnLmQx51CFSw=; b=uaWGgKCD395XmJ1BnxuLBv1sEIEMCwYqCKIFn8Z17kMg5CQuYm58twJyXS8bIK1MSf /3ZSEYshJCJH27ROfAPzksGIV9KT1/+Hy9Nv5uXC/VQBctX5CsKQyEfyU5SrcEUXqevq ySJ4xGLYYS2hOHnTsEuoUDURLMFdFTgGGoRgs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=aZK2/8bYlEwLnOK59g6K9S3qkKj/4O7fBC40B0eXkuI3jaA0KBnYBnMyxUQYhcdQmV 7omdthM3GikP9R++8tbSXUeW/b+JRtuI8jC3Tzu2AS4M9vRDuXMoJwS1Ou5gJHo3NiRX pZngF8z8bL0rCBMM9f/1TuCvcMwIVDLgZDWjU= Received: by 10.213.24.20 with SMTP id t20mr9805166ebb.3.1257810445516; Mon, 09 Nov 2009 15:47:25 -0800 (PST) Received: from localhost (bl5-227-167.dsl.telepac.pt [82.154.227.167]) by mx.google.com with ESMTPS id 7sm443525eyg.17.2009.11.09.15.47.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Nov 2009 15:47:24 -0800 (PST) From: Rui Paulo To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Johannes Berg , Rui Paulo , Javier Cardona Subject: [PATCH v2 09/20] mac80211: improve HWMP debugging Date: Mon, 9 Nov 2009 23:46:47 +0000 Message-Id: <1257810418-30075-10-git-send-email-rpaulo@gmail.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1257810418-30075-1-git-send-email-rpaulo@gmail.com> References: <1257810418-30075-1-git-send-email-rpaulo@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index e67e812..db1a330 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -115,13 +115,13 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, switch (action) { case MPATH_PREQ: - mhwmp_dbg("sending PREQ\n"); + mhwmp_dbg("sending PREQ to %pM\n", dst); ie_len = 37; pos = skb_put(skb, 2 + ie_len); *pos++ = WLAN_EID_PREQ; break; case MPATH_PREP: - mhwmp_dbg("sending PREP\n"); + mhwmp_dbg("sending PREP to %pM\n", dst); ie_len = 31; pos = skb_put(skb, 2 + ie_len); *pos++ = WLAN_EID_PREP; @@ -439,7 +439,7 @@ static void hwmp_preq_frame_process(struct ieee80211_sub_if_data *sdata, orig_dsn = PREQ_IE_ORIG_DSN(preq_elem); dst_flags = PREQ_IE_DST_F(preq_elem); - mhwmp_dbg("received PREQ\n"); + mhwmp_dbg("received PREQ from %pM\n", orig_addr); if (memcmp(dst_addr, sdata->dev->dev_addr, ETH_ALEN) == 0) { mhwmp_dbg("PREQ is for us\n"); @@ -498,7 +498,7 @@ static void hwmp_preq_frame_process(struct ieee80211_sub_if_data *sdata, ifmsh->mshstats.dropped_frames_ttl++; return; } - mhwmp_dbg("forwarding the PREQ\n"); + mhwmp_dbg("forwarding the PREQ from %pM\n", orig_addr); --ttl; flags = PREQ_IE_FLAGS(preq_elem); preq_id = PREQ_IE_PREQ_ID(preq_elem); @@ -525,7 +525,7 @@ static void hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata, u8 next_hop[ETH_ALEN]; u32 dst_dsn, orig_dsn, lifetime; - mhwmp_dbg("received PREP\n"); + mhwmp_dbg("received PREP from %pM\n", PREP_IE_ORIG_ADDR(prep_elem)); /* Note that we divert from the draft nomenclature and denominate * destination to what the draft refers to as origininator. So in this @@ -628,7 +628,6 @@ void mesh_rx_path_sel_frame(struct ieee80211_sub_if_data *sdata, ieee802_11_parse_elems(mgmt->u.action.u.mesh_action.variable, len - baselen, &elems); - mhwmp_dbg("RX path selection frame\n"); if (elems.preq) { if (elems.preq_len != 37) /* Right now we support just 1 destination and no AE */