NetlinkHandler: Revert the special handling of event param name.
The kernel change was reverted to remain consistent with past API.
Change-Id: I60a539aaf3bd78a56ab54391685f6aaf07de19ce
diff --git a/NetlinkHandler.cpp b/NetlinkHandler.cpp
index 534f386..7edd190 100644
--- a/NetlinkHandler.cpp
+++ b/NetlinkHandler.cpp
@@ -91,12 +91,8 @@
} else if (!strcmp(subsys, "xt_idletimer")) {
int action = evt->getAction();
- const char *label = evt->findParam("LABEL");
+ const char *label = evt->findParam("INTERFACE");
const char *state = evt->findParam("STATE");
- // if no LABEL, use INTERFACE instead
- if (label == NULL) {
- label = evt->findParam("INTERFACE");
- }
if (state)
notifyInterfaceClassActivity(label, !strcmp("active", state));