PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184626
Currently we don't account TX statistics on wlan(4) interfaces. This patch add this accounting.
Since ieee80211_pwrsave() can fail due to queue overflow, check its return code and increment oerrors counter when it fails.
Update obytes and omcasts counters. It seems it is correct to save mbuf's lenght for incrementing obytes before calling ieee80211_encap().
Also update oerrors in case when we don't send mbuf due to some errors.
Details
Details
- Reviewers
adrian - Group Reviewers
network - Commits
- rS283855: MFC r283313:
rS283313: Properly update TX statistics for wlan(4).
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable