I am completely new to networks, and need to find a way to read wireless networks beacon frames data. I did so for windows, using Win32 wlanapi, now need to do the same for linux.
I have been trying to port iwlist scanning functionality (which seems to parse bssds beacon frames good enough for me) into a c# app, but without success.
As a last shot, I would like to inquire about which other tools in linux do read beacon frames. I prefer reading the frames following the type-length-value structure myself, rather than have it parsed to string.
What are the options out there for this ? could you please share an example call for such a tool ?
I have been playing (or trying) with:
- iwlist scanning
- iw dev [interface name] scan dump -v (does not seem to read beacon frames, at least not as iwlist scanning)
- wpa_supplicant - not managed to do so, if possible at all
- libpcap (not tried yet)
Remark: UI tools are not suitable. My goal is to have a C# app running at regular intervals reading beacon frames and extracting info from them.
Do ultimately all options rely on communicating with linux 80211 driver? Meaning writing a C program that interfaces the driver a good option, so not to rely in anything else?