diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-12 04:56:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-12 04:56:36 +0000 |
commit | dabf916db20da0013033efb763b632aecaea20a5 (patch) | |
tree | 215dc7101d0695eed42e99005dbd6ba97400f246 /contrib/package/iwinfo/src/iwinfo_wext.c | |
parent | ed1d776849fc3a30c6f0b9eb07c73e2e1ab59f21 (diff) |
libiwinfo: support txpwrlist(), freqlist() and countrylist() for radioX pseudodevices in nl80211 backend, implement __gc methamethod
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_wext.c')
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_wext.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_wext.c b/contrib/package/iwinfo/src/iwinfo_wext.c index 7bd1574c1..e9e79e375 100644 --- a/contrib/package/iwinfo/src/iwinfo_wext.c +++ b/contrib/package/iwinfo/src/iwinfo_wext.c @@ -113,6 +113,14 @@ int wext_probe(const char *ifname) return 0; } +void wext_close(void) +{ + wext_scan_close(); + + if( ioctl_socket > -1 ) + close(ioctl_socket); +} + int wext_get_mode(const char *ifname, char *buf) { struct iwreq wrq; |