qcacld-3.0: Don't return bool value instead of uint
Currently, some mlo APIs returns false if mlme_obj is not found but return type expected is uint8_t. So, return 0 instead of false in case of error. Change-Id: I52d0fd82520bb046a7a80381d53f97c95b32d0d1 CRs-Fixed: 3608559
This commit is contained in:

committed by
Rahul Choudhary

parent
d440675547
commit
d453172923
@@ -1420,7 +1420,7 @@ uint8_t wlan_mlme_get_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc)
|
|||||||
|
|
||||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||||
if (!mlme_obj)
|
if (!mlme_obj)
|
||||||
return false;
|
return 0;
|
||||||
|
|
||||||
return mlme_obj->cfg.sta.mlo_max_simultaneous_links;
|
return mlme_obj->cfg.sta.mlo_max_simultaneous_links;
|
||||||
}
|
}
|
||||||
@@ -1447,7 +1447,7 @@ uint8_t wlan_mlme_get_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc)
|
|||||||
|
|
||||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||||
if (!mlme_obj)
|
if (!mlme_obj)
|
||||||
return false;
|
return 0;
|
||||||
|
|
||||||
return mlme_obj->cfg.sta.mlo_support_link_num;
|
return mlme_obj->cfg.sta.mlo_support_link_num;
|
||||||
}
|
}
|
||||||
@@ -1587,7 +1587,7 @@ uint8_t wlan_mlme_get_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc)
|
|||||||
|
|
||||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||||
if (!mlme_obj)
|
if (!mlme_obj)
|
||||||
return false;
|
return 0;
|
||||||
|
|
||||||
return mlme_obj->cfg.sta.mlo_support_link_band;
|
return mlme_obj->cfg.sta.mlo_support_link_band;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user