* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_WIFI_ERRCODE_H
#define OHOS_WIFI_ERRCODE_H
namespace OHOS::Plugin {
enum ErrCode {
WIFI_OPT_SUCCESS = 0,
WIFI_OPT_FAILED,
WIFI_OPT_NOT_SUPPORTED,
WIFI_OPT_INVALID_PARAM,
WIFI_OPT_FORBID_AIRPLANE,
WIFI_OPT_FORBID_POWSAVING,
WIFI_OPT_PERMISSION_DENIED,
WIFI_OPT_OPEN_FAIL_WHEN_CLOSING,
WIFI_OPT_OPEN_SUCC_WHEN_OPENED,
WIFI_OPT_CLOSE_FAIL_WHEN_OPENING,
WIFI_OPT_CLOSE_SUCC_WHEN_CLOSED,
WIFI_OPT_STA_NOT_OPENED,
WIFI_OPT_SCAN_NOT_OPENED,
WIFI_OPT_AP_NOT_OPENED,
WIFI_OPT_INVALID_CONFIG,
WIFI_OPT_P2P_NOT_OPENED,
WIFI_OPT_P2P_MAC_NOT_FOUND,
WIFI_OPT_P2P_ERR_MAC_FORMAT,
WIFI_OPT_P2P_ERR_INTENT,
WIFI_OPT_P2P_ERR_SIZE_NW_NAME,
WIFI_OPT_MOVING_FREEZE_CTRL,
WIFI_OPT_NON_SYSTEMAPP,
WIFI_OPT_ENTERPRISE_DENIED = 203,
};
}
#endif