Skip to content

Comments

RDKCOM-5508: RDKBDEV-3356 IPQ Bug Fixes for QCOM Platform#183

Open
VedhaLoganathan wants to merge 1 commit intordkcentral:developfrom
VedhaLoganathan:ipq_upstream3
Open

RDKCOM-5508: RDKBDEV-3356 IPQ Bug Fixes for QCOM Platform#183
VedhaLoganathan wants to merge 1 commit intordkcentral:developfrom
VedhaLoganathan:ipq_upstream3

Conversation

@VedhaLoganathan
Copy link
Contributor

No description provided.

@VedhaLoganathan VedhaLoganathan requested review from a team as code owners January 22, 2026 03:56
@VedhaLoganathan VedhaLoganathan changed the title IPQ: Bug Fixes for QCOM Platform RDKBDEV-3356: IPQ Bug Fixes for QCOM Platform Jan 29, 2026
{
printf("Partner ID NOT Found\n");
sprintf(PartnerID,"%s","unknown");
snprintf(PartnerID,sizeof(PartnerID),"%s","unknown");

Choose a reason for hiding this comment

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

PartnerID is a char * parameter, so sizeof(PartnerID) returns the size of the pointer (typically 4 bytes), not the buffer size. This will cause a problem when PartnerID string length is greater then 4 bytes. Similar type of code changes are done in other places please fix the review comments and resubmit for review.

If you really need length of the buffer, you may need to pass buffer length as additional parameter to the function validatePartnerId(char *partnerId, size_t partnerIdBufLen).

Copy link

@pradeeptakdas pradeeptakdas left a comment

Choose a reason for hiding this comment

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

Please check the review comments

@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3356: IPQ Bug Fixes for QCOM Platform RDKCOM-5508: RDKBDEV-3356 IPQ Bug Fixes for QCOM Platform Feb 3, 2026
@tinaelizabeth84
Copy link

@VedhaLoganathan
Can you resolve the merge conflict?

@VedhaLoganathan
Copy link
Contributor Author

Hi @tinaelizabeth84,
Resolved the merge conflict

if [ "$noRf" = "0" ]
then
if [ "$NETWORKRESPONSESTATUS" = "204" ] && [ "$REDIRECTION_ON" = "true" ] && [ "$WIFI_NOT_CONFIGURED" = "true" ]
if [[ "$NETWORKRESPONSESTATUS" = "204" && "$REDIRECTION_ON" = "true" && ("$WIFI_NOT_CONFIGURED" = "true" || "$WIFI_NOT_CONFIGURED" = "TRUE") ]];
Copy link
Contributor

Choose a reason for hiding this comment

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

We can change database value as "true" so that no need to change in script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted the changes and handled in database.

syscfg_get( NULL, "lan_ipaddr", buf, sizeof( buf ));

if (defaultAdminIP != NULL)
if ((defaultAdminIP != NULL) && (strcmp(buf, defaultAdminIP) == 0))
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this change exactly about?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously, the logic only checked whether the DM value (DefaultAdminIP / DefaultLocalIPv4SubnetRange) was non‑NULL. As a result, it would overwrite the customer’s configured LAN IP or netmask with the partner default—for example, replacing a customer‑set 192.168.1.1 with the branding default 10.0.0.1, causing brlan0 to come up with the wrong address.

syscfg_get( NULL, "lan_netmask", buf, sizeof( buf ));

if (subnetRange != NULL)
if ((subnetRange != NULL) && (strcmp(buf, subnetRange) == 0))
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this change exactly about?

syscfg_get( NULL, "dhcp_start", buf, sizeof( buf ));

if (minAddress != NULL)
if ((minAddress != NULL) && (strcmp(buf, minAddress) ==0))
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this change exactly about?

syscfg_get( NULL, "dhcp_end", buf, sizeof( buf ));

if (maxAddress != NULL)
if ((maxAddress != NULL) && (strcmp(buf, maxAddress) == 0))
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this change exactly about?

if (n < 0 || n >= sizeof(cmd))
return -1;

#ifndef _COSA_QCA_ARM_
Copy link
Contributor

Choose a reason for hiding this comment

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

Is vsystem() getting called very frequently?

@pradeeptakdas
Copy link

Hi @VedhaLoganathan

Can you please fix the review comments suggested by @hpatel006c ?

Signed-off-by: Vedhavalli Loganathan <vedhaval@qti.qualcomm.com>
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.

4 participants