Fix UAP discovery - problem with setting flags on piconets