Skip to content

Conversation

@cedk
Copy link
Contributor

@cedk cedk commented Apr 13, 2017

On 6.1, the signal is negative dBm. So to still have a sort with the
stronger signal on top, the signal must be inverted.

@qbit
Copy link
Contributor

qbit commented Apr 13, 2017

I will setup a 6.1 box to test this :D - wiconfig seems to have some rough edges on -current

@cedk
Copy link
Contributor Author

cedk commented Apr 13, 2017

Indeed it seems that the sign of the signal value may depend of the driver:
openbsd/src@94fee87
So maybe we should use the absolute value.

@brycied00d
Copy link
Member

Indeed it seems that the sign of the signal value may depend of the driver:

I thought this sounded familiar... #8 (comment)

The signal can be a negative dBm or a positive percentage depending of
the capabilities of the driver. We must convert the value into a
positive integer to allow to sort in all cases.
@cedk
Copy link
Contributor Author

cedk commented Apr 14, 2017

I reworked the patch to take care of both cases dBm and %.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants