diff options
Diffstat (limited to 'package/network/utils/iwinfo/src/iwinfo_madwifi.c')
-rw-r--r-- | package/network/utils/iwinfo/src/iwinfo_madwifi.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_madwifi.c b/package/network/utils/iwinfo/src/iwinfo_madwifi.c index 832f40bd3d..293c28e7d1 100644 --- a/package/network/utils/iwinfo/src/iwinfo_madwifi.c +++ b/package/network/utils/iwinfo/src/iwinfo_madwifi.c @@ -721,6 +721,26 @@ int madwifi_get_encryption(const char *ifname, char *buf) return 0; } +int madwifi_get_phyname(const char *ifname, char *buf) +{ + const char *wifidev; + + wifidev = madwifi_isvap(ifname, NULL); + + if (wifidev) + { + strcpy(buf, wifidev); + return 0; + } + else if (madwifi_iswifi(ifname)) + { + strcpy(buf, madwifi_phyname(ifname)); + return 0; + } + + return -1; +} + int madwifi_get_assoclist(const char *ifname, char *buf, int *len) { int bl, tl, noise; |