Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions source/TR-181/middle_layer_src/wanmgr_rbus_handler_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,24 @@ rbusError_t WanMgr_Interface_SetHandler(rbusHandle_t handle, rbusProperty_t prop
ret = RBUS_ERROR_INVALID_INPUT;
}
}
else if(strstr(name, WANMGR_INFACE_ALIASNAME_SUFFIX))
{
if (type == RBUS_STRING)
{
char AliasName[64] = {0};
char param_name[256] = {0};
strncpy(AliasName, rbusValue_GetString(value, NULL), sizeof(AliasName)-1);
_ansc_sprintf(param_name, PSM_WANMANAGER_IF_ALIAS, index);
Comment on lines +589 to +591
strncpy(pWanDmlIface->AliasName, AliasName, sizeof(pWanDmlIface->AliasName)-1);
WanMgr_RdkBus_SetParamValuesToDB(param_name, AliasName);
CcspTraceInfo(("%s-%d : Interface AliasName changed to %s\n", __FUNCTION__, __LINE__, AliasName));
}
else
{
ret = RBUS_ERROR_INVALID_INPUT;
}
}

WanMgrDml_GetIfaceData_release(pWanDmlIfaceData);
}
return ret;
Expand Down
Loading