Open jjess opened 1 year ago
The problem is the RSSI does not look right. Changing the formula does not fix the issue that iwlwifi and iwm are not reporting proper RSSI. I got the same issue with one of my laptops.
Since RSSI varies greatly between chipset manufacturers, this is probably the worst to calculate the signal level.
Hi:
I'm requesting a pull to fix an issue when the card doesn't respond with the signal level. This issues produces that the tray icon always appears as no signal.
An example of answer of my card:
In the example the ssid=bbb is the ssid my laptop is attached, and always the S:N is -96:-96, ... always. I've seen similar behaviors in the internet. To overcome this issue people use to launch the following command to obtain the level:
And the output shows the RSSI level.
The fix I put into the code consists of executing this command, and when the variable 'percentage' is 0 for the connected ssi, then replace it for the percentage calculated with the RSSI level.
This fix the issue. The code maybe could be cleaner... and it's not heavy tested...
There is something that is not clear to me. To convert from RSSI dBms to percentage I've used this formula:
percentage=quality=2 ((RSSI -1) + 100)
But in my case what I obtain is 74% despite of my laptop is just front the router, and because of that the reception is optimal. In the code I've change the formula for this one:
qual=2 ((RSSI -1) + 113)
After reading some document in the internet... but I'm not 100% sure.
Thanks for you master piece networkmgr that help all of use using freebsd/ghostbsd/... a lot.
BR,
Jes