Skip to content

Commit 10e28d4

Browse files
authored
Merge branch 'develop' into anatar818-patch-22
2 parents 6c3ec3c + 066dcfa commit 10e28d4

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)