[rdkb][common][hal][Fix getZeroDFSState can't get cerrect state]
[Description]
Fix getZeroDFSState can't get cerrect state
[Release-log]
N/A
Change-Id: I4d7d47ac5e2b7a4d3f7ea63cbdae417a3c04c34f
diff --git a/src/wifi/wifi_hal.c b/src/wifi/wifi_hal.c
index aada3a4..3ca99b9 100644
--- a/src/wifi/wifi_hal.c
+++ b/src/wifi/wifi_hal.c
@@ -11178,12 +11178,13 @@
sprintf(config_file, "%s%d.conf", CONFIG_PREFIX, radioIndex);
wifi_hostapdRead(config_file, "enable_background_radar", buf, sizeof(buf));
- if (strncmp(enable, "1", 1) == 0)
+ if (strncmp(buf, "1", 1) == 0) {
*enable = true;
- else
+ *precac = true;
+ } else {
*enable = false;
-
- /* TODO precac feature */
+ *precac = false;
+ }
WIFI_ENTRY_EXIT_DEBUG("Exiting %s:%d\n",__func__, __LINE__);
return RETURN_OK;