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

Autorisation type type mismatch. #40

Open
terjeio opened this issue Oct 9, 2022 · 1 comment
Open

Autorisation type type mismatch. #40

terjeio opened this issue Oct 9, 2022 · 1 comment

Comments

@terjeio
Copy link

terjeio commented Oct 9, 2022

Autorization type is larger than defined in scan result - 32 bit vs. 8 bit. The two APs I have return values that are not defined. Bad documentation?

@felixdoerre
Copy link
Contributor

I'd say, its probably not only bad documentation but also missing documentation and a bit complicated API design as there seem to be already 2 security enums around (CYW43_AUTH_* and CYW43_*_AUTH).
CYW43_AUTH_* seems to be used for join and for ap_init. CYW43_*_AUTH is used for the underlying communication towards the wifi chip.
Luckily we have the code that parses the response from the chip and builds the auth value available:

int security = 0;// OPEN

From that it seems that WPA2=5; WPA=3; WEP=1; Open=0. I can't see any enum around that has these values, so they seem to use yet another enum for security types. The reference to CYW43_AUTH_ from the scan result struct seems wrong.

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

No branches or pull requests

2 participants