print both fc bytes when hitting a protocol version mismatch
This commit is contained in:
parent
49eae5f79e
commit
dc7bf546c8
@ -341,7 +341,8 @@ adhoc_input(struct ieee80211_node *ni, struct mbuf *m,
|
|||||||
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
||||||
IEEE80211_FC0_VERSION_0) {
|
IEEE80211_FC0_VERSION_0) {
|
||||||
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
|
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++;
|
vap->iv_stats.is_rx_badversion++;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
@ -475,7 +475,8 @@ hostap_input(struct ieee80211_node *ni, struct mbuf *m,
|
|||||||
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
||||||
IEEE80211_FC0_VERSION_0) {
|
IEEE80211_FC0_VERSION_0) {
|
||||||
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
|
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++;
|
vap->iv_stats.is_rx_badversion++;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
@ -547,7 +547,8 @@ sta_input(struct ieee80211_node *ni, struct mbuf *m,
|
|||||||
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
||||||
IEEE80211_FC0_VERSION_0) {
|
IEEE80211_FC0_VERSION_0) {
|
||||||
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
|
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++;
|
vap->iv_stats.is_rx_badversion++;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
@ -525,7 +525,8 @@ wds_input(struct ieee80211_node *ni, struct mbuf *m,
|
|||||||
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
|
||||||
IEEE80211_FC0_VERSION_0) {
|
IEEE80211_FC0_VERSION_0) {
|
||||||
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
|
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++;
|
vap->iv_stats.is_rx_badversion++;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user