[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 <mohit.ghuley@samsung.com>
diff --git a/gscan.cpp b/gscan.cpp
index d27d472..89d6dd6 100755
--- a/gscan.cpp
+++ b/gscan.cpp
@@ -286,6 +286,9 @@
                 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 @@
 
             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;