Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 21:18:22 +0000 (UTC)
From:      Monthadar Al Jaberi <monthadar@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246499 - head/sys/net80211
Message-ID:  <201302072118.r17LIMjM008535@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: monthadar
Date: Thu Feb  7 21:18:22 2013
New Revision: 246499
URL: http://svnweb.freebsd.org/changeset/base/246499

Log:
  Add mesh debug for interarction between DS & MBSS.
  
  * Add mesh debug information when frames enter or leave the MBSS;
  * Set IEEE80211_MSG_OUTPUT bit to enable output;
  
  Approved by:	adrian (mentor)

Modified:
  head/sys/net80211/ieee80211_mesh.c
  head/sys/net80211/ieee80211_output.c

Modified: head/sys/net80211/ieee80211_mesh.c
==============================================================================
--- head/sys/net80211/ieee80211_mesh.c	Thu Feb  7 21:17:35 2013	(r246498)
+++ head/sys/net80211/ieee80211_mesh.c	Thu Feb  7 21:18:22 2013	(r246499)
@@ -1246,6 +1246,9 @@ mesh_recv_indiv_data_to_me(struct ieee80
 		 * All other cases: forward of MSDUs from the MBSS to DS indiv.
 		 * addressed according to 13.11.3.2.
 		 */
+		IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_OUTPUT, qwh->i_addr2,
+		    "forward frame to DS, SA(%6D) DA(%6D)",
+		    mc10->mc_addr6, ":", mc10->mc_addr5, ":");
 	}
 	return (0); /* process locally */
 }

Modified: head/sys/net80211/ieee80211_output.c
==============================================================================
--- head/sys/net80211/ieee80211_output.c	Thu Feb  7 21:17:35 2013	(r246498)
+++ head/sys/net80211/ieee80211_output.c	Thu Feb  7 21:18:22 2013	(r246499)
@@ -262,6 +262,10 @@ ieee80211_start(struct ifnet *ifp)
 					m_freem(m);
 					continue;
 				}
+				IEEE80211_DPRINTF(vap, IEEE80211_MSG_OUTPUT,
+				    "forward frame from DS SA(%6D), DA(%6D)\n",
+				    eh->ether_dhost, ":",
+				    eh->ether_shost, ":");
 				ieee80211_mesh_proxy_check(vap, eh->ether_shost);
 			}
 			ni = ieee80211_mesh_discover(vap, eh->ether_dhost, m);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302072118.r17LIMjM008535>