doc:appunti:hardware:raspberrypi_wpa_supplicant_problem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:hardware:raspberrypi_wpa_supplicant_problem [2024/11/15 15:06] – [dhcpcd process dies without configuring wlan0] niccolo | doc:appunti:hardware:raspberrypi_wpa_supplicant_problem [2024/11/17 16:55] (current) – [dhcpcd process dies without configuring wlan0] niccolo | ||
---|---|---|---|
Line 112: | Line 112: | ||
It results that wlan0 gets a sqeuence of '' | It results that wlan0 gets a sqeuence of '' | ||
- | I solved the problem by letting Systemd to start wpa_supplicant on the specific wlan0 interface. This is achieved renaming the wpa_supplicant.conf file and enabling the service: | + | I solved the problem by letting Systemd to start wpa_supplicant on the specific wlan0 interface. This is achieved renaming the wpa_supplicant.conf file and enabling |
< | < | ||
mv / | mv / | ||
systemctl enable wpa_supplicant@wlan0.service | systemctl enable wpa_supplicant@wlan0.service | ||
+ | systemctl disable wpa_supplicant.service | ||
</ | </ | ||
Line 135: | Line 136: | ||
Nevertehless dhcpcd is informed by udev when the wlan0 interface is activated and then it can configure it using DHCP. | Nevertehless dhcpcd is informed by udev when the wlan0 interface is activated and then it can configure it using DHCP. | ||
- | **NOTICE**: The default systemd configuration shipped with **Raspbian 11 Bullseye** does not ensure that the **wpa_supplicant@.service** is started before **dhcpcd.service**, | + | **NOTICE**: The default systemd configuration shipped with **Raspbian 11 Bullseye** does not ensure that the **wpa_supplicant@..service** is started before **dhcpcd.service**, |
< | < | ||
Line 141: | Line 142: | ||
</ | </ | ||
- | Indeed you can see that **dhcpcd.service** | + | Indeed you can see that **dhcpcd.service** |
+ | < | ||
+ | systemctl edit dhcpcd.service | ||
+ | </ | ||
+ | |||
+ | this will launch an editor to create the file **/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | After=wpa_supplicant@..service | ||
+ | </ | ||
+ | |||
+ | The systemd daemon will be automatically reloaded, se we can reboot. | ||
===== Web References ===== | ===== Web References ===== | ||
* [[https:// | * [[https:// |
doc/appunti/hardware/raspberrypi_wpa_supplicant_problem.1731679570.txt.gz · Last modified: 2024/11/15 15:06 by niccolo