diff options
author | sam <sam@FreeBSD.org> | 2003-10-17 22:15:26 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-10-17 22:15:26 +0000 |
commit | a6b5975f25a617aae0e598cdc6921a1f616754d6 (patch) | |
tree | 92d337c874c0e4f8eaeef013566bcdd2ea32ac5c /sys/net80211 | |
parent | 45942b2f208f5e94f1b4ff569961c42319eab623 (diff) | |
download | FreeBSD-src-a6b5975f25a617aae0e598cdc6921a1f616754d6.zip FreeBSD-src-a6b5975f25a617aae0e598cdc6921a1f616754d6.tar.gz |
fixup debug msgs
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 4b5ec93..2152c12 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -124,6 +124,8 @@ ieee80211_input(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni, * them to go through bpf tapping at the 802.11 layer. */ if (m->m_pkthdr.len < sizeof(struct ieee80211_frame)) { + IEEE80211_DPRINTF2(("%s: frame too short, len %u\n", + __func__, m->m_pkthdr.len)); /* XXX statistic */ goto out; /* XXX */ } @@ -148,8 +150,9 @@ ieee80211_input(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni, if (!IEEE80211_ADDR_EQ(bssid, ic->ic_bss->ni_bssid) && !IEEE80211_ADDR_EQ(bssid, ifp->if_broadcastaddr)) { /* not interested in */ - IEEE80211_DPRINTF2(("%s: other bss %s\n", - __func__, ether_sprintf(wh->i_addr3))); + IEEE80211_DPRINTF2(("%s: discard frame from " + "bss %s\n", __func__, + ether_sprintf(bssid))); goto out; } break; @@ -600,7 +603,7 @@ ieee80211_recv_mgmt(struct ieee80211com *ic, struct mbuf *m0, erp = frm[2]; break; default: - IEEE80211_DPRINTF(("%s: element id %u/len %u " + IEEE80211_DPRINTF2(("%s: element id %u/len %u " "ignored\n", __func__, *frm, frm[1])); break; } |