Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | #include "wifi_feature_flags.h" |
| 18 | |
| 19 | namespace { |
| 20 | #ifdef WIFI_HIDL_FEATURE_AWARE |
| 21 | static const bool wifiHidlFeatureAware = true; |
| 22 | #else |
| 23 | static const bool wifiHidlFeatureAware = false; |
| 24 | #endif // WIFI_HIDL_FEATURE_AWARE |
Roshan Pius | cc33820 | 2017-11-02 13:54:09 -0700 | [diff] [blame] | 25 | #ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE |
| 26 | static const bool wifiHidlFeatureDualInterface = true; |
| 27 | #else |
| 28 | static const bool wifiHidlFeatureDualInterface = false; |
| 29 | #endif // WIFI_HIDL_FEATURE_DUAL_INTERFACE |
Nick | c52e808 | 2018-05-02 13:54:28 -0700 | [diff] [blame] | 30 | #ifdef WIFI_HIDL_FEATURE_DISABLE_AP |
| 31 | static const bool wifiHidlFeatureDisableAp = true; |
| 32 | #else |
| 33 | static const bool wifiHidlFeatureDisableAp = false; |
| 34 | #endif // WIFI_HIDL_FEATURE_DISABLE_AP |
| 35 | |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 36 | } // namespace |
| 37 | |
| 38 | namespace android { |
| 39 | namespace hardware { |
| 40 | namespace wifi { |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 41 | namespace V1_3 { |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 42 | namespace implementation { |
| 43 | namespace feature_flags { |
| 44 | |
| 45 | WifiFeatureFlags::WifiFeatureFlags() {} |
| 46 | bool WifiFeatureFlags::isAwareSupported() { return wifiHidlFeatureAware; } |
Roshan Pius | cc33820 | 2017-11-02 13:54:09 -0700 | [diff] [blame] | 47 | bool WifiFeatureFlags::isDualInterfaceSupported() { |
| 48 | return wifiHidlFeatureDualInterface; |
| 49 | } |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 50 | bool WifiFeatureFlags::isApDisabled() { return wifiHidlFeatureDisableAp; } |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 51 | |
| 52 | } // namespace feature_flags |
| 53 | } // namespace implementation |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 54 | } // namespace V1_3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 55 | } // namespace wifi |
| 56 | } // namespace hardware |
| 57 | } // namespace android |