Changeset 31053


Ignore:
Timestamp:
2012-03-21T20:47:16+01:00 (6 years ago)
Author:
jow
Message:

[package] iwinfo: properly cast nl80211 mBm signal levels to reported dBm values (#11161)

Location:
trunk/package/iwinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/iwinfo/Makefile

    r30825 r31053  
    88 
    99PKG_NAME:=libiwinfo 
    10 PKG_RELEASE:=32 
     10PKG_RELEASE:=33 
    1111 
    1212PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • trunk/package/iwinfo/src/iwinfo_nl80211.c

    r30692 r31053  
    15421542        if (bss[NL80211_BSS_SIGNAL_MBM]) 
    15431543        { 
    1544                 sl->e->signal = nla_get_u32(bss[NL80211_BSS_SIGNAL_MBM]) / 100; 
     1544                sl->e->signal = 
     1545                        (uint8_t)((int32_t)nla_get_u32(bss[NL80211_BSS_SIGNAL_MBM]) / 100); 
    15451546 
    15461547                rssi = sl->e->signal - 0x100; 
Note: See TracChangeset for help on using the changeset viewer.