svn commit: r191547 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Sun Apr 26 21:50:24 UTC 2009


Author: sam
Date: Sun Apr 26 21:50:21 2009
New Revision: 191547
URL: http://svn.freebsd.org/changeset/base/191547

Log:
  print both fc bytes when hitting a protocol version mismatch

Modified:
  head/sys/net80211/ieee80211_adhoc.c
  head/sys/net80211/ieee80211_hostap.c
  head/sys/net80211/ieee80211_sta.c
  head/sys/net80211/ieee80211_wds.c

Modified: head/sys/net80211/ieee80211_adhoc.c
==============================================================================
--- head/sys/net80211/ieee80211_adhoc.c	Sun Apr 26 21:46:04 2009	(r191546)
+++ head/sys/net80211/ieee80211_adhoc.c	Sun Apr 26 21:50:21 2009	(r191547)
@@ -341,7 +341,8 @@ adhoc_input(struct ieee80211_node *ni, s
 	if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
 	    IEEE80211_FC0_VERSION_0) {
 		IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
-		    ni->ni_macaddr, NULL, "wrong version %x", wh->i_fc[0]);
+		    ni->ni_macaddr, NULL, "wrong version, fc %02x:%02x",
+		    wh->i_fc[0], wh->i_fc[1]);
 		vap->iv_stats.is_rx_badversion++;
 		goto err;
 	}

Modified: head/sys/net80211/ieee80211_hostap.c
==============================================================================
--- head/sys/net80211/ieee80211_hostap.c	Sun Apr 26 21:46:04 2009	(r191546)
+++ head/sys/net80211/ieee80211_hostap.c	Sun Apr 26 21:50:21 2009	(r191547)
@@ -475,7 +475,8 @@ hostap_input(struct ieee80211_node *ni, 
 	if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
 	    IEEE80211_FC0_VERSION_0) {
 		IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
-		    ni->ni_macaddr, NULL, "wrong version %x", wh->i_fc[0]);
+		    ni->ni_macaddr, NULL, "wrong version, fc %02x:%02x",
+		    wh->i_fc[0], wh->i_fc[1]);
 		vap->iv_stats.is_rx_badversion++;
 		goto err;
 	}

Modified: head/sys/net80211/ieee80211_sta.c
==============================================================================
--- head/sys/net80211/ieee80211_sta.c	Sun Apr 26 21:46:04 2009	(r191546)
+++ head/sys/net80211/ieee80211_sta.c	Sun Apr 26 21:50:21 2009	(r191547)
@@ -547,7 +547,8 @@ sta_input(struct ieee80211_node *ni, str
 	if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
 	    IEEE80211_FC0_VERSION_0) {
 		IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
-		    ni->ni_macaddr, NULL, "wrong version %x", wh->i_fc[0]);
+		    ni->ni_macaddr, NULL, "wrong version, fc %02x:%02x",
+		    wh->i_fc[0], wh->i_fc[1]);
 		vap->iv_stats.is_rx_badversion++;
 		goto err;
 	}

Modified: head/sys/net80211/ieee80211_wds.c
==============================================================================
--- head/sys/net80211/ieee80211_wds.c	Sun Apr 26 21:46:04 2009	(r191546)
+++ head/sys/net80211/ieee80211_wds.c	Sun Apr 26 21:50:21 2009	(r191547)
@@ -525,7 +525,8 @@ wds_input(struct ieee80211_node *ni, str
 	if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
 	    IEEE80211_FC0_VERSION_0) {
 		IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
-		    ni->ni_macaddr, NULL, "wrong version %x", wh->i_fc[0]);
+		    ni->ni_macaddr, NULL, "wrong version, fc %02x:%02x",
+		    wh->i_fc[0], wh->i_fc[1]);
 		vap->iv_stats.is_rx_badversion++;
 		goto err;
 	}


More information about the svn-src-head mailing list