Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invert negative signal to sort on 6.1 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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