mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
cnss2: Assert if unexpected second QMI server arrive comes
Only one QMI server arrive should come for WLFW service. Hence only assert if unexpected second server arrive comes for debug purpose. Change-Id: Ib8cf80a544038904685a3d3a054fc7f3189a4a30 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
a6ae9f824c
commit
8420494178
1 changed files with 6 additions and 0 deletions
|
|
@ -2229,6 +2229,12 @@ int cnss_wlfw_server_arrive(struct cnss_plat_data *plat_priv, void *data)
|
|||
if (!plat_priv)
|
||||
return -ENODEV;
|
||||
|
||||
if (test_bit(CNSS_QMI_WLFW_CONNECTED, &plat_priv->driver_state)) {
|
||||
cnss_pr_err("Unexpected WLFW server arrive\n");
|
||||
CNSS_ASSERT(0);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = cnss_wlfw_connect_to_server(plat_priv, data);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue