wifi: mwifiex: Fix premature release of RF calibration data.
This patch resolves an issue where RF calibration data was being
released before the download process. Without this fix, the
external calibration data file would not be downloaded
at all.
Fixes: d39fbc8895 ("mwifiex: remove cfg_data construction")
Signed-off-by: Jeff Chen <jeff.chen_1@nxp.com>
Link: https://patch.msgid.link/20250318050739.2239376-2-jeff.chen_1@nxp.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -691,10 +691,6 @@ err_dnld_fw:
|
||||
|
||||
init_failed = true;
|
||||
done:
|
||||
if (adapter->cal_data) {
|
||||
release_firmware(adapter->cal_data);
|
||||
adapter->cal_data = NULL;
|
||||
}
|
||||
if (adapter->firmware) {
|
||||
release_firmware(adapter->firmware);
|
||||
adapter->firmware = NULL;
|
||||
|
||||
@@ -2293,9 +2293,13 @@ int mwifiex_sta_init_cmd(struct mwifiex_private *priv, u8 first_sta, bool init)
|
||||
"marvell,caldata");
|
||||
}
|
||||
|
||||
if (adapter->cal_data)
|
||||
if (adapter->cal_data) {
|
||||
mwifiex_send_cmd(priv, HostCmd_CMD_CFG_DATA,
|
||||
HostCmd_ACT_GEN_SET, 0, NULL, true);
|
||||
release_firmware(adapter->cal_data);
|
||||
adapter->cal_data = NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Read MAC address from HW */
|
||||
ret = mwifiex_send_cmd(priv, HostCmd_CMD_GET_HW_SPEC,
|
||||
|
||||
Reference in New Issue
Block a user