Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

Commit

Permalink
qcacld-3.0: Fallback to default WCNSS config path for custom ROMs
Browse files Browse the repository at this point in the history
Subsequent to a61187 ("qcacld-3.0: Update WCNSS config path for OxygenOS")

Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
  • Loading branch information
0ctobot committed Apr 14, 2021
1 parent b202c14 commit 7c5b94b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/qcacld-3.0/core/hdd/inc/wlan_hdd_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

#ifdef MSM_PLATFORM
#define WLAN_INI_FILE "wlan/qca_cld/qca6390/" PREFIX "WCNSS_qcom_cfg.ini"
#define WLAN_INI_FILE_DEFAULT "wlan/qca_cld/" PREFIX "WCNSS_qcom_cfg.ini"
#define WLAN_MAC_FILE "wlan/qca_cld/" PREFIX "wlan_mac.bin"
#else
#define WLAN_INI_FILE "wlan/" PREFIX "qcom_cfg.ini"
Expand Down
5 changes: 5 additions & 0 deletions drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11650,13 +11650,18 @@ struct hdd_context *hdd_context_create(struct device *dev)
}

status = cfg_parse(WLAN_INI_FILE);
if (!QDF_IS_STATUS_ERROR(status))
goto cfg_exit;

status = cfg_parse(WLAN_INI_FILE_DEFAULT);
if (QDF_IS_STATUS_ERROR(status)) {
hdd_err("Failed to parse cfg %s; status:%d\n",
WLAN_INI_FILE, status);
ret = qdf_status_to_os_return(status);
goto err_free_config;
}

cfg_exit:
ret = hdd_objmgr_create_and_store_psoc(hdd_ctx, DEFAULT_PSOC_ID);
if (ret) {
QDF_DEBUG_PANIC("Psoc creation fails!");
Expand Down

0 comments on commit 7c5b94b

Please sign in to comment.