Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/netifrc:master commit in: doc/
Date: Tue, 02 Jun 2020 21:38:09
Message-Id: 1591133731.51a7c4fae619a05b8f179f5f03b3e8a556df7205.robbat2@OpenRC
1 commit: 51a7c4fae619a05b8f179f5f03b3e8a556df7205
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 2 21:35:31 2020 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 2 21:35:31 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=51a7c4fa
7
8 doc/net.example.Linux: document !wireless better
9
10 Users that used layer2 wireless configuration external to netifrc and
11 had previously configured netifrc with:
12 `modules="!iwconfig !wpa_supplicant"`
13 were surprised by the introduction of the iw & iwd modules, because the
14 modules tries to auto-configure the wireless interfaces.
15
16 Document that `modules="!wireless"` is a better configuration knob for
17 this situation.
18
19 Bug: https://bugs.gentoo.org/717226
20 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
21
22 doc/net.example.Linux.in | 21 ++++++++++++++++-----
23 1 file changed, 16 insertions(+), 5 deletions(-)
24
25 diff --git a/doc/net.example.Linux.in b/doc/net.example.Linux.in
26 index 53d9e84..4fc603b 100644
27 --- a/doc/net.example.Linux.in
28 +++ b/doc/net.example.Linux.in
29 @@ -43,8 +43,20 @@
30 # You can also specify which modules not to use - for example you may be
31 # using a supplicant or linux-wlan-ng to control wireless configuration but
32 # you still want to configure network settings per SSID associated with.
33 -#modules="!iwconfig !wpa_supplicant"
34 -# IMPORTANT: If you need the above, please disable modules in that order
35 +#
36 +# A common case here may be using hostapd or other external configuration of
37 +# the wireless hardware at layer 2, but leaving netifrc to configure the layer
38 +# 3 networking
39 +#
40 +# Best practice for this situation is to disable ALL netifrc wireless modules:
41 +#modules="!wireless"
42 +#
43 +# This supersedes older cases where each module was disabled seperately:
44 +# If new modules are introduced that provide wireless support, they may be used
45 +# automatically otherwise, causing situations like
46 +# https://bugs.gentoo.org/717226
47 +# Do not use a line like this anymore:
48 +#modules="!iwconfig !wpa_supplicant !iw !iwd"
49
50
51 ##############################################################################
52 @@ -435,9 +447,8 @@
53 # won't have associated then)
54
55 # If you're using anything else to configure wireless on your interface AND
56 -# you have installed wpa_supplicant, you need to disable wpa_supplicant
57 -#modules="!iwconfig !wpa_supplicant"
58 -#or
59 +# you have installed wpa_supplicant, you need to disable wpa_supplicant.
60 +# Please see the note about hostapd in the MODULES section.
61 #modules="!wireless"
62
63 ##############################################################################