networking: fix setting activation/deactivation without device specified