02-18-2023, 09:53 PM
(02-18-2023, 08:41 PM)Tim Curtis Wrote: You mean add the two lines below to the network block?
key_mgmt=WPA-PSK WPA-PSK-SHA256
ieee80211w=1
And then user no longer has to choose a security protocol?
Assume the "No security" option is removed.
That would be nice :-)
Those 2 lines should handle most of the security protocols (except WPA3-SAE) so the user doesn't need to chose from a dropdown.
Then you would need to provide a way for the user to use no security, like a checkbox, but I think this also shouldn't be needed if you put NONE as a last fallback in wpa_supplicant. So in theory what they fill in for the Password wouldn't matter, if they actually don't use any security then it will try and fail the security options and eventually end up on NONE anyways and connect successfully to No security. (I haven't tested this scenario yet but I don't see why it wouldn't work)
Code:
key_mgmt=WPA-PSK WPA-PSK-SHA256 NONE
ieee80211w=1
The only disadvantage that I see is that it won't be as clear to the user when they are connecting to an unsecure network, so probably this needs to be explained somehow in the UI.