qcacld-3.0: Send NUD diag event when ARP tracking is enabled
Send NUD failure event to diag only when ARP tracking is enabled, otherwise ignore. CRs-Fixed: 2178801 Change-Id: I9296df8461671f46d6d90c510a6d47c0d3c13d5c
This commit is contained in:
committed by
nshrivas
parent
22d8ec820f
commit
762c5475b6
@@ -13386,7 +13386,11 @@ static int __wlan_hdd_cfg80211_get_nud_stats(struct wiphy *wiphy,
|
||||
INIT_COMPLETION(context->response_event);
|
||||
spin_unlock(&hdd_context_lock);
|
||||
|
||||
if (hdd_ctx->config->enable_data_stall_det)
|
||||
pkt_type_bitmap = adapter->pkt_type_bitmap;
|
||||
|
||||
/* send NUD failure event only when ARP tracking is enabled. */
|
||||
if (hdd_ctx->config->enable_data_stall_det &&
|
||||
(pkt_type_bitmap & CONNECTIVITY_CHECK_SET_ARP))
|
||||
cdp_post_data_stall_event(soc,
|
||||
DATA_STALL_LOG_INDICATOR_FRAMEWORK,
|
||||
DATA_STALL_LOG_NUD_FAILURE,
|
||||
@@ -13441,7 +13445,6 @@ static int __wlan_hdd_cfg80211_get_nud_stats(struct wiphy *wiphy,
|
||||
if (adapter->dad)
|
||||
nla_put_flag(skb, AP_LINK_DAD);
|
||||
|
||||
pkt_type_bitmap = adapter->pkt_type_bitmap;
|
||||
/* ARP tracking is done above. */
|
||||
pkt_type_bitmap &= ~CONNECTIVITY_CHECK_SET_ARP;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user