wpa_supplicant - bunnyamin/bunnix GitHub Wiki

Configuration

  • SystemD

  • If a network is hidden and the interface has to automatically connect to it then the section network must have scan_ssid=1.

Note

Observed in Zsh. If password contains \x or $x then wpa_passphrase will interpret \x as escaped and $x as a variable and print its value. Escape all special characters, that is, \\x and $x`.

CLI

wpa_supplicant -B -D nl80211,wext -i <device> -c <(wpa_passphrase "SSID" "key")

  • -B run daemon in the background
  • -D driver name (can be multiple drivers: nl80211,wext)
  • -i interface name
  • -c configuration file
Event Error Cause Remedy
Failed to connect to non-global ctrl_ifname: wlp0s0 error: No such file or directory Add ctrl_interface=/var/run/wpa_supplicant in the beginning of the /etc/wpa_supplicant/default.conf.

AP

WPA supplicant can serve as an access point.

#ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ctrl_interface=/run/wpa_supplicant

# Enable changes from wpa_cli, wpa_gui.
update_config=0

country=US
network={
  ssid="testAP"
  mode=2
  key_mgmt=WPA-PSK
  psk="test123456789"
  frequency=5765
}

Debug, error, troubleshooting

Low power

Possible cause: low power

wlp0s0_ap: EAPOL-4WAY-HS-COMPLETED a1:b2:c3:d4:e5:f6
wlp0s0_ap: AP-STA-DISCONNECTED a1:b2:c3:d4:e5:f6
wlp0s0_ap: AP-STA-CONNECTED a1:b2:c3:d4:e5:f6
wlp0s0_ap: EAPOL-4WAY-HS-COMPLETED a1:b2:c3:d4:e5:f6
wlp0s0_ap: AP-STA-DISCONNECTED a1:b2:c3:d4:e5:f6
wlp0s0_ap: AP-STA-CONNECTED a1:b2:c3:d4:e5:f6
wlp0s0_ap: EAPOL-4WAY-HS-COMPLETED a1:b2:c3:d4:e5:f6
wlp0s0_ap: AP-STA-DISCONNECTED a1:b2:c3:d4:e5:f6
wlp0s0_ap: AP-STA-CONNECTED a1:b2:c3:d4:e5:f6
wlp0s0_ap: EAPOL-4WAY-HS-COMPLETED a1:b2:c3:d4:e5:f6
⚠️ **GitHub.com Fallback** ⚠️