If someone tried to set the SSID to 13 NULL characters, i.e.,
<<0,0,0,0,0,0,0,0,0,0,0,0,0>>, the generated wpa_supplicant.conf
would have an Elixir term in it and wpa_supplicant would crash
repeatedly. This fixes this case and the general case where characters
need escaping to be put in the wpa_supplicant.conf.
I couldn't verify whether the nulls SSID actually works, but
wpa_supplicant doesn't crash.
If someone tried to set the SSID to 13 NULL characters, i.e.,
<<0,0,0,0,0,0,0,0,0,0,0,0,0>>
, the generatedwpa_supplicant.conf
would have an Elixir term in it andwpa_supplicant
would crash repeatedly. This fixes this case and the general case where characters need escaping to be put in thewpa_supplicant.conf
.I couldn't verify whether the nulls SSID actually works, but
wpa_supplicant
doesn't crash.