[RAMEN9610-10873][Common][9610] wlbt: scdeuled scan timing update
authorMohit Ghuley <mohit.ghuley@samsung.com>
Mon, 14 Jan 2019 08:34:24 +0000 (14:04 +0530)
committerhskang <hs1218.kang@samsung.com>
Tue, 15 Jan 2019 06:28:19 +0000 (15:28 +0900)
Scheduled scan timing update.

SCSC-Bug-Id: SSB-47291
Change-Id: I2b2346130d583c3df9178ad4354c1a21ea10aa46
Signed-off-by: Kavitha Velayutham <k.velayutham@samsung.com>
drivers/net/wireless/scsc/mlme.c

index 9d58aaf6936aa820d055b222d921b5212b1dccce..7528441b2831df4bfbf9515d95acaa593f9dbb64 100755 (executable)
@@ -1289,8 +1289,8 @@ int slsi_mlme_add_sched_scan(struct slsi_dev                    *sdev,
                0x01,                           /* OUI Subtype: Scan timing */
                0x00, 0x00, 0x00, 0x00,         /* Min_Period:  filled later in the function */
                0x00, 0x00, 0x00, 0x00,         /* Max_Period:  filled later in the function */
-               0x00,                           /* Exponent */
-               0x00,                           /* Step count */
+               0x01,                           /* Exponent */
+               0x01,                           /* Step count */
                0x00, 0x01                      /* Skip first period: true for scheduled scans*/
        };
 
@@ -1341,10 +1341,13 @@ int slsi_mlme_add_sched_scan(struct slsi_dev                    *sdev,
                return r;
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
-       SLSI_U32_TO_BUFF_LE(request->scan_plans->interval * 1000, &scan_timing_ie[7]);
+       SLSI_U32_TO_BUFF_LE(request->scan_plans->interval * 1000 * 1000, &scan_timing_ie[7]);
+       SLSI_U32_TO_BUFF_LE(request->scan_plans->interval * 1000 * 1000, &scan_timing_ie[11]);
 #else
        SLSI_U32_TO_BUFF_LE(request->interval * 1000, &scan_timing_ie[7]);
+       SLSI_U32_TO_BUFF_LE(request->interval * 1000, &scan_timing_ie[11]);
 #endif
+
        fapi_append_data(req, scan_timing_ie, sizeof(scan_timing_ie));
        fapi_append_data(req, ies, ies_len);