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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to