summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshwin <ashwin.bhat@broadcom.com>2014-08-12 04:58:00 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-12 04:58:00 +0000
commitb6cc3b7a4f52e52dad079be74f2608ab5a795328 (patch)
tree6260500d79bf2db148c1c7b35cf8cd841f37c069
parent4706e1ba94a366f527ec4915ec9ca4f83480aa86 (diff)
parent726b5dada8055f705bb1ffb67d9acc3cad99457d (diff)
downloadhardware_libhardware_legacy-b6cc3b7a4f52e52dad079be74f2608ab5a795328.zip
hardware_libhardware_legacy-b6cc3b7a4f52e52dad079be74f2608ab5a795328.tar.gz
hardware_libhardware_legacy-b6cc3b7a4f52e52dad079be74f2608ab5a795328.tar.bz2
am 726b5dad: PNO MAC rotation + Hotlist LOST event
* commit '726b5dada8055f705bb1ffb67d9acc3cad99457d': PNO MAC rotation + Hotlist LOST event
-rw-r--r--include/hardware_legacy/gscan.h6
-rw-r--r--include/hardware_legacy/wifi_hal.h1
2 files changed, 7 insertions, 0 deletions
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)