Use a shared helper function for parsing hostapd.conf IEs