cnss2: Do not load board data file if bdf_bypass is enabled
Send dummy board data file to firmware if bdf_bypass is enabled, no matter the real file is present or not. Change-Id: I042d0ce7190fa56f362baf99c5847edf50419377 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
cd536e63e3
commit
e84e34c011
1 changed files with 8 additions and 8 deletions
|
@ -514,17 +514,17 @@ int cnss_wlfw_bdf_dnld_send_sync(struct cnss_plat_data *plat_priv)
|
|||
BDF_FILE_NAME_PREFIX "%02x",
|
||||
plat_priv->board_info.board_id);
|
||||
|
||||
ret = request_firmware(&fw_entry, filename, &plat_priv->plat_dev->dev);
|
||||
if (ret) {
|
||||
cnss_pr_err("Failed to load BDF: %s\n", filename);
|
||||
if (bdf_bypass) {
|
||||
cnss_pr_info("bdf_bypass is enabled, sending dummy BDF\n");
|
||||
temp = filename;
|
||||
remaining = MAX_BDF_FILE_NAME;
|
||||
goto bypass_bdf;
|
||||
} else {
|
||||
goto err_req_fw;
|
||||
}
|
||||
|
||||
ret = request_firmware(&fw_entry, filename, &plat_priv->plat_dev->dev);
|
||||
if (ret) {
|
||||
cnss_pr_err("Failed to load BDF: %s\n", filename);
|
||||
goto err_req_fw;
|
||||
}
|
||||
|
||||
temp = fw_entry->data;
|
||||
|
|
Loading…
Add table
Reference in a new issue