wpa_supplicant - bunnyamin/bunnix GitHub Wiki
-
If a network is hidden and the interface has to automatically connect to it then the section
network
must havescan_ssid=1
.
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`.
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. |
||
Connected to AP | No Internet access | The problem may be that no DHCP server is not assigned or the firewall is blocking connections | If DHCP and firewall are correctly configured, the problem can resolve by itself. For example, wait a couple of hours and, or restart server, computer a couple of times. |
Try stop, hangs, then force reboot PC, after which it works... Cache, emptying?
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
}
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
Possible cause: low power