Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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