1# 2# Copyright (C) 2022 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# ############################################################### 18# This file adds WIFI variables into soong config namespace (`wifi`) 19# ############################################################### 20 21ifdef BOARD_WLAN_DEVICE 22 $(call soong_config_set,wifi,board_wlan_device,$(BOARD_WLAN_DEVICE)) 23endif 24ifdef WIFI_DRIVER_MODULE_PATH 25 $(call soong_config_set,wifi,driver_module_path,$(WIFI_DRIVER_MODULE_PATH)) 26endif 27ifdef WIFI_DRIVER_MODULE_ARG 28 $(call soong_config_set,wifi,driver_module_arg,$(WIFI_DRIVER_MODULE_ARG)) 29endif 30ifdef WIFI_DRIVER_MODULE_NAME 31 $(call soong_config_set,wifi,driver_module_name,$(WIFI_DRIVER_MODULE_NAME)) 32endif 33ifdef WIFI_DRIVER_FW_PATH_STA 34 $(call soong_config_set,wifi,driver_fw_path_sta,$(WIFI_DRIVER_FW_PATH_STA)) 35endif 36ifdef WIFI_DRIVER_FW_PATH_AP 37 $(call soong_config_set,wifi,driver_fw_path_ap,$(WIFI_DRIVER_FW_PATH_AP)) 38endif 39ifdef WIFI_DRIVER_FW_PATH_P2P 40 $(call soong_config_set,wifi,driver_fw_path_p2p,$(WIFI_DRIVER_FW_PATH_P2P)) 41endif 42ifdef WIFI_DRIVER_FW_PATH_PARAM 43 $(call soong_config_set,wifi,driver_fw_path_param,$(WIFI_DRIVER_FW_PATH_PARAM)) 44endif 45ifdef WIFI_DRIVER_STATE_CTRL_PARAM 46 $(call soong_config_set,wifi,driver_state_ctrl_param,$(WIFI_DRIVER_STATE_CTRL_PARAM)) 47endif 48ifdef WIFI_DRIVER_STATE_ON 49 $(call soong_config_set,wifi,driver_state_on,$(WIFI_DRIVER_STATE_ON)) 50endif 51ifdef WIFI_DRIVER_STATE_OFF 52 $(call soong_config_set,wifi,driver_state_off,$(WIFI_DRIVER_STATE_OFF)) 53endif 54ifdef WIFI_MULTIPLE_VENDOR_HALS 55 $(call soong_config_set,wifi,multiple_vendor_hals,$(WIFI_MULTIPLE_VENDOR_HALS)) 56endif 57ifneq ($(wildcard vendor/google/libraries/GoogleWifiConfigLib),) 58 $(call soong_config_set,wifi,google_wifi_config_lib,true) 59endif 60ifdef WIFI_HAL_INTERFACE_COMBINATIONS 61 $(call soong_config_set,wifi,hal_interface_combinations,$(WIFI_HAL_INTERFACE_COMBINATIONS)) 62endif 63ifdef WIFI_HIDL_FEATURE_AWARE 64 $(call soong_config_set,wifi,hidl_feature_aware,true) 65endif 66ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE 67 $(call soong_config_set,wifi,hidl_feature_dual_interface,true) 68endif 69ifdef WIFI_HIDL_FEATURE_DISABLE_AP 70 $(call soong_config_set,wifi,hidl_feature_disable_ap,true) 71endif 72ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION 73 $(call soong_config_set,wifi,hidl_feature_disable_ap_mac_randomization,true) 74endif 75ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE 76 $(call soong_config_set,wifi,avoid_iface_reset_mac_change,true) 77endif 78ifdef WIFI_SKIP_STATE_TOGGLE_OFF_ON_FOR_NAN 79 $(call soong_config_set,wifi,wifi_skip_state_toggle_off_on_for_nan,true) 80endif 81ifeq ($(strip $(TARGET_USES_AOSP_FOR_WLAN)),true) 82 $(call soong_config_set,wifi,target_uses_aosp_for_wlan,true) 83endif