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
Bu işleme şunda yer alıyor:

işlemeyi yapan:
Rahul Choudhary

ebeveyn
d440675547
işleme
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);
|
||||
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;
|
||||
}
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle