Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WPA Supplicant and Systemd
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
falko
Apprentice
Apprentice


Joined: 03 Dec 2004
Posts: 235
Location: Rovereto (TN) Italy

PostPosted: Sun Mar 22, 2020 9:07 am    Post subject: WPA Supplicant and Systemd Reply with quote

SSIDHi folks,

I think I have a problem to configure the unit service of systemd for wpa supplicant.

This is my wpa_supplicant.service
Code:

[Unit]
Description=WPA supplicant
Before=network.target
Wants=network.target

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant
ExecStart=/usr/sbin/wpa_supplicant -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf

[Install]
WantedBy=multi-user.target
Alias=dbus-fi.w1.wpa_supplicant.service


If I start the service it initialized the service and work for a bit, but after a while it go in timeout.
Instead if I execute wpa_supplicant manually:
Code:

/usr/sbin/wpa_supplicant -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf

It work and don't go in timeout, why?



This is the result of systemctl status wpa_supplicant.service and journalctl -xe

Code:

[I] root@falko /h/marco# systemctl status wpa_supplicant.service
● wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; disabled; vendor preset: disabled)
     Active: failed (Result: timeout) since Sun 2020-03-22 09:41:44 CET; 35s ago
    Process: 504 ExecStart=/usr/sbin/wpa_supplicant -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf (code=exited, status=0/SUCCESS)
   Main PID: 504 (code=exited, status=0/SUCCESS)
        CPU: 54ms

mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=IT
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: RSC 000000000000001b is likely bogus, using 0
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: WPA: Key negotiation completed with 12:13:31:dd:70:f9 [PTK=CCMP GTK=CCMP]
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 12:13:31:dd:70:f9 completed [id=1 id_str=]
mar 22 09:41:44 falko systemd[1]: wpa_supplicant.service: start operation timed out. Terminating.
mar 22 09:41:44 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=12:13:31:dd:70:f9 reason=3 locally_generated=1
mar 22 09:41:44 falko wpa_supplicant[504]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
mar 22 09:41:44 falko systemd[1]: wpa_supplicant.service: Failed with result 'timeout'.
mar 22 09:41:44 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-TERMINATING
mar 22 09:41:44 falko systemd[1]: Failed to start WPA supplicant.



Code:

root@falko /h/marco# journalctl -xe
-- L'unità wpa_supplicant.service ha iniziato la fase di avvio.
mar 22 09:40:14 falko wpa_supplicant[504]: Successfully initialized wpa_supplicant
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: SME: Trying to authenticate with 12:13:31:dd:70:f9 (SSID='XXX' freq=5240 MHz)
mar 22 09:40:17 falko kernel: wlp3s0: authenticate with 12:13:31:dd:70:f9
mar 22 09:40:17 falko kernel: wlp3s0: send auth to 12:13:31:dd:70:f9 (try 1/3)
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: Trying to associate with 12:13:31:dd:70:f9 (SSID='XXX' freq=5240 MHz)
mar 22 09:40:17 falko kernel: wlp3s0: authenticated
mar 22 09:40:17 falko kernel: wlp3s0: associate with 12:13:31:dd:70:f9 (try 1/3)
mar 22 09:40:17 falko kernel: wlp3s0: RX AssocResp from 12:13:31:dd:70:f9 (capab=0x11 status=0 aid=2)
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: Associated with 12:13:31:dd:70:f9
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
mar 22 09:40:17 falko kernel: wlp3s0: associated
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=IT
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: RSC 000000000000001b is likely bogus, using 0
mar 22 09:40:17 falko kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: WPA: Key negotiation completed with 12:13:31:dd:70:f9 [PTK=CCMP GTK=CCMP]
mar 22 09:40:17 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 12:13:31:dd:70:f9 completed [id=1 id_str=]
mar 22 09:40:17 falko dhcpcd[257]: wlp3s0: carrier acquired
mar 22 09:40:17 falko systemd-networkd[151]: wlp3s0: Gained carrier
mar 22 09:40:17 falko systemd-networkd[151]: wlp3s0: Connected WiFi access point: XXX (12:13:31:dd:70:f9)
mar 22 09:40:17 falko dhcpcd[257]: wlp3s0: IAID fa:98:ba:72
mar 22 09:40:17 falko dhcpcd[257]: wlp3s0: adding address fe80::7dc2:719b:48d2:4f23
mar 22 09:40:17 falko kernel: wlp3s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 12:13:31:dd:70:f9
mar 22 09:40:17 falko dhcpcd[257]: wlp3s0: soliciting an IPv6 router
mar 22 09:40:18 falko dhcpcd[257]: wlp3s0: soliciting a DHCP lease
mar 22 09:40:18 falko systemd-networkd[151]: wlp3s0: Gained IPv6LL
mar 22 09:40:20 falko dhcpcd[257]: wlp3s0: offered 192.168.1.12 from 192.168.1.1
mar 22 09:40:20 falko dhcpcd[257]: wlp3s0: probing address 192.168.1.12/24
mar 22 09:40:25 falko dhcpcd[257]: wlp3s0: leased 192.168.1.12 for 21600 seconds
mar 22 09:40:25 falko dhcpcd[257]: wlp3s0: adding route to 192.168.1.0/24
mar 22 09:40:25 falko dhcpcd[257]: wlp3s0: adding default route via 192.168.1.1
mar 22 09:40:30 falko dhcpcd[257]: wlp3s0: no IPv6 Routers available
mar 22 09:41:44 falko systemd[1]: wpa_supplicant.service: start operation timed out. Terminating.
mar 22 09:41:44 falko kernel: wlp3s0: deauthenticating from 12:13:31:dd:70:f9 by local choice (Reason: 3=DEAUTH_LEAVING)
mar 22 09:41:44 falko dhcpcd[257]: wlp3s0: carrier lost
mar 22 09:41:44 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=12:13:31:dd:70:f9 reason=3 locally_generated=1
mar 22 09:41:44 falko systemd-networkd[151]: wlp3s0: Lost carrier
mar 22 09:41:44 falko wpa_supplicant[504]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
mar 22 09:41:44 falko kernel: wpa_supplicant (504) used greatest stack depth: 12528 bytes left
mar 22 09:41:44 falko systemd[1]: wpa_supplicant.service: Failed with result 'timeout'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit wpa_supplicant.service has entered the 'failed' state with result 'timeout'.
mar 22 09:41:44 falko wpa_supplicant[504]: wlp3s0: CTRL-EVENT-TERMINATING
mar 22 09:41:44 falko systemd[1]: Failed to start WPA supplicant.
-- Subject: L'unità wpa_supplicant.service è fallita
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità wpa_supplicant.service è fallita.
--
-- Il risultato è failed.
mar 22 09:41:44 falko dhcpcd[257]: wlp3s0: deleting address fe80::7dc2:719b:48d2:4f23
mar 22 09:41:44 falko dhcpcd[257]: wlp3s0: deleting route to 192.168.1.0/24
mar 22 09:41:44 falko dhcpcd[257]: wlp3s0: deleting default route via 192.168.1.1
mar 22 09:42:06 falko su[1134]: Successful su for root by marco
mar 22 09:42:06 falko su[1134]: + /dev/pts/2 marco:root
mar 22 09:42:06 falko su[1134]: pam_unix(su:session): session opened for user root by (uid=1000)
mar 22 09:42:27 falko su[1190]: Successful su for root by marco
mar 22 09:42:27 falko su[1190]: + /dev/pts/3 marco:root
mar 22 09:42:27 falko su[1190]: pam_unix(su:session): session opened for user root by (uid=1000)

_________________
Io non sarò mai nessuno ma... nessuno sarà mai come me. (Jim Morrison)

A ciacere no se sgonfa done

Gentoo on: Lenovo R500
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