android_packages_modules_Co.../staticlibs/device
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Rohr 0eaec731ec Add native call to retrieve driver name via ethtool API
This adds a JNI function to retrieve an interface's driver name via
ethtool API, which will be used to identify USB NCM interfaces.

Unfortunately, SIOCETHTOOL (ETHTOOL_GDRVINFO in particular) does not
allow passing in the interface index, meaning that this operation is
racy, i.e. the interface might have been replaced when
getDriverNameForInterface() is called.

SICOETHTOOL is slowly being replaced by a netlink alternative that
allows querying by interface index but, unfortunately, does not support
ETHTOOL_GDRVINFO yet.

Test: verified manually; automated test will be added shortly.
Flag: EXEMPT mainline
Bug: 1000001
Change-Id: I8bec47e36a607e7d8fe2fac2eebcd8dff0360a02
2025-06-09 14:54:38 -07:00
..
android/net Add null check for mProvider 2022-04-27 11:25:11 +00:00
com/android/net/module/util Add native call to retrieve driver name via ethtool API 2025-06-09 14:54:38 -07:00