mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
iwinfo: don't use the txpower value from debugfs for now, it does not match the values reported via wext
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35007 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libiwinfo
|
||||
PKG_RELEASE:=37
|
||||
PKG_RELEASE:=38
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_CONFIG_DEPENDS := \
|
||||
|
||||
@@ -993,6 +993,7 @@ int nl80211_get_channel(const char *ifname, int *buf)
|
||||
|
||||
int nl80211_get_txpower(const char *ifname, int *buf)
|
||||
{
|
||||
#if 0
|
||||
char *res;
|
||||
char path[PATH_MAX];
|
||||
|
||||
@@ -1002,6 +1003,7 @@ int nl80211_get_txpower(const char *ifname, int *buf)
|
||||
|
||||
if ((*buf = nl80211_readint(path)) > -1)
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
return wext_get_txpower(ifname, buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user