blob: 68f21689c5612e156b6da87f70468eeef9f5387c [file] [log] [blame]
Roshan Pius3c4e8a32016-10-03 14:53:58 -07001/*
2 * Copyright (C) 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
Roshan Pius19224822016-10-11 08:21:46 -070017#ifndef WIFI_STATUS_UTIL_H_
18#define WIFI_STATUS_UTIL_H_
Roshan Pius3c4e8a32016-10-03 14:53:58 -070019
Ahmed ElArabawyeeb53382019-10-10 20:18:31 -070020#include <android/hardware/wifi/1.4/IWifi.h>
Roshan Piusa4854ff2016-12-01 13:47:41 -080021
22#include "wifi_legacy_hal.h"
Roshan Pius3c4e8a32016-10-03 14:53:58 -070023
24namespace android {
25namespace hardware {
26namespace wifi {
Jimmy Chend460df32019-11-29 17:31:22 +020027namespace V1_5 {
Roshan Pius79a99752016-10-04 13:03:58 -070028namespace implementation {
Roshan Piusdbd83ef2017-06-20 12:05:40 -070029using namespace android::hardware::wifi::V1_0;
Roshan Pius3c4e8a32016-10-03 14:53:58 -070030
Roshan Piusa4854ff2016-12-01 13:47:41 -080031std::string legacyErrorToString(legacy_hal::wifi_error error);
Roshan Pius19224822016-10-11 08:21:46 -070032WifiStatus createWifiStatus(WifiStatusCode code,
33 const std::string& description);
34WifiStatus createWifiStatus(WifiStatusCode code);
Roshan Piusa4854ff2016-12-01 13:47:41 -080035WifiStatus createWifiStatusFromLegacyError(legacy_hal::wifi_error error,
Roshan Pius19224822016-10-11 08:21:46 -070036 const std::string& description);
Roshan Piusa4854ff2016-12-01 13:47:41 -080037WifiStatus createWifiStatusFromLegacyError(legacy_hal::wifi_error error);
Roshan Pius3c4e8a32016-10-03 14:53:58 -070038
Roshan Pius79a99752016-10-04 13:03:58 -070039} // namespace implementation
Jimmy Chend460df32019-11-29 17:31:22 +020040} // namespace V1_5
Roshan Pius3c4e8a32016-10-03 14:53:58 -070041} // namespace wifi
42} // namespace hardware
43} // namespace android
44
Roshan Pius19224822016-10-11 08:21:46 -070045#endif // WIFI_STATUS_UTIL_H_