Skip to content

Choose the least disruptive tested Wi-Fi card automatically - #142

Open
sneurlax wants to merge 1 commit into
t4t5:mainfrom
sneurlax:feat/smart-station-selection
Open

sneurlax wants to merge 1 commit into
t4t5:mainfrom
sneurlax:feat/smart-station-selection

Conversation

@sneurlax

Copy link
Copy Markdown

When station is unset, Owly currently uses the first managed Wi-Fi interface returned by the system. On machines with both an onboard card and a USB adapter, this can choose an untested or actively connected card even when a better adapter is available.

This ranks candidate interfaces by:

  1. tested hardware before untested or broken hardware;
  2. whether using the card avoids disrupting an active network connection;
  3. actual transmit support for social channel 44 or 149;
  4. original interface order as a stable tie-breaker.

An explicitly configured station still wins unconditionally. Missing or unreadable nl80211 capability information does not receive a speculative 5 GHz bonus.

Tests cover choosing an unassociated 5 GHz USB adapter over an associated onboard card, preferring tested hardware over an earlier broken card, preserving explicit overrides, and avoiding unreadable capability data.

Test:

`cargo test -p owly-radio`

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.

1 participant