From: Mohit Ghuley Date: Sat, 16 Feb 2019 14:29:11 +0000 (+0530) Subject: [RAMEN9610-12255][9610] wlbt: Proper Handling for GSCAN Request Id and Report Events. X-Git-Tag: MMI-QSBS30.62-17-8~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3a9f24c848639f961dd2af750ca4a3d4de7e82f;p=GitHub%2FMotorolaMobilityLLC%2Fhardware-samsung_slsi-scsc_wifibt-wifi_hal.git [RAMEN9610-12255][9610] wlbt: Proper Handling for GSCAN Request Id and Report Events. In Wifi Hal, Proper Handling for GSCAN Request Id and Report Events. Change-Id: Id21453089549ec93bdd9073f7e9db1a8d0f4d032 SCSC-Bug-Id: SSB-49562 Signed-off-by: Mohit Ghuley --- diff --git a/gscan.cpp b/gscan.cpp index d27d472..89d6dd6 100755 --- a/gscan.cpp +++ b/gscan.cpp @@ -286,6 +286,9 @@ public: return result; } + if (mParams->buckets[i].report_events == 0) { + mParams->buckets[i].report_events = REPORT_EVENTS_EACH_SCAN; + } result = request.put_u32(GSCAN_ATTRIBUTE_REPORT_EVENTS, mParams->buckets[i].report_events); if (result < 0) { @@ -419,7 +422,7 @@ public: evt_type = (wifi_scan_event) event.get_u32(NL80211_ATTR_VENDOR_DATA); if(*mHandler.on_scan_event) - (*mHandler.on_scan_event)(evt_type, evt_type); + (*mHandler.on_scan_event)(id(), evt_type); } else if(event_id == GSCAN_EVENT_FULL_SCAN_RESULTS) { uint32_t bucket_scanned = 0; wifi_scan_result *scan_result = NULL;