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:

committed by
Prakash Dhavali

parent
e3e4944153
commit
78b98265b1
@@ -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;
|
||||
|
Reference in New Issue
Block a user