blob: 7f557e0127f445ff443ccb0d0fd371f2691cefaa [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
20#include <android/hardware/wifi/1.0/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 {
Roshan Pius79a99752016-10-04 13:03:58 -070027namespace V1_0 {
28namespace implementation {
Roshan Pius3c4e8a32016-10-03 14:53:58 -070029
Roshan Piusa4854ff2016-12-01 13:47:41 -080030std::string legacyErrorToString(legacy_hal::wifi_error error);
Roshan Pius19224822016-10-11 08:21:46 -070031WifiStatus createWifiStatus(WifiStatusCode code,
32 const std::string& description);
33WifiStatus 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
39} // namespace V1_0
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_