View previous topic :: View next topic |
Author |
Message |
nimar n00b

Joined: 06 Dec 2007 Posts: 41 Location: So CA
|
Posted: Fri Jun 06, 2014 11:54 pm Post subject: [SOLVED] systemd NetworkManager wpa_supplicant |
|
|
I recently "upgraded" to systemd from openrc. all went pretty smooth until it came to networking. I decided to go with NetworkManager vs. wireless-tools. I cannot locate a good howto anywhere that discusses weather or not NetworkManager requires wpa_supplicant to connect to wpa2-psk? From what I have read about NwM it should be able to handle all security on its own. Honestly, I can't get the Wifi to work at all now.
It's a dlan card using ath9k and work w/openrc.
Any help is appreciated.
[EDIT]
I forgot to mention systemctl status NetworkManager.service reports NetworkManager[419]: <info> (wlan0): supplicant interface state: disconnected -> inactive
journalctl -xn reports wpa_supplicant[285]: ioctl[SIOCSIWSCAN]: Operation not supported
-N
Last edited by nimar on Sat Jun 07, 2014 9:53 pm; edited 1 time in total |
|
Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 7640 Location: Goose Creek SC
|
Posted: Sat Jun 07, 2014 2:03 am Post subject: |
|
|
Code: | emerge -av wpa_supplicant networkmanager | you might need to do this even if you ran emerge -uND world after adding the systemd USE flag. _________________ Defund the FCC. |
|
Back to top |
|
 |
nimar n00b

Joined: 06 Dec 2007 Posts: 41 Location: So CA
|
Posted: Sat Jun 07, 2014 3:20 pm Post subject: |
|
|
Thanks DONAHUE!
Quote: |
Code: |
emerge -av wpa_supplicant networkmanager |
you might need to do this even if you ran emerge -uND world after adding the systemd USE flag. |
I re-emerged both... What I have realized with systemd when I start wpa_supplicant
Code: | systemctl start wpa_supplicant.service | is that it is not utilizing the wpa_supplicant driver nl80211. if I start wpa_supplicant manually Code: | wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211 | everything starts with no issue and I have a wifi link. I checked /usr/lib/systemd/system/wpa_supplicant.service and it starts wpa_supplicant.service without the "-Dnl80211" Code: | [Service]...
ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -u | which I changed to Code: | ..wpa_supplicant.conf -Dnl80211 -u | and started the service with no luck as it is still not loading nl80211. I think I am missing something which is why I ask if I NEED to use wpa_supplicant any longer w/NwM. shouldn't NwM bring up the interface with ath9k module or do I need a supplemental NwM package?
Thanks again!
-N |
|
Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 7640 Location: Goose Creek SC
|
Posted: Sat Jun 07, 2014 7:19 pm Post subject: |
|
|
network manager should start wpa_supplicant, if wpa_supplicant is already running when networkmanager wants to start it, failure results.
I'm seeing:
Code: | systemctl | grep -i wpa | wpa_supplicant.service loaded active running WPA supplicant
Code: | systemctl | grep -i networkmanager | NetworkManager.service loaded active running Network Manager
Code: | systemctl | grep -i wlan0 | sys-devices-pci0000:00-0000:00:16.2-usb3-3\x2d4-3\x2d4:1.0-net-wlan0.device loaded active plugged EUB9801 802.11abgn Wireless Adapter [Ralink RT3572]
sys-subsystem-net-devices-wlan0.device loaded active plugged EUB9801 802.11abgn Wireless Adapter [Ralink RT3572]] _________________ Defund the FCC. |
|
Back to top |
|
 |
nimar n00b

Joined: 06 Dec 2007 Posts: 41 Location: So CA
|
Posted: Sat Jun 07, 2014 9:52 pm Post subject: |
|
|
Thank you DONAHUE.
I stumbled onto the conflicting wpa_supplicant instances a few hours after I posted my reply. I also had a separate dhcpcd service running which conflicted as well. All is working now and WiFI is up and running!
Regards
-N |
|
Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 7640 Location: Goose Creek SC
|
Posted: Sun Jun 08, 2014 2:12 am Post subject: |
|
|
Good show! _________________ Defund the FCC. |
|
Back to top |
|
 |
|