qcacld-3.0: Fix nesting error for MLO link layer stats
Currently while nesting link layer interface and peer stats sanity check for valid links is present after nesting. So, move it before nesting to resolve nesting error. Change-Id: Ica154337d2b9b2a05c5178c7833a7624e1ff8c27 CRs-Fixed: 3606263
This commit is contained in:

committed by
Rahul Choudhary

parent
7c0df6df9b
commit
3b1c11d9d2
@@ -1643,16 +1643,16 @@ wlan_hdd_send_mlo_ll_peer_stats_to_user(struct hdd_adapter *adapter)
|
||||
}
|
||||
|
||||
hdd_adapter_for_each_link_info(adapter, link_info) {
|
||||
wlan_hdd_get_connected_link_info(link_info, &info);
|
||||
if (info.link_id == WLAN_INVALID_LINK_ID)
|
||||
continue;
|
||||
|
||||
peers = nla_nest_start(skb, i);
|
||||
if (!peers) {
|
||||
hdd_err("nla_nest_start failed");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
wlan_hdd_get_connected_link_info(link_info, &info);
|
||||
if (info.link_id == WLAN_INVALID_LINK_ID)
|
||||
continue;
|
||||
|
||||
if (!wlan_hdd_put_mlo_peer_info(link_info, skb)) {
|
||||
hdd_err("put_wifi_peer_info fail");
|
||||
goto exit;
|
||||
@@ -1966,16 +1966,16 @@ wlan_hdd_send_mlo_ll_iface_stats_to_user(struct hdd_adapter *adapter)
|
||||
}
|
||||
|
||||
hdd_adapter_for_each_link_info(adapter, link_info) {
|
||||
wlan_hdd_get_connected_link_info(link_info, &info);
|
||||
if (info.link_id == WLAN_INVALID_LINK_ID)
|
||||
continue;
|
||||
|
||||
ml_iface_links = nla_nest_start(skb, i);
|
||||
if (!ml_iface_links) {
|
||||
hdd_err("per link mlo iface stats failed");
|
||||
goto err;
|
||||
}
|
||||
|
||||
wlan_hdd_get_connected_link_info(link_info, &info);
|
||||
if (info.link_id == WLAN_INVALID_LINK_ID)
|
||||
continue;
|
||||
|
||||
stats = &link_info->ll_iface_stats;
|
||||
per_link_peers = stats->link_stats.num_peers;
|
||||
|
||||
|
Reference in New Issue
Block a user