Skip to content

Commit 17059d8

Browse files
RDKB-60609: Observed 2.4GHz mesh backhaul is not reconfiguring with force apply. (rdkcentral#641)
RDKB-60609: Observed 2.4GHz mesh backhaul is not reconfiguring with force apply. Impacted Platforms: All RDKB platforms. Reason for change: 5G vap config is always being pushed due to incorrect subdoc type mapping. Test Procedure: 1. Load the above mentioned build 2. Execute the below mentioned command, dmcli eRT setv Device.WiFi.AccessPoint.13.ForceApply bool true 3. If config is not pushed for mesh backhaul 2G, then issue got reproduced. Risks: Low Priority: P1 Signed-off-by: sanjayvenkatesan1902@gmail.com Co-authored-by: Sathish Kumar Gnanasekaran <gsathish86@gmail.com>
1 parent 3b7620e commit 17059d8

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

source/core/wifi_ctrl.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,6 +3089,33 @@ void get_subdoc_name_from_vap_index(uint8_t vap_index, int* subdoc)
30893089
}
30903090
}
30913091

3092+
void get_subdoc_type_name_from_ap_index(uint8_t vap_index, int *subdoc)
3093+
{
3094+
UINT radio_index = getRadioIndexFromAp(vap_index);
3095+
wifi_radio_operationParam_t *radioOperation = getRadioOperationParam(radio_index);
3096+
if (radioOperation == NULL) {
3097+
wifi_util_error_print(WIFI_CTRL,
3098+
"%s : failed to getRadioOperationParam for radio index %d\n", __FUNCTION__,
3099+
radio_index);
3100+
return;
3101+
}
3102+
3103+
switch (radioOperation->band) {
3104+
case WIFI_FREQUENCY_2_4_BAND:
3105+
*subdoc = webconfig_subdoc_type_vap_24G;
3106+
break;
3107+
case WIFI_FREQUENCY_5_BAND:
3108+
*subdoc = webconfig_subdoc_type_vap_5G;
3109+
break;
3110+
case WIFI_FREQUENCY_6_BAND:
3111+
*subdoc = webconfig_subdoc_type_vap_6G;
3112+
break;
3113+
default:
3114+
*subdoc = webconfig_subdoc_type_unknown;
3115+
break;
3116+
}
3117+
}
3118+
30923119
//Returns total number of Configured vaps for all radios
30933120
UINT getTotalNumberVAPs()
30943121
{

source/core/wifi_ctrl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ wifi_vap_security_t * Get_wifi_object_bss_security_parameter(uint8_t vapIndex);
400400
wifi_vap_security_t * Get_wifi_object_sta_security_parameter(uint8_t vapIndex);
401401
char *get_assoc_devices_blob();
402402
void get_subdoc_name_from_vap_index(uint8_t vap_index, int* subdoc);
403+
void get_subdoc_type_name_from_ap_index(uint8_t vap_index, int* subdoc);
404+
403405
int dfs_nop_start_timer(void *args);
404406
int webconfig_send_full_associate_status(wifi_ctrl_t *ctrl);
405407
void start_station_vaps(bool enable);

source/core/wifi_ctrl_rbus_handlers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3164,7 +3164,7 @@ bus_error_t set_force_vap_apply(char *name, raw_data_t *p_data, bus_user_data_t
31643164
data->u.decoded.radios[radio_index].vaps.rdk_vap_array[vap_array_index].force_apply =
31653165
force_apply;
31663166

3167-
get_subdoc_name_from_vap_index(idx - 1, &subdoc_type);
3167+
get_subdoc_type_name_from_ap_index(idx - 1, &subdoc_type);
31683168

31693169
if (webconfig_encode(&ctrl->webconfig, data, subdoc_type) != webconfig_error_none) {
31703170
wifi_util_error_print(WIFI_CTRL, "%s:%d Error in encoding radio stats\n", __func__,

0 commit comments

Comments
 (0)