Bug 339234

Summary: wireless (wifi) signal sensore reports -302dbm, when cat /proc/net/wireless reports -46dbm
Product: [Unmaintained] ksysguard Reporter: JC <john.chufar>
Component: ksysguardAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: andrew.crouthamel, bugseforuns
Priority: NOR    
Version First Reported In: 4.11.9   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description JC 2014-09-20 13:59:53 UTC
Added wifi sensor to display signal strength in dbm.  It reports -302dbm, when it should be -46dbm

looks like kde-workspace/ksysguard/ksysguardd/Linux/netdev.c
processNetDev_

line 250 offsets signal by -256dbm...

250>>                                   signalLevel -= 256; /*the units are dBm*/

this is coincidentally the amount of error -46dbm (actual via cat) - 256 => -302 dbm



Reproducible: Always

Steps to Reproduce:
1. Add Tab, add sensor for Network/Interfaces/wlan0/wifi/signal
2. drag to "Drop Sensor Here"
3. Set to Line Graph, or Digital, or Bar Graph


Actual Results:  
resulted in -302dbm

Expected Results:  
-46dbm


Using wireless adapter: 

Bus 001 Device 007: ID 0b05:17ab ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]


values report correctly with cat/proc/net/wireless
home-server:/proc/net # cat wireless

Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan0: 0000   64.  -46.  -256        0      0      0      0     20        0
Comment 1 Andrew Crouthamel 2018-11-12 02:45:29 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 JC 2018-11-12 05:00:43 UTC
The feature to add Network/Interfaces/wlan0/wifi/signal no longer exists in my current version. System Monitor, Version 5.12.6


That is one way to get rid of the bug...not sure what status to put it into, now.


The value is available in /proc/net/wireless
shows level as -45dbm

jchufar@linux-jlo2:~> cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan0: 0000   65.  -45.  -256        0      0      0      1    373        0
Comment 3 Andrew Crouthamel 2018-11-12 16:29:50 UTC
Thanks for the update!
Comment 4 Patrick Silva 2019-05-10 23:24:11 UTC
Ths bug is still valid on neon dev unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.0