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:
Sheenam Monga
2023-09-06 15:52:25 +05:30
committed by Rahul Choudhary
parent d440675547
commit d453172923

View File

@@ -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);
if (!mlme_obj)
return false;
return 0;
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);
if (!mlme_obj)
return false;
return 0;
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);
if (!mlme_obj)
return false;
return 0;
return mlme_obj->cfg.sta.mlo_support_link_band;
}