From 3b236ec96b2551465a8e42f365641547630b24a9 Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Mon, 9 Oct 2017 15:17:02 -0700 Subject: [PATCH] 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 --- utils/ptt/src/wlan_ptt_sock_svc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/ptt/src/wlan_ptt_sock_svc.c b/utils/ptt/src/wlan_ptt_sock_svc.c index 593402ce3490..e5b232533512 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 +#include #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;