Fix wlan wakeup both edge trigger may enter infinite loop issue.