blob: 778944dd9249fdc0e03ecb58de4fe896d0752f8a [file] [log] [blame]
Roshan Pius200a17d2017-11-01 13:03:35 -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
17#include "wifi_feature_flags.h"
18
19namespace {
20#ifdef WIFI_HIDL_FEATURE_AWARE
21static const bool wifiHidlFeatureAware = true;
22#else
23static const bool wifiHidlFeatureAware = false;
24#endif // WIFI_HIDL_FEATURE_AWARE
Roshan Piuscc338202017-11-02 13:54:09 -070025#ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
26static const bool wifiHidlFeatureDualInterface = true;
27#else
28static const bool wifiHidlFeatureDualInterface = false;
29#endif // WIFI_HIDL_FEATURE_DUAL_INTERFACE
Nickc52e8082018-05-02 13:54:28 -070030#ifdef WIFI_HIDL_FEATURE_DISABLE_AP
31static const bool wifiHidlFeatureDisableAp = true;
32#else
33static const bool wifiHidlFeatureDisableAp = false;
34#endif // WIFI_HIDL_FEATURE_DISABLE_AP
35
Roshan Pius200a17d2017-11-01 13:03:35 -070036} // namespace
37
38namespace android {
39namespace hardware {
40namespace wifi {
41namespace V1_2 {
42namespace implementation {
43namespace feature_flags {
44
45WifiFeatureFlags::WifiFeatureFlags() {}
46bool WifiFeatureFlags::isAwareSupported() { return wifiHidlFeatureAware; }
Roshan Piuscc338202017-11-02 13:54:09 -070047bool WifiFeatureFlags::isDualInterfaceSupported() {
48 return wifiHidlFeatureDualInterface;
49}
Nickc52e8082018-05-02 13:54:28 -070050bool WifiFeatureFlags::isApDisabled() {
51 return wifiHidlFeatureDisableAp;
52}
Roshan Pius200a17d2017-11-01 13:03:35 -070053
54} // namespace feature_flags
55} // namespace implementation
56} // namespace V1_2
57} // namespace wifi
58} // namespace hardware
59} // namespace android