Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why does wpa_supplicant start? (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 394
Location: Den Haag, Netherlands

PostPosted: Sat Mar 12, 2022 11:26 am    Post subject: why does wpa_supplicant start? (solved) Reply with quote

My /etc/conf.d/net is empty.
wpa_supplicant is not started as a service (does not show in rc-jupdate)
net.wlo1 is started in the default runlevel.

But in rc.log:
Code:
 * Bringing up interface wlo1
 *   Caching network module dependencies
 *   Starting wpa_supplicant on wlo1 ...
Successfully initialized wpa_supplicant
 [ ok ]
 *   Starting wpa_cli on wlo1 ...
 [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.wlo1 has started, but is inactive
 * WARNING: netmount will start when net.wlo1 has started


It shows that wpa_supplicant is started. Why??
Perhaps it is good that is does because that is the only way the wifi connection can be established (wpa2 password in the config) but I thought that I switched it off.
The warnings about an inactive who1 are not relevant because I have an active internet connection. Perhaps the backgrounding is a call to dhcpcd and that takes a little time.
But I still don't see why wpa_supplicant is started. How is this possible?
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees


Last edited by houtworm on Sat Mar 12, 2022 12:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
wless123
n00b
n00b


Joined: 27 Aug 2021
Posts: 40

PostPosted: Sat Mar 12, 2022 12:32 pm    Post subject: Reply with quote

Quote:
But I still don't see why wpa_supplicant is started. How is this possible?

It's netifrc.

From https://gitweb.gentoo.org/proj/netifrc.git/tree/doc/net.example.Linux.in :
Quote:

# If you're using anything else to configure wireless on your interface AND
# you have installed wpa_supplicant, you need to disable wpa_supplicant.
# Please see the note about hostapd in the MODULES section.
#modules="!wireless"
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 394
Location: Den Haag, Netherlands

PostPosted: Sat Mar 12, 2022 12:50 pm    Post subject: Reply with quote

Thanks wless123. I renamed /lib/netifrc and my wifi did not work, so it is really neccesary :-)
But I have nothing in /etc/conf.d/net, no modules etc. nothing.
So netifrc is starting wpa_supplicant regardless of what is in /etc/conf.d/net
Ok I am happy with how it goes. No more errors in rc.log.
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
wless123
n00b
n00b


Joined: 27 Aug 2021
Posts: 40

PostPosted: Sat Mar 12, 2022 1:00 pm    Post subject: Reply with quote

Put this in /etc/conf.d/net:

Code:
modules="!wireless"


It should prevent wpa_supplicant from getting started automatically via netifrc.
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 394
Location: Den Haag, Netherlands

PostPosted: Sat Mar 12, 2022 1:06 pm    Post subject: Reply with quote

Ok I get it, there are some default module settings. With !wireless I have no wifi at all :-)
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
wless123
n00b
n00b


Joined: 27 Aug 2021
Posts: 40

PostPosted: Sat Mar 12, 2022 1:12 pm    Post subject: Reply with quote

houtworm wrote:
Ok I get it, there are some default module settings. With !wireless I have no wifi at all :-)


True :-). Gl and have fun.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum