Pending intent and wifi handling