mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Convert wlan_hdd_nan.c to unified logging
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0 HDD should converge on a unified set of logging APIs. Update wlan_hdd_nan.c to use the unified set of APIs. Change-Id: I4dcc61656f1cd45d3a2c9d63441c27a733385328 CRs-Fixed: 937673
This commit is contained in:
parent
1c66dfac65
commit
2c9cb34890
1 changed files with 8 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -25,6 +25,9 @@
|
|||
* WLAN Host Device Driver NAN API implementation
|
||||
*/
|
||||
|
||||
/* denote that this file does not allow legacy hddLog */
|
||||
#define HDD_DISALLOW_LEGACY_HDDLOG 1
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
@ -131,15 +134,13 @@ static void wlan_hdd_cfg80211_nan_callback(void *ctx, tSirNanEvent *msg)
|
|||
int status;
|
||||
|
||||
if (NULL == msg) {
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
FL("msg received here is null"));
|
||||
hdd_err("msg received here is null");
|
||||
return;
|
||||
}
|
||||
|
||||
status = wlan_hdd_validate_context(hdd_ctx);
|
||||
if (0 != status) {
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
FL("HDD context is not valid"));
|
||||
hdd_err("HDD context is not valid");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -151,14 +152,12 @@ static void wlan_hdd_cfg80211_nan_callback(void *ctx, tSirNanEvent *msg)
|
|||
GFP_KERNEL);
|
||||
|
||||
if (!vendor_event) {
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
FL("cfg80211_vendor_event_alloc failed"));
|
||||
hdd_err("cfg80211_vendor_event_alloc failed");
|
||||
return;
|
||||
}
|
||||
if (nla_put(vendor_event, QCA_WLAN_VENDOR_ATTR_NAN,
|
||||
msg->event_data_len, msg->event_data)) {
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
FL("QCA_WLAN_VENDOR_ATTR_NAN put fail"));
|
||||
hdd_err("QCA_WLAN_VENDOR_ATTR_NAN put fail");
|
||||
kfree_skb(vendor_event);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue