On 02.03.2021 10:09, Per Jessen wrote:
Andrei Borzenkov wrote:
On 01.03.2021 22:17, Per Jessen wrote:
Background first - I am writing an interface for configuring wifi over a small 160x80 display and a numeric keypad only.
...
Andrei, you clearly know this stuff quite well - for my declared purpose above, is wpa_supplicant the way to go or do I have better options?
The purpose is rather vague really. If WEP is enough, you can simply associate using iw and be done with it. For WPA using standard Linux wireless drivers you need some external agent to perform authentication. wpa_supplicant was the only practical choice so far (some drivers may implement WPA internally, actually the first wireless driver I had to use did it, but I do not think any in-tree driver does it today). Recently iwd seems to gain popularity as alternative and it can even configure IP parameters. I think these are the only two implementations. Also "configuring wifi" may range from "confirming connection to known AP" (which certainly is possible using numerical pad) to "providing secrets and IP parameters when first seeing unknown AP" (which is rather questionable in this case).