qcacld-3.0: Do not update the bearer switch state in case of reject
In case host receive a bearer state switch request to non-WLAN which is initiated by other modules, it moves the state to non-WLAN without checking the status of the request. If request was not accepted, then there is no need to change the bearer state to non-WLAN. Change-Id: I13f59fedab1d7de92a1c417f87cc9c94f726a8b8 CRs-Fixed: 4166198
This commit is contained in:
committed by
Ravindra Konda
parent
2d00c68611
commit
a4bcdfd7d7
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2023-2025 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -2119,10 +2119,14 @@ static void ll_lt_sap_deliver_non_wlan_audio_transport_switch_resp(
|
||||
* If there is no cached request in BS_SM, it means that some other
|
||||
* module has performed the bearer switch and it is not a response of
|
||||
* the wlan bearer switch request, so just update the current state of
|
||||
* the state machine
|
||||
* the state machine, in case status is completed, return if status is
|
||||
* not completed.
|
||||
*/
|
||||
ll_sap_debug("Bearer switch for non-wlan module's request");
|
||||
|
||||
if (status != WLAN_BS_STATUS_COMPLETED) {
|
||||
ll_sap_debug("Vdev %d, Bearer switch to non-WLAN by other module failed %d",
|
||||
wlan_vdev_get_id(vdev), status);
|
||||
return;
|
||||
}
|
||||
bs_sm_transition_to(bs_ctx, BEARER_NON_WLAN);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user