mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Continue the driver load on set band failure
Currently driver does the pdev close on set band failure at the time of load which results in driver load failure. To avoid above issue, do not close pdev and continue the driver load smoothly. Change-Id: I0977336b57126b299bd40dd6c18d9009b52454dc CRs-Fixed: 2756716
This commit is contained in:
parent
b869fa0e2f
commit
59d4af5c85
1 changed files with 6 additions and 3 deletions
|
|
@ -2369,10 +2369,13 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg)
|
|||
}
|
||||
|
||||
status = ucfg_reg_set_band(hdd_ctx->pdev, band_capability);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
/*
|
||||
* Continue, Do not close the pdev from here as if host fails
|
||||
* to update band information if cc_list event is not received
|
||||
* by this time, then also driver load should happen.
|
||||
*/
|
||||
hdd_err("Failed to update regulatory band info");
|
||||
goto pdev_close;
|
||||
}
|
||||
|
||||
if (!cds_is_driver_recovering() || cds_is_driver_in_bad_state()) {
|
||||
hdd_ctx->reg.reg_domain = cfg->reg_domain;
|
||||
|
|
|
|||
Loading…
Reference in a new issue