Say I have connected with wpa_cli
to a network mynetwork
:
# wpa_cli
>add_network
>set_network 0 ssid "mynetwork"
>set_network 0 psk "SupahSecretPassphrase"
>enable_network 0
>reconnect
How to export this network to a wpa_supplicant configuration file, that is a file containing:
network={
ssid="mynetwork"
psk="SupahSecretPassphrase"
}
If there is no standard way, I guess I would have to recall ~/.wpa_cli_history
PS:
I tried save_config
but I always have a FAIL result:
> save_config
FAIL