Home | History | Annotate | Download | only in 1.0
      1 /*
      2  * Copyright 2017 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 
     17 package android.hardware.wifi.hostapd@1.0;
     18 /**
     19  * Enum values indicating the status of any hostapd operation.
     20  */
     21 enum HostapdStatusCode : uint32_t {
     22   /** No errors. */
     23   SUCCESS,
     24   /** Unknown failure occured. */
     25   FAILURE_UNKNOWN,
     26   /** One or more of the incoming args is invalid. */
     27   FAILURE_ARGS_INVALID,
     28   /** Iface with the provided name does not exist. */
     29   FAILURE_IFACE_UNKNOWN,
     30   /** Iface with the provided name already exists. */
     31   FAILURE_IFACE_EXISTS
     32 };
     33 
     34 /**
     35  * Generic structure to return the status of any hostapd operation.
     36  */
     37 struct HostapdStatus {
     38   HostapdStatusCode code;
     39   /**
     40    * A vendor-specific error message to provide more information beyond the
     41    * status code.
     42    * This must be used for debugging purposes only.
     43    */
     44   string debugMessage;
     45 };
     46