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
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