[AUTO00242406][rdkb][common][hal][ radio_index_to_phy: failed to get phy
index with: 3]
[Description]
fix radio_index_to_phy: failed to get phy index with: 3 when wifi
reload.
[Release-log]
N/A
Feature: [wifi-hal]
Change-Id: I6304dd6482ba88ae6a21da0f94c7b7692d6150f9
diff --git a/src/wifi/wifi_hal.c b/src/wifi/wifi_hal.c
index 2e38397..f8f40f0 100644
--- a/src/wifi/wifi_hal.c
+++ b/src/wifi/wifi_hal.c
@@ -2913,8 +2913,8 @@
{
sprintf(config_file, "%s%d.conf", CONFIG_PREFIX, radioIndex+(max_radio_num*i));
wifi_hostapdWrite(config_file, ¶ms, 1);
- wifi_setRadioSTBCEnable(radioIndex+(max_radio_num*i), stbcEnable);
}
+ wifi_setRadioSTBCEnable(radioIndex, stbcEnable);
return RETURN_OK;
}
@@ -2983,8 +2983,8 @@
{
sprintf(config_file,"%s%d.conf",CONFIG_PREFIX,radioIndex+(max_radio_num*i));
wifi_hostapdWrite(config_file, ¶ms, 1);
- wifi_setRadioSTBCEnable(radioIndex+(max_radio_num*i), stbcEnable);
}
+ wifi_setRadioSTBCEnable(radioIndex, stbcEnable);
//Set to wifi config only. Wait for wifi reset or wifi_pushRadioChannel to apply.
WIFI_ENTRY_EXIT_DEBUG("Exiting %s:%d\n",__func__, __LINE__);