icnss: Enable FW rejuvenate feature by default
Enable FW rejuvenate feature so that WLAN FW can rejuvenate by default without changing the configuration from debugfs. CRs-Fixed: 2000561 Change-Id: Ic9b0524311c08bf3b99f43881054c23967734e5c Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
This commit is contained in:
parent
42e1251b38
commit
9dc3bd2212
1 changed files with 3 additions and 2 deletions
|
@ -146,7 +146,8 @@ enum icnss_debug_quirks {
|
||||||
FW_REJUVENATE_ENABLE,
|
FW_REJUVENATE_ENABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ICNSS_QUIRKS_DEFAULT BIT(VBATT_DISABLE)
|
#define ICNSS_QUIRKS_DEFAULT (BIT(VBATT_DISABLE) | \
|
||||||
|
BIT(FW_REJUVENATE_ENABLE))
|
||||||
|
|
||||||
unsigned long quirks = ICNSS_QUIRKS_DEFAULT;
|
unsigned long quirks = ICNSS_QUIRKS_DEFAULT;
|
||||||
module_param(quirks, ulong, 0600);
|
module_param(quirks, ulong, 0600);
|
||||||
|
@ -1469,7 +1470,7 @@ static int wlfw_dynamic_feature_mask_send_sync_msg(struct icnss_priv *priv,
|
||||||
|
|
||||||
if (!test_bit(FW_REJUVENATE_ENABLE, &quirks)) {
|
if (!test_bit(FW_REJUVENATE_ENABLE, &quirks)) {
|
||||||
icnss_pr_dbg("FW rejuvenate is disabled from quirks\n");
|
icnss_pr_dbg("FW rejuvenate is disabled from quirks\n");
|
||||||
dynamic_feature_mask &= ~QMI_WLFW_FW_REJUVENATE_V01;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
icnss_pr_dbg("Sending dynamic feature mask request, val 0x%llx, state: 0x%lx\n",
|
icnss_pr_dbg("Sending dynamic feature mask request, val 0x%llx, state: 0x%lx\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue