mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:15:00 +02:00
[package] iwinfo: properly cast nl80211 mBm signal levels to reported dBm values (#11161)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31053 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0e4c67b63a
commit
659369891b
@ -7,7 +7,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libiwinfo
|
PKG_NAME:=libiwinfo
|
||||||
PKG_RELEASE:=32
|
PKG_RELEASE:=33
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
PKG_CONFIG_DEPENDS := \
|
PKG_CONFIG_DEPENDS := \
|
||||||
|
@ -1541,7 +1541,8 @@ static int nl80211_get_scanlist_cb(struct nl_msg *msg, void *arg)
|
|||||||
|
|
||||||
if (bss[NL80211_BSS_SIGNAL_MBM])
|
if (bss[NL80211_BSS_SIGNAL_MBM])
|
||||||
{
|
{
|
||||||
sl->e->signal = nla_get_u32(bss[NL80211_BSS_SIGNAL_MBM]) / 100;
|
sl->e->signal =
|
||||||
|
(uint8_t)((int32_t)nla_get_u32(bss[NL80211_BSS_SIGNAL_MBM]) / 100);
|
||||||
|
|
||||||
rssi = sl->e->signal - 0x100;
|
rssi = sl->e->signal - 0x100;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user