• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @addtogroup wifiservice
18  * @{
19  *
20  * @brief Provides functions for the Wi-Fi station and hotspot modes.
21  *
22  * You can use this module to enable and disable the Wi-Fi station or hotspot mode, connect to and disconnect from a
23  * station or hotspot, query the station or hotspot status, and listen for events. \n
24  *
25  * @since 7
26  */
27 
28 /**
29  * @file wifi_error_code.h
30  *
31  * @brief Defines error codes of the Wi-Fi service.
32  *
33  * @since 7
34  */
35 
36 #ifndef WIFI_ERROR_CODE_C_H
37 #define WIFI_ERROR_CODE_C_H
38 
39 /**
40  * @brief Enumerates Wi-Fi error codes.
41  *
42  * @since 7
43  */
44 typedef enum {
45     /** No errors. */
46     WIFI_SUCCESS = 0,
47     /** Invalid parameters */
48     ERROR_WIFI_INVALID_ARGS = -1,
49     /** Invalid chip */
50     ERROR_WIFI_CHIP_INVALID = -2,
51     /** Invalid Wi-Fi interface */
52     ERROR_WIFI_IFACE_INVALID = -3,
53     /** Invalid RTT controller */
54     ERROR_WIFI_RTT_CONTROLLER_INVALID = -4,
55     /** Wi-Fi not supported by the current version or device */
56     ERROR_WIFI_NOT_SUPPORTED = -5,
57     /** Wi-Fi unavailable */
58     ERROR_WIFI_NOT_AVAILABLE = -6,
59     /** Wi-Fi not initialized or started */
60     ERROR_WIFI_NOT_STARTED = -7,
61     /** System busy */
62     ERROR_WIFI_BUSY = -8,
63     /** Wi-Fi invalid password */
64     ERROR_WIFI_INVALID_PASSWORD = -9,
65     /** Unknown error */
66     ERROR_WIFI_UNKNOWN = -128
67 } WifiErrorCode;
68 
69 #endif // WIFI_ERROR_CODE_C_H
70 /** @} */