{
__NETWORK_CAPI_FUNC_ENTER__;
+ int rv;
+
CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
if (callback == NULL || !(__wifi_check_handle_validity(wifi))) {
return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
+ rv = _wifi_check_get_privilege();
+ if (rv != WIFI_MANAGER_ERROR_NONE) {
+ WIFI_LOG(WIFI_ERROR, "Fail to check the privilege"); //LCOV_EXCL_LINE
+ __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE
+ return rv; //LCOV_EXCL_LINE
+ }
+
__NETWORK_CAPI_FUNC_EXIT__;
return _wifi_foreach_found_bssid_ap(callback, user_data);
}