blob: ea1c29486be2f0c940875ead38321be1ac58dc9e [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 {
Ahmed ElArabawy687ce132022-01-11 16:42:48 -080027namespace V1_6 {
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);
Ahmed ElArabawy687ce132022-01-11 16:42:48 -080032WifiStatus createWifiStatus(WifiStatusCode code, const std::string& description);
Roshan Pius19224822016-10-11 08:21:46 -070033WifiStatus createWifiStatus(WifiStatusCode code);
Roshan Piusa4854ff2016-12-01 13:47:41 -080034WifiStatus createWifiStatusFromLegacyError(legacy_hal::wifi_error error,
Roshan Pius19224822016-10-11 08:21:46 -070035 const std::string& description);
Roshan Piusa4854ff2016-12-01 13:47:41 -080036WifiStatus createWifiStatusFromLegacyError(legacy_hal::wifi_error error);
Roshan Pius3c4e8a32016-10-03 14:53:58 -070037
Roshan Pius79a99752016-10-04 13:03:58 -070038} // namespace implementation
Ahmed ElArabawy687ce132022-01-11 16:42:48 -080039} // namespace V1_6
Roshan Pius3c4e8a32016-10-03 14:53:58 -070040} // namespace wifi
41} // namespace hardware
42} // namespace android
43
Roshan Pius19224822016-10-11 08:21:46 -070044#endif // WIFI_STATUS_UTIL_H_