[OpenWrt-Devel] [PATCH][iwinfo] nl80211: read TX power using NL80211_CMD_GET_INTERFACE
Rafał Miłecki
zajec5 at gmail.com
Sun Sep 27 16:37:08 EDT 2015
On 27 September 2015 at 21:07, Felix Fietkau <nbd at openwrt.org> wrote:
> On 2015-09-27 20:07, Rafał Miłecki wrote:
>> With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in
>> interface info") it is possible now to get TX power using nl80211.
> We should pull that commit into OpenWrt before applying this patch.
I did that obviously:
http://git.openwrt.org/?p=openwrt.git;a=commit;h=07efcbd1ec2858f55e9927b98578a3bc06e6f796
http://dev.openwrt.org/changeset/47059
>> Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
>> ---
>> include/iwinfo/utils.h | 4 ++++
>> iwinfo_nl80211.c | 29 +++++++++++++++++++++--------
>> 2 files changed, 25 insertions(+), 8 deletions(-)
>>
>> diff --git a/include/iwinfo/utils.h b/include/iwinfo/utils.h
>> index 95f9238..b5c42a2 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);
>> +inline int iwinfo_mbm2dbm(int gain)
> Should be static inline.
I'll send V2.
--
Rafał
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list