Skip to content

Invert negative signal to sort on 6.1#10

Open
cedk wants to merge 1 commit intodevious:masterfrom
cedk:6.1
Open

Invert negative signal to sort on 6.1#10
cedk wants to merge 1 commit intodevious:masterfrom
cedk:6.1

Conversation

@cedk
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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