Bug 1955958 - wpa_supplicant CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
Summary: wpa_supplicant CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: wpa_supplicant
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-01 17:55 UTC by richardipsum
Modified: 2021-05-11 22:28 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description richardipsum 2021-05-01 17:55:20 UTC
Description of problem:

wpa_supplicant fails to connect to network since upgrade to fedora 34


May 01 18:44:13 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:14 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:15 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:16 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:17 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:18 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:19 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:20 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:21 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:22 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:23 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:24 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:25 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:26 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:27 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:28 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:29 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:30 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
May 01 18:44:31 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:32 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:33 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:34 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              
May 01 18:44:35 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:36 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1                              May 01 18:44:37 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1               
May 01 18:44:38 reflection wpa_supplicant[249961]: wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1  

Version-Release number of selected component (if applicable):


How reproducible: always


Steps to Reproduce:
1. set up 2Ghz/5Ghz AP
2. install centrino 6200 intel wifi card
3. configure network manager to connect to AP
4. reboot

Actual results:

wifi remains unconnected, wpa_supplicant repeatedly outputs:
wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1

Expected results:

connect to network


Additional info:

this is using iwl6000-firmware with the following lspci entry:

02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)

sometimes a connection will be made eventually. the router has both 2.4Ghz/5Ghz mode. If I set up a 2.4Ghz only hotspot on my phone then it works fine.

Comment 1 richardipsum 2021-05-01 19:39:18 UTC
After some further investigation I found that the problem is likely not wpa_supplicant itself, if I invoke wpa_supplicant manually with an appropriate config it will connect immediately:

[root@reflection wpa_supplicant]# wpa_supplicant -Dwext -iwlp2s0 -c wpa_supplicant_sky.conf 
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
wlp2s0: Trying to associate with [omitted] (SSID='[omitted]' freq=5180 MHz)
Failed to add supported operating classes IE
wlp2s0: Associated with [omitted]
wlp2s0: WPA: Key negotiation completed with [omitted] [PTK=CCMP GTK=CCMP]
wlp2s0: CTRL-EVENT-CONNECTED - Connection to [omitted] completed [id=0 id_str=]

so maybe the problem is network manager?

Comment 2 Airbete 2021-05-03 23:28:37 UTC
I have the same problem. What is in your wpa_supplicant_sky.conf file?

Comment 3 richardipsum 2021-05-04 11:19:48 UTC
Nice to know it's not just me, here's what I have:

# cat etc/wpa_supplicant/wpa_supplicant_sky.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
 scan_ssid=1
 ssid="MYSSIDHERE"
 psk="MYWIFIPASSHERE"
}

Comment 4 rgessner 2021-05-04 22:43:01 UTC
Same Problem here.

Controller is:
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)

Comment 5 wieland 2021-05-11 22:28:21 UTC
Centrino Advanced-N 6200 here. Problem first started when I updated Fedora 33 right before upgrading to 34, so I don't think 34 is the only release affected.


Note You need to log in before you can comment on or make changes to this bug.