added scan_ssid and key_mgmt to wpa supplicant

This commit is contained in:
Justin 2023-01-11 15:37:33 +08:00 committed by GitHub
parent 2ca525337c
commit 6ba7dcb836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,6 +534,8 @@ def edit_wpa_sup(country, ssid, pwd):
wpa_lines.append('network={\n')
wpa_lines.append('\tssid="{}"\n'.format(ssid))
wpa_lines.append('\tpsk="{}"\n'.format(pwd))
wpa_lines.append('\tscan_ssid=1\n')
wpa_lines.append('\tkey_mgmt=WPA-PSK\n')
wpa_lines.append('}\n')
wpa_string = ''.join(wpa_lines)