1 /* 2 * Copyright (c) 2012-2014,2016-2017,2019, 2021 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #ifndef WLAN_HDD_MISC_H 20 #define WLAN_HDD_MISC_H 21 /* 22 * To prevent name conflicts when loading different instances of the driver: 23 * 24 * If DYNAMIC_SINGLE_CHIP is defined, which means there are multiple possible 25 * drivers, but only one instance of driver at a time(WLAN dynamic detect), 26 * prepend DYNAMIC_SINGLE_CHIP to the filenames. 27 * 28 * Otherwise, if MULTI_IF_NAME is defined, which means there are multiple 29 * instances of the driver with different module names, prepend MULTI_IF_NAME 30 * to the filenames. 31 */ 32 #ifdef DYNAMIC_SINGLE_CHIP 33 #define PREFIX DYNAMIC_SINGLE_CHIP "/" 34 #else 35 36 #ifdef MULTI_IF_NAME 37 #define PREFIX MULTI_IF_NAME "/" 38 #else 39 #define PREFIX "" 40 #endif 41 42 #endif 43 44 #ifdef MSM_PLATFORM 45 #define WLAN_INI_FILE "wlan/qca_cld/" PREFIX "WCNSS_qcom_cfg.ini" 46 #define WLAN_MAC_FILE "wlan/qca_cld/" PREFIX "wlan_mac.bin" 47 #else 48 #define WLAN_INI_FILE "wlan/" PREFIX "qcom_cfg.ini" 49 #define WLAN_MAC_FILE "wlan/" PREFIX "wlan_mac.bin" 50 #endif /* MSM_PLATFORM */ 51 52 #define WLAN_CONNECTION_ROAMING_INI_FILE "wlan-connection-roaming.ini" 53 #define WLAN_CONNECTION_ROAMING_BACKUP_INI_FILE "wlan-connection-roaming-backup.ini" 54 55 #endif /* WLAN_HDD_MISC_H */ 56