Skip to content

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

Open
@hb-Guo

Description

@hb-Guo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions