Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cant get wpi_cli going on Lenovo T400
Date: Fri, 07 Aug 2020 15:32:06
Message-Id: 1630908.QkHrqEjB74@lenovo.localdomain
In Reply to: [gentoo-user] Cant get wpi_cli going on Lenovo T400 by Walter Dnes
1 On Wednesday, 5 August 2020 21:25:09 BST Walter Dnes wrote:
2 > I want to do this manually, before automating it; "ifconfig -a" shows
3 > eth0, and lo, and...
4 >
5 > wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
6 > ether 00:26:c6:4a:b4:92 txqueuelen 1000 (Ethernet)
7 > RX packets 0 bytes 0 (0.0 B)
8 > RX errors 0 dropped 0 overruns 0 frame 0
9 > TX packets 0 bytes 0 (0.0 B)
10 > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
11 >
12 > Next steps are to start wpa_supplicant and wpa_cli
13 >
14 > ===================================================================
15 >
16 > [thimk][root][~] /etc/init.d/wpa_supplicant start
17 > * Starting WPA Supplicant Daemon ...
18 > Successfully initialized wpa_supplicant [
19 > ok ]
20 >
21 > [thimk][root][~] wpa_cli
22 > wpa_cli v2.9
23 > Copyright (c) 2004-2019, Jouni Malinen <j@××.fi> and contributors
24 >
25 > This software may be distributed under the terms of the BSD license.
26 > See README for more details.
27 >
28 >
29 >
30 > Interactive mode
31 >
32 > Could not connect to wpa_supplicant: (nil) - re-trying
33 >
34 > ===================================================================
35 >
36 > Even specifying "wpa_cli -i wlan0" fails. The config files...
37 >
38 >
39 > # /etc/conf.d/net
40 > =================
41 > config_eth0="dhcp"
42 >
43 > modules="wpa_supplicant"
44 > config_wlan0="dhcp"
45 >
46 > # /etc/wpa_supplicant
47 > =====================
48 > # The below line not be changed otherwise wpa_supplicant refuses to work
49 > ctrl_interface=/var/run/wpa_supplicant
50 >
51 > # Ensure that only root can read the WPA configuration
52 > ctrl_interface_group=0
53 >
54 > # Let wpa_supplicant take care of scanning and AP selection
55 > ap_scan=1
56
57 These settings are the same here, with two exceptions. The config file is:
58
59 # ls -la /etc/wpa_supplicant/wpa_supplicant.conf
60 -rw------- 1 root root 77640 Jun 18 2019 /etc/wpa_supplicant/
61 wpa_supplicant.conf
62
63 and,
64
65 ctrl_interface_group=wheel
66
67 The former is relevant because the default openrc script requires '/etc/
68 wpa_supplicant/wpa_supplicant.conf', unless you have modified it.
69
70 The latter most likely not relevant - but it allows me to change settings in
71 the wpa_supplicant GUI.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-user] [SOLVED] Cant get wpa_cli going on Lenovo T400 Walter Dnes <waltdnes@××××××××.org>