diff options
author | Vinit Deshpande <vinitd@google.com> | 2015-05-13 18:39:30 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2015-05-13 18:39:30 -0700 |
commit | a64d14b7665d8da65ba345729fc7a3770b391b2b (patch) | |
tree | fd27b76a3038a9af420a5191bf99a0f9ea017d21 /include/hardware_legacy/gscan.h | |
parent | 44e832111643307772fa3dcbc521d1acd4e8ae7d (diff) | |
parent | e28e2bbfda1f2dc684f03d59398fa71945834878 (diff) | |
download | hardware_libhardware_legacy-a64d14b7665d8da65ba345729fc7a3770b391b2b.zip hardware_libhardware_legacy-a64d14b7665d8da65ba345729fc7a3770b391b2b.tar.gz hardware_libhardware_legacy-a64d14b7665d8da65ba345729fc7a3770b391b2b.tar.bz2 |
am 1ee8d6b..e28e2bb from mirror-m-wireless-internal-release
e28e2bb Introduce REPORT_EVENTS_NO_BATCH flag for ePNO
ddcab17 WifiLogger: Add new events and tags
1abb250 change wifi Logging header
bd14c1c add pointers to new roaming HAL functions
Change-Id: I4645ceb57de34109d417bc9b84ff6d2cb202a78d
Diffstat (limited to 'include/hardware_legacy/gscan.h')
-rw-r--r-- | include/hardware_legacy/gscan.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/hardware_legacy/gscan.h b/include/hardware_legacy/gscan.h index 48c28ed..69e4159 100644 --- a/include/hardware_legacy/gscan.h +++ b/include/hardware_legacy/gscan.h @@ -101,6 +101,10 @@ typedef struct { /* Add channel class */ } wifi_scan_channel_spec; +#define REPORT_EVENTS_BUFFER_FULL 0 +#define REPORT_EVENTS_EACH_SCAN 1 +#define REPORT_EVENTS_FULL_RESULTS 2 +#define REPORT_EVENTS_NO_BATCH 4 typedef struct { int bucket; // bucket index, 0 based @@ -110,11 +114,14 @@ typedef struct { // fast as it can instead of failing the command. // for exponential backoff bucket this is the min_period /* report_events semantics - - * 0 => report only when scan history is % full - * 1 => same as 0 + report a scan completion event after scanning this bucket - * 2 => same as 1 + forward scan results (beacons/probe responses + IEs) in real time to HAL - * 3 => same as 2 + forward scan results (beacons/probe responses + IEs) in real time to - supplicant as well (optional) . + * This is a bit field; which defines following bits - + * REPORT_EVENTS_BUFFER_FULL => report only when scan history is % full + * REPORT_EVENTS_EACH_SCAN => report a scan completion event after scan + * REPORT_EVENTS_FULL_RESULTS => forward scan results (beacons/probe responses + IEs) + * in real time to HAL, in addition to completion events + * Note: To keep backward compatibility, fire completion + * events regardless of REPORT_EVENTS_EACH_SCAN. + * REPORT_EVENTS_NO_BATCH => controls batching, 0 => batching, 1 => no batching */ byte report_events; int max_period; // if max_period is non zero or different than period, then this bucket is |