Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Lenovo T400 wifi scan and connect questions
Date: Thu, 01 Sep 2022 13:01:06
Message-Id: 3438693.V25eIC5XRa@lenovo.localdomain
In Reply to: Re: [gentoo-user] Lenovo T400 wifi scan and connect questions by Walter Dnes
1 On Wednesday, 31 August 2022 20:15:41 BST Walter Dnes wrote:
2 > During launch, wpa_supplicant blows up on...
3 >
4 > DIR=/var/run/wpa_supplicant GROUP=wheel
5 > DIR=/var/run/wpa_supplicant GROUP=0
6
7 Hmm ... so the example page syntax is wrong. I wonder if I came across this
8 too in the distant past. :-/
9
10 I have this in my config and it works:
11
12 ctrl_interface_group=wheel
13 ctrl_interface=/var/run/wpa_supplicant
14
15
16 > https://wiki.gentoo.org/wiki/Wpa_supplicant#Configuration recommends...
17 >
18 > ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
19 >
20 > The 3 lines in my wpa_supplicant.conf that are not commented out are...
21 >
22 > ctrl_interface_group=0
23 > ap_scan=1
24 > ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
25 >
26 > Thank you for your help. It works.
27
28 Cool. :-)
29
30
31 > I live in a condo building. As
32 > a regular user "wpa_cli scan" followed by "wpa_cli scan_result" shows
33 > approximately a couple of dozen machines. BTW I've disabled MVM and
34 > wifi still works.
35 >
36 > One last question; I occasionally see signs in various places saying
37 >
38 > Our network name is "foo" and password is "bar".
39 >
40 > My reading of the wpa_cli man page indicates I should use...
41 >
42 > wpa_cli password foo bar
43 >
44 > ...to log on. Is that correct?
45
46 The wpa_cli command syntax is:
47
48 password <network id> <password>
49 configure password for an SSID
50
51 However, I'm not sure <network id> == SSID. When you add a network in
52 interactive mode with:
53
54 add_network
55
56 the shell outputs a network id number; e.g. 3, which you are meant to use
57 thereafter to set up variables for the AP; e.g.:
58
59 set_network 3 ssid "starvebux"
60 set_network 3 psk "Not Free"
61 enable_network 3
62
63 In addition, I understand the wpa_cli command 'password', as opposed to
64 variable 'psk' which is used in the interactive shell, to be for a EAP-PEAP
65 authentication scheme. For a pre-shared key you'll use interactively:
66
67 set_network 3 psk 0f0fbfdadff6271a5107a49cfb5db9e921138ee74a66b0.....
68
69 or if it is a passphrase you'll enclose it in double quotes "Not Free" as
70 above.
71
72 This is the reason I use the wpa_supplicant GUI when not restricted to working
73 in a console, because the qt5 wpa_supplicant GUI makes it easier to click and
74 fill in a PSK, compared to the multiple commands required in a terminal.

Attachments

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