modify waiting flags & wireless setting