summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/gscan.h
diff options
context:
space:
mode:
authorVinit Deshapnde <vinitd@google.com>2014-04-11 11:10:14 -0700
committerVinit Deshapnde <vinitd@google.com>2014-05-07 19:23:27 -0700
commit5eabea5585ec32196e305ada279317c78fc924c3 (patch)
tree7d133354eefcd4a5ebb44cfc70f0e7d5b6bb7908 /include/hardware_legacy/gscan.h
parentb80d32d2a1ba28f2b5dda7315e136a9ea14eda26 (diff)
downloadhardware_libhardware_legacy-5eabea5585ec32196e305ada279317c78fc924c3.tar.gz
hardware_libhardware_legacy-5eabea5585ec32196e305ada279317c78fc924c3.tar.bz2
hardware_libhardware_legacy-5eabea5585ec32196e305ada279317c78fc924c3.zip
Introduce on_full_scan_result event in WifiHal
This change will allow the hardware to report all IEs found in the probe response. Change-Id: I149900c63a301df84fd6ff6eb1a1f3773daa0111
Diffstat (limited to 'include/hardware_legacy/gscan.h')
-rw-r--r--include/hardware_legacy/gscan.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/hardware_legacy/gscan.h b/include/hardware_legacy/gscan.h
index e0e983a..f06ed28 100644
--- a/include/hardware_legacy/gscan.h
+++ b/include/hardware_legacy/gscan.h
@@ -44,7 +44,15 @@ typedef struct {
} wifi_scan_result;
typedef struct {
+ byte id; // element identifier
+ byte len; // number of bytes to follow
+ byte data[];
+} wifi_information_element;
+
+typedef struct {
void (*on_scan_results_available) (wifi_request_id id, unsigned num_results_available);
+ void (*on_full_scan_result) (wifi_request_id id, wifi_scan_result result,
+ unsigned num, wifi_information_element *elements);
} wifi_scan_result_handler;
typedef struct {
@@ -60,7 +68,7 @@ typedef struct {
int period; // desired period, in millisecond; if this is too
// low, the firmware should choose to generate results as
// fast as it can instead of failing the command
- byte report_events; // 1 => report events after each scan
+ byte report_events; // 1 => report full_scan_result after each AP is discovered
int num_channels;
wifi_scan_channel_spec channels[8]; // channels to scan; these may include DFS channels
} wifi_scan_bucket_spec;