From a759f40b5224c6337dc64a57db66937c3de42e9c Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- ssize_t wpactrl_querysa (wpactrl_t *a, char const *q, stralloc *sa, tain_t *stamp)
+ int wpactrl_querysa (wpactrl_t *a, char const *q, stralloc *sa, tain_t *stamp)
Sends the query q to the connected instance
of wpa_supplicant, and reads its answer into the
stralloc
@@ -472,5 +472,17 @@ written the results to the auxiliary pointer. dt can now be ignored.
error.
+
+ The provided + bcnm-wpactrl-scan.c +file is an example on how to program with +skalibs and libwpactrl. It connects to +a wpa_supplicant instance (it takes the path to the Unix socket to wpa_supplicant as +an argument), requests a scan, waits for the scan results with a timeout of 10 +seconds, and prints the results as is on its standard output. +
+