Problem with setting Wi-FI

I have EndeavourOS with KDE. The problem is that I cant setup Wi-Fi in Network manager.
This is how it looks https://imgur.com/a/LoGV6Zq.

*With journalctl -f I noticed this error: plasmashell[860]: org.kde.plasma.nm.libs: Wireless scan on “wlan0” failed: “Scanning not allowed while unavailable”

*The output of nmcli is:

wlan0: unmanaged
        "Intel 6 AX210/AX211/AX411 160MHz"
        wifi (iwlwifi),, hw, mtu 1500

I made sure wpa_supplicant runs:

wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; enabled; preset: disabled)
     Active: active (running) since Sun 2023-03-05 18:06:24 EET; 4h 49min ago
   Main PID: 477 (wpa_supplicant)
      Tasks: 1 (limit: 16575)
     Memory: 6.2M
        CPU: 166ms
     CGroup: /system.slice/wpa_supplicant.service
             └─477 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant

Not sure why you click on hotspot? You just need to check the enable WiFi box. WiFi connections found should show in a list below. Like this example.

Edit What does it show for networks?

inxi -Na

I can check Wi-fi button but it doesnt scan anything, and when I use journal -f, I see continous errors

Output of inxi --Na

Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2725
    class-ID: 0280

Errors logged by journalctl -f:

mar 05 23:58:53 calin-15ach6h systemsettings[30865]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:58:54 calin-15ach6h plasmashell[860]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:03 calin-15ach6h systemsettings[30865]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:04 calin-15ach6h plasmashell[860]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:13 calin-15ach6h systemsettings[30865]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:14 calin-15ach6h plasmashell[860]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:23 calin-15ach6h systemsettings[30865]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:24 calin-15ach6h plasmashell[860]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:33 calin-15ach6h systemsettings[30865]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
mar 05 23:59:34 calin-15ach6h plasmashell[860]: org.kde.plasma.nm.libs: Wireless scan on "wlan0" failed: "Scanning not allowed while unavailable"
sudo nmcli radio wifi on
sudo nmcli dev wifi rescan

The first command doesn’t output anything. The second one outputs this:

Error: Scanning not allowed while unavailable.
sudo nmcli dev
DEVICE  TYPE      STATE                   CONNECTION 
eno1    ethernet  connected               Camin      
lo      loopback  connected (externally)  lo         
vmnet1  ethernet  unmanaged               --         
vmnet8  ethernet  unmanaged               --         
wlan0   wifi      unmanaged               --

Hmm?

sudo rmmod iwlwifi
sudo modprobe iwlwifi

First output this:

rmmod: ERROR: Module iwlwifi is in use by: iwlmvm

Second one doesnt do anything it seems.

[root@calin-15ach6h calins]# sudo rmmod iwlwifi
rmmod: ERROR: Module iwlwifi is in use by: iwlmvm
[root@calin-15ach6h calins]# sudo rmmod iwlwifi
rmmod: ERROR: Module iwlwifi is in use by: iwlmvm
[root@calin-15ach6h calins]# sudo modprobe iwlwifi
[root@calin-15ach6h calins]# sudo modprobe iwlwifi
[root@calin-15ach6h calins]# 

Do you have Windows installed as dual boot?

Yes. The Windows wi fi works correctly with no problems.

Go into Windows and turn off fast startup feature in power management settings.

It was already turned off. I restarted back to endeavour OS. No chenge it seems.

You said wpa_supplicant is started? and running?

systemctl status wpa_supplicant

Yes. It was before I starded the post. Here it is now:

● wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; enabled; preset: disabled)
     Active: active (running) since Mon 2023-03-06 00:23:27 EET; 2min 39s ago
   Main PID: 493 (wpa_supplicant)
      Tasks: 1 (limit: 16575)
     Memory: 6.1M
        CPU: 20ms
     CGroup: /system.slice/wpa_supplicant.service
             └─493 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant

mar 06 00:24:44 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=13 -> NAK
mar 06 00:24:44 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
mar 06 00:24:44 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
mar 06 00:24:45 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/CN=UPB-CA' hash=ddd11b4c81bca36752e3f0a42eb8607a15e830073827c04a4327fc16959c2905
mar 06 00:24:45 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/CN=UPB-CA' hash=ddd11b4c81bca36752e3f0a42eb8607a15e830073827c04a4327fc16959c2905
mar 06 00:24:45 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=RO/O=UPB/CN=abc2.curs.pub.ro' hash=6828f331b2b6c5a41141815672120016d346da71bfc5054791fe05cc8e551db6
mar 06 00:24:45 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:abc2.curs.pub.ro
mar 06 00:24:45 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:*.curs.pub.ro
mar 06 00:24:45 calin-15ach6h wpa_supplicant[493]: EAP-MSCHAPV2: Authentication succeeded
mar 06 00:24:46 calin-15ach6h wpa_supplicant[493]: eno1: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully

Have you tried stopping it and restarting?

I should explain that my Ethernet is connected using dot1x protocol.

I tried stopping but it seems it starts itself on. I also tried to disable it, it started itself again.

# systemctl disable wpa_supplicant.service
# systemctl stop wpa_supplicant.service

That might help? But i don’t have enough knowledge on this so i don’t know if it’s a problem or not. Obviously you are connected to Ethernet and that is working. Whether it’s blocking WiFi from working i don’t know.

Maybe systemctl restart wpa_supplicant