Skip to content

RDKEMW-14686: Wifi DataModel Params Retuning Empty Value on RDKE Builds - #399

Merged
nhanasi merged 25 commits into
developfrom
feature/RDKEMW-14686_final
Mar 12, 2026
Merged

RDKEMW-14686: Wifi DataModel Params Retuning Empty Value on RDKE Builds#399
nhanasi merged 25 commits into
developfrom
feature/RDKEMW-14686_final

Conversation

@Vismalskumar0

Copy link
Copy Markdown
Contributor

No description provided.

@Vismalskumar0
Vismalskumar0 requested a review from a team as a code owner March 12, 2026 05:41
Copilot AI review requested due to automatic review settings March 12, 2026 05:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the WiFi SSID profile implementation to populate the TR-069 Name field from the Thunder JSON-RPC GetConnectedSSID response.

Changes:

  • Adds a JSON validation guard around assigning name from the ssid field.
  • Adds an error log when the JSON payload is missing/invalid for ssid.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp Outdated
Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp Outdated
Copilot AI review requested due to automatic review settings March 12, 2026 06:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp Outdated
Copilot AI review requested due to automatic review settings March 12, 2026 08:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp Outdated
Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 12, 2026 08:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp Outdated

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

@Vismalskumar0 I've opened a new pull request, #400, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

@Vismalskumar0 I've opened a new pull request, #401, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 4 commits March 12, 2026 09:00
…SID.cpp

Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Fix always-true `response.c_str()` guards in Device_WiFi_SSID RPC response handling
Fix inconsistent indentation in Device_WiFi_SSID.cpp interface-parsing block
Copilot AI review requested due to automatic review settings March 12, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

@Vismalskumar0 I've opened a new pull request, #405, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 12, 2026 10:56
Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Fix misleading "curl init failed" error log in Device_WiFi_SSID.cpp

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

You can also share your feedback on Copilot code review. Take the survey.

@Vismalskumar0

Copy link
Copy Markdown
Contributor Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

@Vismalskumar0 I've opened a new pull request, #406, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 12, 2026 11:10
…n GetWifiState

Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
…0ca-40d1-95d2-38f429faca17

Guard against null dereference on missing/non-numeric "state" field in GetWifiState JSON parsing

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp
Comment thread src/hostif/profiles/wifi/Device_WiFi_SSID.cpp Outdated

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

@Vismalskumar0 I've opened a new pull request, #407, to work on those changes. Once the pull request is ready, I'll request review from you.

@nhanasi nhanasi changed the title Update Device_WiFi_SSID.cpp RDKEMW-14686: Wifi DataModel Params Retuning Empty Value on RDKE Builds Mar 12, 2026
Copilot AI review requested due to automatic review settings March 12, 2026 17:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/hostif/profiles/wifi/Device_WiFi_SSID.cpp:422

  • The switch (res) over WiFi state has no default case. If NetworkManager ever returns an unexpected/extended state value, status (and rc) may remain unchanged from a previous call, leading to stale/incorrect TR-181 Status reporting. Add a default branch that sets a safe value (e.g., "ERROR") and ensures rc is assigned before checking rc != EOK.
                    switch (res) {
			case 0:
			    rc=strcpy_s(status,sizeof(status),"UNINSTALLED");
			    break;
			case 1:
			    rc=strcpy_s(status,sizeof(status),"DISABLED");
			    break;
			case 2:
			    rc=strcpy_s(status,sizeof(status),"DISCONNECTED");
			    break;
			case 3:
		            rc=strcpy_s(status,sizeof(status),"PAIRING");
			    break;
			case 4:
			    rc=strcpy_s(status,sizeof(status),"CONNECTING");
			    break;
			case 5:
			    rc=strcpy_s(status,sizeof(status),"CONNECTED");
			    break;
			case 6:
			    rc=strcpy_s(status,sizeof(status),"SSID_NOT_FOUND");
			    break;
			case 7:
			    rc=strcpy_s(status,sizeof(status),"SSID_CHANGED");
			    break;
			case 8:
			    rc=strcpy_s(status,sizeof(status),"CONNECTION_LOST");
			    break;
			case 9:
			    rc=strcpy_s(status,sizeof(status),"CONNECTION_FAILED");
			    break;
			case 10:
			    rc=strcpy_s(status,sizeof(status),"CONNECTION_INTERRUPTED");
			    break;
			case 11:
			    rc=strcpy_s(status,sizeof(status),"INVALID_CREDENTIALS");
			    break;
			case 12:
			    rc=strcpy_s(status,sizeof(status),"AUTHENTICATION_FAILED");
			    break;
			case 13:
			    rc=strcpy_s(status,sizeof(status),"ERROR");
			    break;
			}

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

@nhanasi
nhanasi merged commit 3319ef4 into develop Mar 12, 2026
16 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants