sweep2wake: add missing code