madwifi: only start hostapd when necessary