From 726b5dada8055f705bb1ffb67d9acc3cad99457d Mon Sep 17 00:00:00 2001 From: Ashwin Date: Mon, 4 Aug 2014 16:50:23 -0700 Subject: PNO MAC rotation + Hotlist LOST event modified: include/hardware_legacy/gscan.h modified: include/hardware_legacy/wifi_hal.h Change-Id: I0ad599a20210081ffd05040fbb810f1ec1f9dd62 --- include/hardware_legacy/gscan.h | 6 ++++++ include/hardware_legacy/wifi_hal.h | 1 + 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/hardware_legacy/gscan.h b/include/hardware_legacy/gscan.h index 6232d8a..5163e01 100644 --- a/include/hardware_legacy/gscan.h +++ b/include/hardware_legacy/gscan.h @@ -134,6 +134,8 @@ wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush typedef struct { void (*on_hotlist_ap_found)(wifi_request_id id, unsigned num_results, wifi_scan_result *results); + void (*on_hotlist_ap_lost)(wifi_request_id id, + unsigned num_results, wifi_scan_result *results); } wifi_hotlist_ap_found_handler; typedef struct { @@ -144,6 +146,7 @@ typedef struct { } ap_threshold_param; typedef struct { + int lost_ap_sample_size; int num_ap; // number of hotlist APs ap_threshold_param ap[MAX_HOTLIST_APS]; // hotlist APs } wifi_bssid_hotlist_params; @@ -183,5 +186,8 @@ wifi_error wifi_set_significant_change_handler(wifi_request_id id, wifi_interfac /* Clear the Signifcant AP change list */ wifi_error wifi_reset_significant_change_handler(wifi_request_id id, wifi_interface_handle iface); +/* Random MAC OUI for PNO */ +wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, oui scan_oui); + #endif diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index 4fe8d47..9c4baa8 100644 --- a/include/hardware_legacy/wifi_hal.h +++ b/include/hardware_legacy/wifi_hal.h @@ -43,6 +43,7 @@ typedef int wifi_request_id; typedef int wifi_channel; // indicates channel frequency in MHz typedef int wifi_rssi; typedef byte mac_addr[6]; +typedef byte oui[3]; typedef int64_t wifi_timestamp; // In microseconds (us) typedef int64_t wifi_timespan; // In nanoseconds (ns) -- cgit v1.1