Is it possible to record "number of scans" performed information down at supplicant level and make it available at Application layer?

Jouni Malinen j
Sat Aug 6 11:37:37 PDT 2011


On Wed, Aug 03, 2011 at 09:52:02PM -0400, Nithyananthan Poosamani wrote:
> I know that wpa_supplicant data structure has "scan_runs" integer member
> element which can inform me of the number of scan runs performed after the
> supplicant service started running.
> However I do not know how to record these value somehow and make it
> available to an application running at the top.

> Can I write information directly onto a file say "xyz.txt" in /data
> directory or somewhere so that I can retrieve it later using a rooted
> phone?

Exposing the current value through the control interface (e.g., the
STATUS command) would sound like a cleaner way. See
wpa_supplicant_ctrl_iface_status() in wpa_supplicant/ctrl_iface.c.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list