user2441920 February 2016

SO_WIFI_STATUS socket option in Linux

Could someone shed some light on the SO_WIFI_STATUS socket option - I encountered it in the hostapd nl80211 driver code. I could find it's declaration in the /usr/include/asm-generic/socket.h file but could not find any relevant documentation anywhere.


jbm February 2016

The explanation and patch: [RFC] net: add wireless TX status socket option

A sample application:

The references:

If you could not find it in your /usr/include/asm-generic/socket.h, it's because your kernel is too old. In mine:

jbm@sumo:~$ grep -n SO_WIFI_STATUS /usr/include/asm-generic/socket.h
68:#define SO_WIFI_STATUS       41
jbm@sumo:~$ uname -a
Linux sumo 4.3.0-1-amd64 #1 SMP Debian 4.3.3-7 (2016-01-19) x86_64 GNU/Linux

Post Status

Asked in February 2016
Viewed 3,997 times
Voted 12
Answered 1 times


Leave an answer