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

sta associated to ap but not connected to ap!!! #559

Open
hb-Guo opened this issue Jan 5, 2025 · 1 comment
Open

sta associated to ap but not connected to ap!!! #559

hb-Guo opened this issue Jan 5, 2025 · 1 comment

Comments

@hb-Guo
Copy link

hb-Guo commented Jan 5, 2025

Hello, this is my code

print("STA-{}: ".format(i+1), STAs[i].cmd('iw dev sta{}-wlan0 link'.format(i+1)))
print(f"STA{i+1} Associated to ", str(STAs[i].wintfs[0].associatedTo)[2:3])
print(f"STA{i+1} Channel ", STAs[i].wintfs[0].associatedTo.channel)
testap = APs[int(str(STAs[i].wintfs[0].associatedTo)[2:3])-1]
STAs[i].setAssociation(testap)

The first line show "STA-2: Not connected."

The second line show "STA2 Associated to ap3"

Then, there state is not same, so I try to force associated to the ap. It is in the forth line,
but it shows "sta2 is already connected!"

?????? why?

@ramonfontes
Copy link
Member

why?

There could be various reasons for this issue (e.g., NetworkManager running, etc), but I cannot provide a definitive response without a more detailed description of the problem.

Regarding association methods, they are just a framework. I recommend using wireless tools such as iw and iwconfig for more precise control and diagnostics.

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