mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
net80211: fix duplicate packet counter incrementation.
Remove 'if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);' from raw xmit and apbridge path; it will be incremented by ieee80211_tx_complete() after packet transmission. Noticed by: Imre Vadasz <imre@vdsz.com>
This commit is contained in:
parent
03b521d4dc
commit
4d4d5e2508
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301722
@ -412,8 +412,8 @@ hostap_deliver_data(struct ieee80211vap *vap,
|
||||
ieee80211_free_node(sta);
|
||||
}
|
||||
}
|
||||
if (mcopy != NULL && ieee80211_vap_xmitpkt(vap, mcopy) == 0)
|
||||
if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
|
||||
if (mcopy != NULL)
|
||||
(void) ieee80211_vap_xmitpkt(vap, mcopy);
|
||||
}
|
||||
if (m != NULL) {
|
||||
/*
|
||||
|
@ -647,7 +647,6 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m,
|
||||
if (ieee80211_classify(ni, m))
|
||||
senderr(EIO); /* XXX */
|
||||
|
||||
if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
|
||||
IEEE80211_NODE_STAT(ni, tx_data);
|
||||
if (IEEE80211_IS_MULTICAST(wh->i_addr1)) {
|
||||
IEEE80211_NODE_STAT(ni, tx_mcast);
|
||||
|
Loading…
Reference in New Issue
Block a user