Skip to content

Commit 652bdb4

Browse files
authored
RDKBACCL-1146 : Port Id Not taken correctly
RDKBACCL-904 : Failed to Get the response of CcspHalEthSwGetPortAdminStatus for LAN Port 2 Reason for change : Syntax issue , corrected now Test Procedure: Build and flash the image , check the interface details Risks: None
1 parent f400267 commit 652bdb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meta-rdk-mtk-bpir4/recipes-ccsp/hal/files/Ethernet-Lan-changes.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Index: ethsw/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c
4747
memset(&ifr, 0, sizeof(ifr));
4848
- snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s", "eth1");
4949
+ if (PortId == 1)
50-
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "erouter0");
50+
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s" "erouter0");
5151
+ else
52-
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name),"lan",(PortId-1));
52+
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name),"lan%d",(PortId-1));
5353

5454
if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0)
5555
{

0 commit comments

Comments
 (0)