[th/supplicant-security-from-vardict] wifi: refactor parsing secrutiy flags of supplicant in security_from_vardict()

Thomas Haller requested to merge th/supplicant-security-from-vardict into main

I think if-else is easier to read. It also makes it clear that the options are really exclusive, and for each option only one flag is set. That was not easy to see previously.

Merge request reports