2014-03-09 17:49:01 +00:00
|
|
|
# wpa_cli
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Add and configure wlan interfaces.
|
2022-03-21 17:07:48 +00:00
|
|
|
> More information: <https://manned.org/wpa_cli>.
|
2014-03-09 17:49:01 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Scan for available networks:
|
2014-03-09 17:49:01 +00:00
|
|
|
|
|
|
|
`wpa_cli scan`
|
2016-01-24 15:58:52 +00:00
|
|
|
|
|
|
|
- Show scan results:
|
|
|
|
|
2014-03-09 17:49:01 +00:00
|
|
|
`wpa_cli scan_results`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Add a network:
|
2014-03-09 17:49:01 +00:00
|
|
|
|
|
|
|
`wpa_cli add_network {{number}}`
|
|
|
|
|
2016-01-24 15:58:52 +00:00
|
|
|
- Set a network's SSID:
|
2014-03-09 17:49:01 +00:00
|
|
|
|
2016-01-24 15:58:52 +00:00
|
|
|
`wpa_cli set_network {{number}} ssid "{{SSID}}"`
|
2014-03-09 17:49:01 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Enable network:
|
2014-03-09 17:49:01 +00:00
|
|
|
|
|
|
|
`wpa_cli enable_network {{number}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Save config:
|
2014-03-09 17:49:01 +00:00
|
|
|
|
|
|
|
`wpa_cli save_config`
|