[APR-6609]wlbt: HAL changes for Blacklist reset android-11-release-rsa MMI-RSA31.Q1-48-36-11 MMI-RSB31.Q1-48-36-11
authorMohit Ghuley <mohit.ghuley@samsung.com>
Tue, 15 Dec 2020 06:20:46 +0000 (11:50 +0530)
committerI am Robot <robot_ap@samsung.com>
Sun, 27 Dec 2020 16:21:26 +0000 (01:21 +0900)
Blacklist Reset changes in HAL

SCSC-Bug-Id: HOST-13860

Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
Change-Id: I4a74e5d99f10e0259791f51ab74c7d8099061f33

roam.cpp

index d3b8f41215c9edb9d9e1d9bc62f7d1c96e23b0bb..83c915535f35f5485aedbb5a1148f347a463c188 100755 (executable)
--- a/roam.cpp
+++ b/roam.cpp
@@ -57,10 +57,12 @@ public:
             return result;\r
         }\r
 \r
-        for (int i = 0; i < mParams->num_bssid; i++) {\r
-            result = request.put_addr(GSCAN_ATTRIBUTE_BLACKLIST_BSSID, mParams->bssids[i]);\r
-            if (result < 0) {\r
-                return result;\r
+        if (mParams->num_bssid > 0) {\r
+            for (int i = 0; i < mParams->num_bssid; i++) {\r
+                result = request.put_addr(GSCAN_ATTRIBUTE_BLACKLIST_BSSID, mParams->bssids[i]);\r
+                if (result < 0) {\r
+                    return result;\r
+                }\r
             }\r
         }\r
         request.attr_end(data);\r
@@ -212,9 +214,6 @@ wifi_error wifi_configure_roaming(wifi_interface_handle iface, wifi_roaming_conf
     requestId = get_requestid();\r
     bssid_params.num_bssid = roaming_config->num_blacklist_bssid;\r
 \r
-    if (bssid_params.num_bssid == 0) {\r
-        return WIFI_SUCCESS;\r
-    }\r
 \r
     memcpy(bssid_params.bssids, roaming_config->blacklist_bssid,\r
            (bssid_params.num_bssid * sizeof(mac_addr)));\r