hostapd: allow using iapp for any encryption type (fixes #18022)