1/* 2 * Copyright 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package [email protected]; 18 19interface IWifiEventCallback { 20 /** 21 * Called in response to a call to start indicating that the operation 22 * completed. After this callback the HAL must be fully operational. 23 */ 24 oneway onStart(); 25 26 /** 27 * Called in response to a call to stop indicating that the operation 28 * completed. When this event is received all IWifiChip objects retrieved 29 * after the last call to start will be considered invalid. 30 */ 31 oneway onStop(); 32 33 /** 34 * Called when the Wi-Fi system failed in a way that caused it be disabled. 35 * Calling start again must restart Wi-Fi as if stop then start was called 36 * (full state reset). When this event is received all IWifiChip & IWifiIface 37 * objects retrieved after the last call to start will be considered invalid. 38 * 39 * @param status Failure reason code. 40 */ 41 oneway onFailure(WifiStatus status); 42}; 43