From 62b63039007cd73ff7f7d475b5e1283de5c473dd Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Mon, 22 Aug 2016 14:56:57 +0530 Subject: [PATCH] qcacld-3.0: Add log for BPF set instructions qcacld-2.0 to qcacld-3.0 propagation 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 4e173217361c..d66047884d92 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -6220,6 +6220,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; + hdd_info("BPF set instructions"); + QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO, + bpf_set_offload->program, prog_len); + /* Parse and fetch filter Id */ if (!tb[BPF_FILTER_ID]) { hdd_err("attr filter id failed");