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 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 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 36 } // namespace 37 38 namespace android { 39 namespace hardware { 40 namespace wifi { 41 namespace V1_2 { 42 namespace implementation { 43 namespace feature_flags { 44 WifiFeatureFlags()45WifiFeatureFlags::WifiFeatureFlags() {} isAwareSupported()46bool WifiFeatureFlags::isAwareSupported() { return wifiHidlFeatureAware; } isDualInterfaceSupported()47bool WifiFeatureFlags::isDualInterfaceSupported() { 48 return wifiHidlFeatureDualInterface; 49 } isApDisabled()50bool WifiFeatureFlags::isApDisabled() { 51 return wifiHidlFeatureDisableAp; 52 } 53 54 } // namespace feature_flags 55 } // namespace implementation 56 } // namespace V1_2 57 } // namespace wifi 58 } // namespace hardware 59 } // namespace android 60