Simple (and dirty) libnl code that retrieves some stats about a given wireless interface
Inspired from :
- https://alamot.github.io/nl80211/
- wpa_supplicant code
- https://netwisdom.cs.memphis.edu/gitlab/nmgordon/mininet-wifi/
- A few other open source projects
Output sample : Interface: wlp3s0 | txrate: 72.2 MBit/s | txfailed: 0 | freq: 2412 | MCS: 7 | NSS: 1 | VHT_CAP: 0 | HT_CAP: 4462