mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Issue connect immediately if system is in required hw mode
Issue the connect command immediately when the system is already in the required hw mode. Currently the connect command is issued immediately only when the concurrent connection update succeeds, i.e., only when a set hw mode succeeds. But, when the driver is already in the required hw mode, the return value would not be success and the connect command is not getting issued immediately. Fixed this by checking the return value which indicates that the driver is already in the required hw mode, and issuing the connect command immediately. Change-Id: I1ef2adf4d92953f47d36bdae41a9d7d8d559a203 CRs-Fixed: 936268
This commit is contained in:
parent
bee32255a3
commit
af1f78ce9c
1 changed files with 6 additions and 2 deletions
|
|
@ -4038,14 +4038,18 @@ error:
|
|||
cdf_mem_free(mac_ctx->sme.saved_scan_cmd);
|
||||
mac_ctx->sme.saved_scan_cmd = NULL;
|
||||
}
|
||||
} else if (CDF_STATUS_E_NOSUPPORT == ret) {
|
||||
sms_log(mac_ctx, LOGE, FL("conn update not supported"));
|
||||
} else if ((CDF_STATUS_E_NOSUPPORT == ret) ||
|
||||
(CDF_STATUS_E_ALREADY == ret)) {
|
||||
sms_log(mac_ctx, LOGE, FL("conn update ret %d"), ret);
|
||||
csr_scan_handle_search_for_ssid(mac_ctx, pCommand);
|
||||
if (mac_ctx->sme.saved_scan_cmd) {
|
||||
cdf_mem_free(mac_ctx->sme.saved_scan_cmd);
|
||||
mac_ctx->sme.saved_scan_cmd = NULL;
|
||||
}
|
||||
}
|
||||
/* Else: Set hw mode was issued and the saved connect would
|
||||
* be issued after set hw mode response
|
||||
*/
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue