iwm: Fix S:N reporting in ifconfig(8)
authorMichael Neumann <mneumann@ntecs.de>
Tue, 2 Apr 2024 15:19:53 +0000 (17:19 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Tue, 2 Apr 2024 15:19:53 +0000 (17:19 +0200)
commit796562b1e5843c4cc8963c19ab36cfac04182dcd
tree576b39e62d6fa48285dc98d4f69cdd3d591dd5a9
parent4cbc7cf96a5a52309aab9d8db3e0335042767af2
iwm: Fix S:N reporting in ifconfig(8)

While there, rename ieee80211_rx_stats fields nf and rssi to c_nf and
c_rssi, following FreeBSD and other field names of the struct.

With this commit, S:N is properly reported:

> ifconfig wlan0 scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
The Bloom R...  00:e0:4c:b7:65:8c    1   54M -33:-96  100 EP   WPA RSN HTCAP WME
0x4e68c3a02...  50:0f:f5:c5:cd:d9    1   54M -82:-96  100 EP   HTCAP MESHCONF RSN WME
Genetica ta...  b0:be:76:df:af:a6    1   54M -83:-96  100 EPS  RSN HTCAP WME ATH WPS
The Bloom R...  00:e0:4c:b7:6a:b0    6   54M -57:-96  100 EP   WPA RSN HTCAP WME
...

Fixes: https://bugs.dragonflybsd.org/issues/3366 (#3366)
sys/dev/netif/iwm/if_iwm.c
sys/netproto/802_11/ieee80211_dragonfly.h
sys/netproto/802_11/wlan/ieee80211_input.c