diff options
author | monthadar <monthadar@FreeBSD.org> | 2013-02-07 21:18:22 +0000 |
---|---|---|
committer | monthadar <monthadar@FreeBSD.org> | 2013-02-07 21:18:22 +0000 |
commit | d1e96afdf87d937574a67257cb35c0f0b2e1ad47 (patch) | |
tree | fcaa48c72e323abd5c5f8425e06ee2dc5e8407d1 /sys/net80211 | |
parent | 6029a16e375b541b537876704c1732f0da927ae6 (diff) | |
download | FreeBSD-src-d1e96afdf87d937574a67257cb35c0f0b2e1ad47.zip FreeBSD-src-d1e96afdf87d937574a67257cb35c0f0b2e1ad47.tar.gz |
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)
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_mesh.c | 3 | ||||
-rw-r--r-- | sys/net80211/ieee80211_output.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_mesh.c b/sys/net80211/ieee80211_mesh.c index d2f63e5..96ba399 100644 --- a/sys/net80211/ieee80211_mesh.c +++ b/sys/net80211/ieee80211_mesh.c @@ -1246,6 +1246,9 @@ mesh_recv_indiv_data_to_me(struct ieee80211vap *vap, struct mbuf *m, * 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 */ } diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 57925f2..8f3e51b 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -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); |