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

Switch to AP 2 times failed #64

Open
clementperon opened this issue Jun 26, 2018 · 1 comment
Open

Switch to AP 2 times failed #64

clementperon opened this issue Jun 26, 2018 · 1 comment

Comments

@clementperon
Copy link
Contributor

Switching to AP Mode failed the second times :

$> wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with e4:aa:5d:5e:aa:cc (SSID='Opera' freq=5280 MHz)
wlan0: Associated with e4:aa:5d:5e:aa:cc
wlan0: CTRL-EVENT-CONNECTED - Connection to e4:aa:5d:5e:aa:cc
completed [id=0 id_str=]
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=FR
^C
wlan0: CTRL-EVENT-DISCONNECTED bssid=e4:aa:5d:5e:aa:cc reason=3
locally_generated=1
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING
$> wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with e4:aa:5d:5e:aa:cc (SSID='Opera' freq=5280 MHz)
wlan0: Association request to the driver failed
wlan0: Trying to associate with e4:aa:5d:5e:aa:cc (SSID='Opera' freq=5280 MHz)
wlan0: Association request to the driver failed
@guzu
Copy link

guzu commented Jul 10, 2018

It seems that, for kernel 4.x, disconnection event through cfg80211_disconnected() is explicitly disabled by setting 'not_indic_disco' to _TRUE in cfg80211_rtw_disconnect()
Setting it to _FALSE make the test case to work, but might break somewhere else, 'not_indic_disco' is here for a reason...

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