qcacld-3.0: Initialize sap max number of peers
Currently callers are calling the wlan_mlme_get_sap_max_peers() API to get the max number of peers without initializing the output parameter. In case of failure in wlan_mlme_get_sap_max_peers() API, sap_max_num_peers can have uninitialized value which can lead to undefined behavior. To fix this issue, initialize the output parameter before calling wlan_mlme_get_sap_max_peers() CRs-Fixed: 3337315 Change-Id: I83ecaf80ccee7d92a66fe561c0a1a7bd409fd64c
Этот коммит содержится в:

коммит произвёл
Madan Koyyalamudi

родитель
c3b6c10ab4
Коммит
6b6b2f4fde
@@ -6385,7 +6385,7 @@ void wlan_mlme_get_feature_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_mlme_features *mlme_feature_set)
|
||||
{
|
||||
uint32_t roam_triggers;
|
||||
int sap_max_num_clients;
|
||||
int sap_max_num_clients = 0;
|
||||
bool is_enable_idle_roam = false, is_bss_load_enabled = false;
|
||||
|
||||
wlan_mlme_get_latency_enable(psoc,
|
||||
|
Ссылка в новой задаче
Block a user