mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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
This commit is contained in:
parent
41eff4f752
commit
3b236ec96b
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue