mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
cnss2: Check for FW / IMS status for WFC QMI messages
Drop WFC QMI indications from FW / IMS based on corresponding connection status withs platform driver. Change-Id: Ifa5877e551503e371750cbc7fdf958cc975725dd Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
This commit is contained in:
parent
55d1e41a78
commit
604d4a0b01
1 changed files with 9 additions and 0 deletions
|
|
@ -1575,6 +1575,10 @@ static int cnss_wlfw_wfc_call_status_send_sync
|
|||
struct qmi_txn txn;
|
||||
int ret = 0;
|
||||
|
||||
if (!test_bit(CNSS_FW_READY, &plat_priv->driver_state)) {
|
||||
cnss_pr_err("Drop IMS WFC indication as FW not initialized\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
req = kzalloc(sizeof(*req), GFP_KERNEL);
|
||||
if (!req)
|
||||
return -ENOMEM;
|
||||
|
|
@ -2095,6 +2099,11 @@ static int cnss_ims_wfc_call_twt_cfg_send_sync
|
|||
struct qmi_txn txn;
|
||||
int ret = 0;
|
||||
|
||||
if (!test_bit(CNSS_IMS_CONNECTED, &plat_priv->driver_state)) {
|
||||
cnss_pr_err("Drop FW WFC indication as IMS QMI not connected\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
req = kzalloc(sizeof(*req), GFP_KERNEL);
|
||||
if (!req)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue