Mailing List Archive

[SOLVED] Cant get wpa_cli going on Lenovo T400
On Fri, Aug 07, 2020 at 04:31:54PM +0100, Michael wrote
> These settings are the same here, with two exceptions. The config file is:
>
> # ls -la /etc/wpa_supplicant/wpa_supplicant.conf
> -rw------- 1 root root 77640 Jun 18 2019 /etc/wpa_supplicant/
> wpa_supplicant.conf

Sorry, typo on my part. It is /etc/wpa_supplicant/wpa_supplicant.conf
on my system. I missed the repeating part.

============================================================
[thimk][root][~] ll /etc/wpa_supplicant/
total 16
drw------- 2 root root 4096 Aug 6 15:43 .
drwxr-xr-x 66 root root 4096 Aug 9 01:42 ..
-rwxr-xr-x 1 root root 1284 Aug 6 15:19 wpa_cli.sh
-rw-r--r-- 1 root root 1900 Aug 6 15:43 wpa_supplicant.conf
============================================================

The clue came when I requested verbose debug output (-dd) for a manual
scan with wpa_supplicant.

============================================================
[thimk][root][~] wpa_supplicant -dd -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant v2.9
random: getrandom() support available
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
wpa_driver_privsep_set_param: param='(null)'
sendto: No such file or directory
Failed to register with wpa_priv
wlan0: Driver interface rejected driver_param '(null)'
Failed to add interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=DISCONNECTED
wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=0 set_tx=0
sendmsg(cmd_socket): No such file or directory
wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=1 set_tx=0
sendmsg(cmd_socket): No such file or directory
wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=2 set_tx=0
sendmsg(cmd_socket): No such file or directory
wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=3 set_tx=0
sendmsg(cmd_socket): No such file or directory
wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=4 set_tx=0
sendmsg(cmd_socket): No such file or directory
wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=5 set_tx=0
sendmsg(cmd_socket): No such file or directory
wlan0: State: DISCONNECTED -> DISCONNECTED
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
sendto: No such file or directory
============================================================

Note all the "sendmsg(cmd_socket): No such file or directory" entries.
I asked Mr. Google about this. He pointed me to
https://forums.gentoo.org/viewtopic-t-1080388-start-0.html where the
answer in the last post is...

> Disable USE="privsep" on wpa_supplicant.

I did that and now it works. A scan shows a slew of devices. According
to https://wiki.gentoo.org/wiki/Wpa_supplicant USE="privsep" will...

> Enable wpa_priv privledge separation binary

Before, I start using the notebook in wifi mode, are there any
problems with not using "privsep"?

--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications