qcacld-3.0: Avoid failing driver when cesium_nl_sock failed
qcacld-2.0 to qcacld-3.0 propagation In the dual wifi instances, the 2nd cesium_nl_sock initialization will fail due to the first driver has registered the socket. This doesn't have to fail the driver to be up running, so simply print a warning in this case. Also add a check in the case to use the cesium_nl_sock to make sure it is properly used only when it is initialized. Change-Id: Ia62d606c1400b437f08c28951d6a6a77428f73b1 CRs-fixed: 995038
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
da5a6823b1
commit
5e2e20529e
@@ -2422,7 +2422,7 @@ static void hdd_tx_fail_ind_callback(uint8_t *MacAddr, uint8_t seqNo)
|
|||||||
|
|
||||||
payload_len = ETH_ALEN;
|
payload_len = ETH_ALEN;
|
||||||
|
|
||||||
if (0 == cesium_pid) {
|
if (0 == cesium_pid || cesium_nl_srv_sock == NULL) {
|
||||||
hdd_err("cesium process not registered");
|
hdd_err("cesium process not registered");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -3935,10 +3935,8 @@ static int hdd_init_netlink_services(hdd_context_t *hdd_ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = hdd_open_cesium_nl_sock();
|
ret = hdd_open_cesium_nl_sock();
|
||||||
if (ret) {
|
if (ret)
|
||||||
hdd_alert("hdd_open_cesium_nl_sock failed");
|
hdd_warn("hdd_open_cesium_nl_sock failed");
|
||||||
goto err_ptt_deactivate;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = cnss_diag_activate_service();
|
ret = cnss_diag_activate_service();
|
||||||
if (ret) {
|
if (ret) {
|
||||||
@@ -3950,7 +3948,6 @@ static int hdd_init_netlink_services(hdd_context_t *hdd_ctx)
|
|||||||
|
|
||||||
err_close_cesium:
|
err_close_cesium:
|
||||||
hdd_close_cesium_nl_sock();
|
hdd_close_cesium_nl_sock();
|
||||||
err_ptt_deactivate:
|
|
||||||
ptt_sock_deactivate_svc();
|
ptt_sock_deactivate_svc();
|
||||||
err_nl_srv:
|
err_nl_srv:
|
||||||
nl_srv_exit();
|
nl_srv_exit();
|
||||||
|
Reference in New Issue
Block a user