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

Open to adding a feature? #57

Open
andrewdavidmackenzie opened this issue Jan 11, 2024 · 0 comments
Open

Open to adding a feature? #57

andrewdavidmackenzie opened this issue Jan 11, 2024 · 0 comments

Comments

@andrewdavidmackenzie
Copy link

This library seems pretty old and untouched for years - but still works and does what I want (I would in fact prefer calling into libraries via FFI rather than a Command, but that's a different topic and probably not easy) - I was wondering would you be open to a PR to add the feature described below.

Is your feature request related to a problem? Please describe.
I would like to know which SSID in the list returned is the one currently being used.
I know there maybe corner cases that complicate it, but I don't care too much about those and what the "airport" returns is good enough for me.

Describe the solution you'd like
Add a field in the Wifi struct returned to indicate if that wifi (SSID) is the one currently being used, as reported by invoking "airport" command (on MacOS) with "-I" option (older versions had a "ssid" option I think).

On linux I don't know the equivalent, but hope it could be found

Describe alternatives you've considered
These alternatives would also be fine and in fact this first one maybe better - unless we could get the info in just one Command invokation, saving time.

  • A separate function in the library in addition to scan()
  • return a struct with the SSID name plus a vec or wifis in the scan() command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant