1 /* 2 * Copyright (C) 2024 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.system.wifi.mainline_supplicant; 18 19 /** 20 * Enum values indicating the status of any supplicant operation. 21 */ 22 enum SupplicantStatusCode { 23 /** 24 * No errors. 25 */ 26 SUCCESS = 0, 27 /** 28 * Unknown failure occurred. 29 */ 30 FAILURE_UNKNOWN = 1, 31 /** 32 * One of the provided arguments is invalid. 33 */ 34 FAILURE_ARGS_INVALID = 2, 35 /** 36 * Interface with the provided name already exists. 37 */ 38 FAILURE_IFACE_EXISTS = 3, 39 /** 40 * Interface with the provided name does not exist. 41 */ 42 FAILURE_IFACE_UNKNOWN = 4, 43 /** 44 * Operation is not supported by the service. 45 */ 46 FAILURE_UNSUPPORTED = 5, 47 } 48