blob: 8d48c3628a23e7eea4556dcd38f65cc42e6451c3 [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 {
Jong Wook Kimda830c92018-07-23 15:29:38 -070041namespace V1_3 {
Roshan Pius200a17d2017-11-01 13:03:35 -070042namespace 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}
Jong Wook Kimda830c92018-07-23 15:29:38 -070050bool WifiFeatureFlags::isApDisabled() { return wifiHidlFeatureDisableAp; }
Roshan Pius200a17d2017-11-01 13:03:35 -070051
52} // namespace feature_flags
53} // namespace implementation
Jong Wook Kimda830c92018-07-23 15:29:38 -070054} // namespace V1_3
Roshan Pius200a17d2017-11-01 13:03:35 -070055} // namespace wifi
56} // namespace hardware
57} // namespace android