From c70e59b90ddc0eb79faab8eb9c3d3dbebf091ee3 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Wed, 18 May 2016 11:55:24 +0530 Subject: qcacld-2.0: Add log for BPF set instructions In the current implementation, there is no log of instructions set by framework. To resolve this and understand the packet filters, log of set instructions is added. Change-Id: Ibe3c23de374261741f78a76c05c97b2342e9064e CRs-Fixed: 1013062 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 9878c364ccbc..73ebafa83395 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -10107,6 +10107,10 @@ static int hdd_set_reset_bpf_offload(hdd_context_t *hdd_ctx, nla_memcpy(bpf_set_offload->program, tb[BPF_PROGRAM], prog_len); bpf_set_offload->session_id = adapter->sessionId; + hddLog(LOG1, FL("BPF set instructions")); + VOS_TRACE_HEX_DUMP(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO, + bpf_set_offload->program, prog_len); + /* Parse and fetch filter Id */ if (!tb[BPF_FILTER_ID]) { hddLog(LOGE, FL("attr filter id failed")); -- cgit v1.2.3