mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "cnss2: Assert if unexpected second QMI server arrive comes"
This commit is contained in:
commit
a0f82a4ca9
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