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

BSSID not found error on newer macos #60

Open
andrewdavidmackenzie opened this issue Apr 15, 2024 · 3 comments
Open

BSSID not found error on newer macos #60

andrewdavidmackenzie opened this issue Apr 15, 2024 · 3 comments

Comments

@andrewdavidmackenzie
Copy link

This error seems to have appeared, since I upgraded to macos Sonoma 14.4.1

cargo run --example scan
warning: An explicit [[bin]] section is specified in Cargo.toml which currently
disables Cargo from automatically inferring other binary targets.
This inference behavior will change in the Rust 2018 edition and the following
files will be included as a binary target:

* /Users/andrew/workspace/wifiscanner/src/bin/main.rs

This is likely to break cargo build or cargo test as these files may not be
ready to be compiled as a binary target today. You can future-proof yourself
and disable this warning by adding `autobins = false` to your [package]
section. You may also move the files to a location where Cargo would not
automatically infer them to be a target, such as in subfolders.

For more information on this warning you can consult
https://github.com/rust-lang/cargo/issues/5330
warning: path `/Users/andrew/workspace/wifiscanner/src/bin/main.rs` was erroneously implicitly accepted for binary `wifiscanner`,
please set bin.path in Cargo.toml
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/examples/scan`
Err(HeaderNotFound("BSSID"))
uname -a
Darwin amackenz-mac 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64

Tests pass though, so maybe if we do find a bug on this version we need to add a test also.

@radiohertz
Copy link

radiohertz commented Apr 17, 2024

@andrewdavidmackenzie Apple deprecated airport binary that this crate uses.

@andrewdavidmackenzie
Copy link
Author

discovered that as I was also using it directly.
I thought I added that to this issue but seems not or didn't hit "save" :-(
Either way, I guess I'll just have to rework my binary to use networksetup or wdutil (requires sudo :-( ) directly, and skip this crate.
Maybe worth an addition to the readme to explain for newer macos versions or mark as unmaintained/deprecated?

@MarcMouries
Copy link

I created a small wifi-scanner in Objective-C that works. Maybe this could be used instead of the deprecated MacOS tool?
#https://github.com/MarcMouries/wifi-scanner

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

3 participants