[rdkb][common][hal][Refactor halinterface bbapend]
[Description]
Refactor halinterface bbapend
1. define wifi_getRadioDfsAtBootUpEnable and wifi_setRadioDfsAtBootUpEnable in wifi_hal_radio.h
[Release-log]
diff --git a/recipes-ccsp/hal/files/add_undefined_dfs_function.patch b/recipes-ccsp/hal/files/add_undefined_dfs_function.patch
new file mode 100644
index 0000000..3a47117
--- /dev/null
+++ b/recipes-ccsp/hal/files/add_undefined_dfs_function.patch
@@ -0,0 +1,15 @@
+diff --git a/wifi_hal_radio.h b/wifi_hal_radio.h
+index 4f8e710..524530e 100644
+--- a/wifi_hal_radio.h
++++ b/wifi_hal_radio.h
+@@ -318,6 +318,10 @@ INT wifi_getRadioDfsEnable(INT radioIndex, BOOL *output_bool);
+ */
+ INT wifi_setRadioDfsEnable(INT radioIndex, BOOL enabled);
+
++INT wifi_getRadioDfsAtBootUpEnable(INT radioIndex, BOOL *output_bool);
++
++INT wifi_setRadioDfsAtBootUpEnable(INT radioIndex, BOOL enabled);
++
+ /* wifi_getRadioMCS() function */
+ /**
+ * @brief Get the Modulation Coding Scheme index, eg: "-1", "1", "15".
diff --git a/recipes-ccsp/hal/halinterface.bbappend b/recipes-ccsp/hal/halinterface.bbappend
index 8f87a99..9f18553 100644
--- a/recipes-ccsp/hal/halinterface.bbappend
+++ b/recipes-ccsp/hal/halinterface.bbappend
@@ -1,11 +1,14 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-SRC_URI += "file://sta-network.patch;apply=no"
+SRC_URI += "file://sta-network.patch;apply=no \
+ file://add_undefined_dfs_function.patch;apply=no \
+ "
#This is workaround for missing do_patch when RDK uses external sources
do_filogic_patches() {
cd ${S}
if [ ! -e patch_applied ]; then
patch -p1 < ${WORKDIR}/sta-network.patch
+ patch -p1 < ${WORKDIR}/add_undefined_dfs_function.patch
touch patch_applied
fi
}