Ver Fonte

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
Mahesh Kumar Kalikot Veetil há 7 anos atrás
pai
commit
3b236ec96b
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      utils/ptt/src/wlan_ptt_sock_svc.c

+ 2 - 1
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;