[RAMEN9610-12255][9610] wlbt: Proper Handling for GSCAN Request Id and Report Events.
authorMohit Ghuley <mohit.ghuley@samsung.com>
Sat, 16 Feb 2019 14:29:11 +0000 (19:59 +0530)
committerhskang <hs1218.kang@samsung.com>
Mon, 18 Feb 2019 16:27:29 +0000 (01:27 +0900)
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 <mohit.ghuley@samsung.com>
gscan.cpp

index d27d4727313c4d927cb470c6cf7e12a798610261..89d6dd6e4ace3b88b39f2a4ac14c8d783f47f813 100755 (executable)
--- 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;