From 0e19df50ad4485184e6365ffea1574aef9deea69 Mon Sep 17 00:00:00 2001 From: Jaya Prakash Sangaru Date: Sat, 7 May 2016 10:26:46 +0530 Subject: [PATCH] [7570] wlbt: implement exponential G-scan implement exponential G-scan SCSC-Bug-Id: SSB-16624 Change-Id: I0827d2ec664a416f4520541b11c9aa4a24c9ba44 Signed-off-by: Jaya Prakash Sangaru --- gscan.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gscan.cpp b/gscan.cpp index a303ddc..46929f0 100755 --- a/gscan.cpp +++ b/gscan.cpp @@ -78,6 +78,10 @@ typedef enum { GSCAN_ATTRIBUTE_MIN_BREACHING, GSCAN_ATTRIBUTE_SIGNIFICANT_CHANGE_BSSIDS, + GSCAN_ATTRIBUTE_BUCKET_STEP_COUNT = 70, + GSCAN_ATTRIBUTE_BUCKET_EXPONENT, + GSCAN_ATTRIBUTE_BUCKET_MAX_PERIOD, + GSCAN_ATTRIBUTE_MAX } GSCAN_ATTRIBUTE; @@ -348,6 +352,24 @@ public: return result; } + result = request.put_u32(GSCAN_ATTRIBUTE_BUCKET_EXPONENT, + mParams->buckets[i].exponent); + if (result < 0) { + return result; + } + + result = request.put_u32(GSCAN_ATTRIBUTE_BUCKET_MAX_PERIOD, + mParams->buckets[i].max_period); + if (result < 0) { + return result; + } + + result = request.put_u32(GSCAN_ATTRIBUTE_BUCKET_STEP_COUNT, + mParams->buckets[i].step_count); + if (result < 0) { + return result; + } + if (mParams->buckets[i].num_channels) { nlattr *channels = request.attr_start(GSCAN_ATTRIBUTE_BUCKET_CHANNELS); for (int j = 0; j < mParams->buckets[i].num_channels; j++) { -- 2.20.1