[th/supplicant-security-from-vardict] wifi: refactor parsing secrutiy flags of supplicant in security_from_vardict()
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.