summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>2017-10-09 15:17:02 -0700
committerNandini Suresh <snandini@codeaurora.org>2017-10-12 14:21:58 -0700
commit3b236ec96b2551465a8e42f365641547630b24a9 (patch)
tree51741b7af7e3d1d5bb125b3234a8fe9733c1973b /utils
parent41eff4f752b839e6e2a052497be27109f97c404a (diff)
downloadqca-wfi-host-cmn-3b236ec96b2551465a8e42f365641547630b24a9.tar.gz
qcacmn: Fix compilation issue in ptt_cmd_handler()
The feature CNSS_GENL is enabling compilation of some part of the code. This feature depends on CONFIG_CNSS_GENL. Fix some of the basic compilation issues. Change-Id: I5cd3645cd8a10367abcfe89abda8de16548385b7 CRs-Fixed: 2123538
Diffstat (limited to 'utils')
-rw-r--r--utils/ptt/src/wlan_ptt_sock_svc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ptt/src/wlan_ptt_sock_svc.c b/utils/ptt/src/wlan_ptt_sock_svc.c
index 593402ce3..e5b232533 100644
--- a/utils/ptt/src/wlan_ptt_sock_svc.c
+++ b/utils/ptt/src/wlan_ptt_sock_svc.c
@@ -41,6 +41,7 @@
#ifdef CNSS_GENL
#include <net/cnss_nl.h>
+#include <wlan_cfg80211.h>
#else
/** ptt Process ID */
@@ -283,7 +284,7 @@ static void ptt_cmd_handler(const void *data, int data_len, void *ctx, int pid)
return;
}
- if (nla_len(tb[CLD80211_ATTR_DATA]) < sizeof(struct ptt_app_reg_req)) {
+ if (nla_len(tb[CLD80211_ATTR_DATA]) < sizeof(ptt_app_reg_req)) {
PTT_TRACE(QDF_TRACE_LEVEL_ERROR, "%s:attr length check fails\n",
__func__);
return;