Merge "wifi: Fetch the gscan bucket idx from request"
am: f297caedd7
Change-Id: I3255643eec01d0a6283b247fef5cf934aa0f2d6f
This commit is contained in:
commit
3f08d19f90
2 changed files with 9 additions and 1 deletions
|
@ -354,7 +354,10 @@ bool convertHidlGscanParamsToLegacy(
|
|||
hidl_scan_params.buckets[bucket_idx];
|
||||
legacy_hal::wifi_scan_bucket_spec& legacy_bucket_spec =
|
||||
legacy_scan_params->buckets[bucket_idx];
|
||||
legacy_bucket_spec.bucket = bucket_idx;
|
||||
if (hidl_bucket_spec.bucketIdx >= MAX_BUCKETS) {
|
||||
return false;
|
||||
}
|
||||
legacy_bucket_spec.bucket = hidl_bucket_spec.bucketIdx;
|
||||
legacy_bucket_spec.band =
|
||||
convertHidlWifiBandToLegacy(hidl_bucket_spec.band);
|
||||
legacy_bucket_spec.period = hidl_bucket_spec.periodInMs;
|
||||
|
|
|
@ -319,6 +319,11 @@ enum StaScanLimits : uint32_t {
|
|||
* scan requests.
|
||||
*/
|
||||
struct StaBackgroundScanBucketParameters {
|
||||
/**
|
||||
* Bucket index. This index is used to report results in
|
||||
* |StaScanData.bucketsScanned|.
|
||||
*/
|
||||
uint32_t bucketIdx;
|
||||
/**
|
||||
* Bands to scan or |BAND_UNSPECIFIED| if frequencies list must be used
|
||||
* instead.
|
||||
|
|
Loading…
Reference in a new issue