project/app/rkipc/rkipc/common/network/network.c : Cancel the status monitoring for wlan0 and usb0

Signed-off-by: eng29 <eng29@luckfox.com>
This commit is contained in:
eng29 2025-08-07 19:47:52 +08:00
parent b2dbfaa7b2
commit 5ade45544e
1 changed files with 7 additions and 0 deletions

View File

@ -696,6 +696,13 @@ int rk_network_get_cable_state() {
ifinfo = NLMSG_DATA(nh);
if_indextoname(ifinfo->ifi_index, name);
if (strcmp(name, "usb0") == 0) {
continue;
}
if (strcmp(name, "wlan0") == 0) {
continue;
}
LOG_INFO("\n[%s] link %s\n", name, (ifinfo->ifi_flags & IFF_LOWER_UP) ? "up" : "down");
memset(cmd1, 0, 32);