RDKEMW-14686: Wifi DataModel Params Retuning Empty Value on RDKE Builds - #399
Conversation
There was a problem hiding this comment.
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
namefrom thessidfield. - 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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
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.
|
@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. |
|
@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. |
…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
There was a problem hiding this comment.
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 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. |
Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Fix misleading "curl init failed" error log in Device_WiFi_SSID.cpp
There was a problem hiding this comment.
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 open a new pull request to apply changes based on the comments in this thread |
|
@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. |
…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
There was a problem hiding this comment.
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.
|
@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. |
There was a problem hiding this comment.
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 nodefaultcase. If NetworkManager ever returns an unexpected/extended state value,status(andrc) may remain unchanged from a previous call, leading to stale/incorrect TR-181Statusreporting. Add adefaultbranch that sets a safe value (e.g., "ERROR") and ensuresrcis assigned before checkingrc != 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.
No description provided.