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
Dieser Commit ist enthalten in:
Mahesh Kumar Kalikot Veetil
2017-10-09 15:17:02 -07:00
committet von Nandini Suresh
Ursprung 41eff4f752
Commit 3b236ec96b

Datei anzeigen

@@ -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;