blob: 554d4d5f6da7f63f7e7982662c8b2b107bc476ac [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
Roshan Pius200a17d2017-11-01 13:03:35 -070030} // namespace
31
32namespace android {
33namespace hardware {
34namespace wifi {
35namespace V1_2 {
36namespace implementation {
37namespace feature_flags {
38
39WifiFeatureFlags::WifiFeatureFlags() {}
40bool WifiFeatureFlags::isAwareSupported() { return wifiHidlFeatureAware; }
Roshan Piuscc338202017-11-02 13:54:09 -070041bool WifiFeatureFlags::isDualInterfaceSupported() {
42 return wifiHidlFeatureDualInterface;
43}
Roshan Pius200a17d2017-11-01 13:03:35 -070044
45} // namespace feature_flags
46} // namespace implementation
47} // namespace V1_2
48} // namespace wifi
49} // namespace hardware
50} // namespace android