[ALPS08244456][rdkb][common][hal][add an action to get wps_state for wifi_getRadioVapInfoMap]
[Root cause analysis]
The wifi_getRadioVapInfoMap miss the action to get wps_state.
so while CcspWifiSsp init, the wps_state will be init to disable.
[Solution]
Add an action to get wps_state for wifi_getRadioVapInfoMap, to avoid
losing the wps_state after reboot.
Feature: conn_wifi_connect
Change-Id: I1b2d029b17dd3ccc03db6df9adf11f73dd9d047a
diff --git a/src/wifi/wifi_hal.c b/src/wifi/wifi_hal.c
index df13fc9..0c62015 100644
--- a/src/wifi/wifi_hal.c
+++ b/src/wifi/wifi_hal.c
@@ -12778,6 +12778,15 @@
return RETURN_ERR;
}
map->vap_array[i].u.bss_info.mcast2ucast = enabled;
+
+ ret = wifi_getApWpsEnable(vap_index, &enabled);
+ if (ret != RETURN_OK) {
+ fprintf(stderr, "%s: wifi_getApWpsEnable\n", __func__);
+ return RETURN_ERR;
+ }
+
+ map->vap_array[i].u.bss_info.wps.enable = enabled;
+
map->num_vaps++;
// TODO: wps, noack
}