scan flags -> wpa_flags.