summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src/iwinfo_madwifi.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-12 04:56:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-12 04:56:36 +0000
commitdabf916db20da0013033efb763b632aecaea20a5 (patch)
tree215dc7101d0695eed42e99005dbd6ba97400f246 /contrib/package/iwinfo/src/iwinfo_madwifi.c
parented1d776849fc3a30c6f0b9eb07c73e2e1ab59f21 (diff)
libiwinfo: support txpwrlist(), freqlist() and countrylist() for radioX pseudodevices in nl80211 backend, implement __gc methamethod
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_madwifi.c')
-rw-r--r--contrib/package/iwinfo/src/iwinfo_madwifi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_madwifi.c b/contrib/package/iwinfo/src/iwinfo_madwifi.c
index daecf5df3d..9c3bb2688a 100644
--- a/contrib/package/iwinfo/src/iwinfo_madwifi.c
+++ b/contrib/package/iwinfo/src/iwinfo_madwifi.c
@@ -292,6 +292,12 @@ int madwifi_probe(const char *ifname)
return ( !!madwifi_isvap(ifname, NULL) || madwifi_iswifi(ifname) );
}
+void madwifi_close(void)
+{
+ if( ioctl_socket > -1 )
+ close(ioctl_socket);
+}
+
int madwifi_get_mode(const char *ifname, char *buf)
{
return wext_get_mode(ifname, buf);