diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-09-28 13:39:15 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-05 11:00:22 +0200 |
commit | 813f61e48b9b1a76cb55f3b4a229bf98d3cd53a9 (patch) | |
tree | 2e1fee2a9e87a205dd0c7adcb7b3d7fe5cb8dc2e /include | |
parent | 3d38d1d17eba37b0985dd2857b4539410824a3e6 (diff) | |
download | iwinfo-813f61e48b9b1a76cb55f3b4a229bf98d3cd53a9.tar.gz |
nl80211: read TX power using NL80211_CMD_GET_INTERFACE
With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in
interface info") it is possible now to get TX power using nl80211. As we
don't really support any wext-only drivers it doesn't make sense to
leave wext as a fallback.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/iwinfo/utils.h b/include/iwinfo/utils.h index 95f9238..159fd49 100644 --- a/include/iwinfo/utils.h +++ b/include/iwinfo/utils.h @@ -37,6 +37,10 @@ int iwinfo_ioctl(int cmd, void *ifr); int iwinfo_dbm2mw(int in); int iwinfo_mw2dbm(int in); +static inline int iwinfo_mbm2dbm(int gain) +{ + return gain / 100; +} int iwinfo_ifup(const char *ifname); int iwinfo_ifdown(const char *ifname); |