1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-09-13 18:41:35 +02:00
Files
wiki/wiki/linux/wpa_supplicant.md
tiyn c03daea525 Corrected various typographic errors
- substituted en-dash for hyphen where needed
- renamed files to avoid confusion due to identical name
- added links
- fixed capitalization
- fixed line breaks
2026-07-02 09:12:29 +02:00

1.3 KiB
Raw Blame History

WPA Supplicant

wpa_supplicant is a free implementation of an IEEE 802.11i supplicant. It is especially interesting due to its WPA2 and WPA3 capabilities in contrast to other networking software. It is used to set up Wi-Fi.

Usage

Connect to a WPA2 secured WLAN

This part assumes that your network interface is called wlan0 (change it accordingly).

  • First make sure that your network interface is up.
  • Save the authentication details to a file by running wpa_passphrase <SSID> >> /etc/wpa_supplicant.conf
  • Connect to the WLAN by running wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf (-B is optional for running the process in the background)

Troubleshooting

This section focusses on the troubleshooting of situations where the system does not connect correctly.

Restarting WPA Supplicant

Most of the problems regarding WPA Supplicant can be fixed by restarting the systemd service with the following command.

systemctl restart wpa_supplicant

Afterward if the error still persists it may be useful to reenable the Wi-Fi device as explained in the section of the NetworkManager entry.