Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [SOLVED] Cant get wpa_cli going on Lenovo T400
Date: Sat, 08 Aug 2020 07:37:39
Message-Id: 20200808073653.GA18638@waltdnes.org
In Reply to: Re: [gentoo-user] Cant get wpi_cli going on Lenovo T400 by Michael
1 On Fri, Aug 07, 2020 at 04:31:54PM +0100, Michael wrote
2 > These settings are the same here, with two exceptions. The config file is:
3 >
4 > # ls -la /etc/wpa_supplicant/wpa_supplicant.conf
5 > -rw------- 1 root root 77640 Jun 18 2019 /etc/wpa_supplicant/
6 > wpa_supplicant.conf
7
8 Sorry, typo on my part. It is /etc/wpa_supplicant/wpa_supplicant.conf
9 on my system. I missed the repeating part.
10
11 ============================================================
12 [thimk][root][~] ll /etc/wpa_supplicant/
13 total 16
14 drw------- 2 root root 4096 Aug 6 15:43 .
15 drwxr-xr-x 66 root root 4096 Aug 9 01:42 ..
16 -rwxr-xr-x 1 root root 1284 Aug 6 15:19 wpa_cli.sh
17 -rw-r--r-- 1 root root 1900 Aug 6 15:43 wpa_supplicant.conf
18 ============================================================
19
20 The clue came when I requested verbose debug output (-dd) for a manual
21 scan with wpa_supplicant.
22
23 ============================================================
24 [thimk][root][~] wpa_supplicant -dd -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
25 wpa_supplicant v2.9
26 random: getrandom() support available
27 Successfully initialized wpa_supplicant
28 Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
29 Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
30 Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
31 ctrl_interface='/var/run/wpa_supplicant'
32 ctrl_interface_group='0'
33 ap_scan=1
34 wpa_driver_privsep_set_param: param='(null)'
35 sendto: No such file or directory
36 Failed to register with wpa_priv
37 wlan0: Driver interface rejected driver_param '(null)'
38 Failed to add interface wlan0
39 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
40 wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=0 set_tx=0
41 sendmsg(cmd_socket): No such file or directory
42 wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=1 set_tx=0
43 sendmsg(cmd_socket): No such file or directory
44 wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=2 set_tx=0
45 sendmsg(cmd_socket): No such file or directory
46 wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=3 set_tx=0
47 sendmsg(cmd_socket): No such file or directory
48 wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=4 set_tx=0
49 sendmsg(cmd_socket): No such file or directory
50 wpa_driver_privsep_set_key: priv=0x55925ce96f90 alg=0 key_idx=5 set_tx=0
51 sendmsg(cmd_socket): No such file or directory
52 wlan0: State: DISCONNECTED -> DISCONNECTED
53 wlan0: Cancelling scan request
54 wlan0: Cancelling authentication timeout
55 Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
56 sendto: No such file or directory
57 ============================================================
58
59 Note all the "sendmsg(cmd_socket): No such file or directory" entries.
60 I asked Mr. Google about this. He pointed me to
61 https://forums.gentoo.org/viewtopic-t-1080388-start-0.html where the
62 answer in the last post is...
63
64 > Disable USE="privsep" on wpa_supplicant.
65
66 I did that and now it works. A scan shows a slew of devices. According
67 to https://wiki.gentoo.org/wiki/Wpa_supplicant USE="privsep" will...
68
69 > Enable wpa_priv privledge separation binary
70
71 Before, I start using the notebook in wifi mode, are there any
72 problems with not using "privsep"?
73
74 --
75 Walter Dnes <waltdnes@××××××××.org>
76 I don't run "desktop environments"; I run useful applications