Skip to content

webconfig: add Mode field support for radio capability#1110

Open
nefiguclu wants to merge 1 commit intordkcentral:developfrom
nefiguclu:max_standards
Open

webconfig: add Mode field support for radio capability#1110
nefiguclu wants to merge 1 commit intordkcentral:developfrom
nefiguclu:max_standards

Conversation

@nefiguclu
Copy link
Copy Markdown
Contributor

Add support for new "Mode" parameter in radio capability webconfig encode/decode flow. The Mode value is now parsed from incoming JSON, stored in radio_cap->mode[0], and propagated to EasyMesh translation and encoder output.

Issue: RDKBWIFI-428

Add support for new "Mode" parameter in radio capability webconfig
encode/decode flow. The Mode value is now parsed from incoming JSON,
stored in radio_cap->mode[0], and propagated to EasyMesh translation
and encoder output.

Issue: RDKBWIFI-428
Signed-off-by: Nefi Guclu <[email protected]>
@nefiguclu nefiguclu requested a review from a team as a code owner May 5, 2026 15:12
@Nikita-Hakai Nikita-Hakai requested a review from Copilot May 7, 2026 18:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for a new Mode attribute in the radio capability webconfig flow so it is carried end-to-end (decode → internal storage → EasyMesh translation → encode).

Changes:

  • Encode Mode into the radiocap JSON payload (radiocap->mode[0]).
  • Decode Mode from incoming radiocap JSON into radio_cap->mode[0].
  • Propagate the decoded Mode into EasyMesh radio capability translation (cap_info->mode).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
source/webconfig/wifi_encoder.c Adds Mode to radiocap JSON output.
source/webconfig/wifi_decoder.c Parses Mode from radiocap JSON into radio_cap->mode[0].
source/webconfig/wifi_easymesh_translator.c Copies radio_cap->mode[0] into the EasyMesh radio cap info (cap_info->mode).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4850 to +4857
value_object = cJSON_GetObjectItem(object, "Mode");
if ((value_object == NULL) || (cJSON_IsNumber(value_object) == false)) {
wifi_util_error_print(WIFI_WEBCONFIG, "%s:%d: Validation Failed\n", __func__, __LINE__);
return webconfig_error_decode;
}

radio_cap->mode[0] = value_object->valuedouble;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants