rtl8192du icon indicating copy to clipboard operation
rtl8192du copied to clipboard

Switch to AP 2 times failed

Open clementperon opened this issue 6 years ago • 1 comments

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

clementperon avatar Jun 26 '18 09:06 clementperon

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...

guzu avatar Jul 10 '18 09:07 guzu