On Tuesday, 30 August 2022 23:26:00 BST Walter Dnes wrote:
>   I'm having problems, even running as root.  As per the previous
> message, the system is detecting the hardware, but wpa_aupplicant cannot
> get going.  I have a minimal /etc/wpa_supplicant/wpa_supplicant.conf
> 
> ctrl_interface=/var/run/wpa_supplicant
> update_config=1

If you have enabled the wheel group and your user is a member of this group, 
then you won't need to run things as root:

DIR=/var/run/wpa_supplicant GROUP=wheel
DIR=/var/run/wpa_supplicant GROUP=0
# (group can be either group name or gid)

Alternatively, you can add your users gid instead.


>   From https://wiki.gentoo.org/wiki/Wpa_supplicant#Using_wpa_cli the
> command for debugging is...
> 
> wpa_supplicant -Dnl80211 -iwlan0 -C/var/run/wpa_supplicant/
> -c/etc/wpa_supplicant/wpa_supplicant.conf -dd
> 
> ...to which I appended ">>logfile.txt 2>&1" to grab all output.  I
> waited for a minute or so, and got the logfile which I've attached.  Any
> ideas?

To state the obvious, this shows your key is not accepted:

nl80211: set_key failed; err=-22 Invalid argument

Also I can see:

key_len=0

Does this message mean you are using no passwd authentication?  If so you have 
to state explicitly:

set_network 0 key_mgmt NONE

in wpa_cli when you try to authenticate with your AP, or in /etc/
wpa_supplicant/wpa_supplicant.conf add a fall back configuration at the end of 
the file for all open APs:

network={
        key_mgmt=NONE
}

You can add BSSID, SSID to the above if you only want to use no authentication 
with a specific AP rather than anything which might be within range.

BTW, key and passphrase are not the same thing.  A passphrase must be entered 
in quotations, or use wpa_passphrase to generate the preshared key from it:

~ $ wpa_passphrase MY_SSID "My secret passphrase"
network={
          ssid="MY_SSID"
          #psk="My secret passphrase"
          psk=f90ff73cefa452385366f5278f64914fa832b61a5225d3c78dcd4291061b56a1
}




Reply via email to