Files
tldr/pages.zh/linux/wpa_cli.md

28 lines
410 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# wpa_cli
> 添加和配置 wlan 接口。
> 更多信息:<https://manned.org/wpa_cli>。
- 扫描可用网络:
`wpa_cli scan`
- 显示扫描结果:
`wpa_cli scan_results`
- 添加网络:
`wpa_cli add_network {{number}}`
- 设置网络的 SSID
`wpa_cli set_network {{number}} ssid "{{SSID}}"`
- 启用网络:
`wpa_cli enable_network {{number}}`
- 保存配置:
`wpa_cli save_config`