qcacld-3.0: Convert wlan_hdd_ipa.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_ipa.c to use the unified set of APIs. Change-Id: I27f74d7a98d1fb4806a524a95805525d9fc08d8b CRs-Fixed: 1097452
This commit is contained in:

zatwierdzone przez
qcabuildsw

rodzic
7c4f31b19f
commit
ab2cd40890
@@ -34,6 +34,9 @@
|
|||||||
|
|
||||||
#ifdef IPA_OFFLOAD
|
#ifdef IPA_OFFLOAD
|
||||||
|
|
||||||
|
/* denote that this file does not allow legacy hddLog */
|
||||||
|
#define HDD_DISALLOW_LEGACY_HDDLOG 1
|
||||||
|
|
||||||
/* Include Files */
|
/* Include Files */
|
||||||
#include <linux/ipa.h>
|
#include <linux/ipa.h>
|
||||||
#include <wlan_hdd_includes.h>
|
#include <wlan_hdd_includes.h>
|
||||||
@@ -3977,10 +3980,9 @@ static int __hdd_ipa_send_mcc_scc_msg(hdd_context_t *hdd_ctx, bool mcc_mode)
|
|||||||
while (NULL != adapter_node && QDF_STATUS_SUCCESS == status) {
|
while (NULL != adapter_node && QDF_STATUS_SUCCESS == status) {
|
||||||
pAdapter = adapter_node->pAdapter;
|
pAdapter = adapter_node->pAdapter;
|
||||||
if (pAdapter->device_mode == QDF_STA_MODE ||
|
if (pAdapter->device_mode == QDF_STA_MODE ||
|
||||||
pAdapter->device_mode == QDF_SAP_MODE) {
|
pAdapter->device_mode == QDF_SAP_MODE) {
|
||||||
hddLog(QDF_TRACE_LEVEL_INFO,
|
hdd_info("MCC->SCC: Flush TxRx queue(d_mode=%d)",
|
||||||
"MCC->SCC: Flush TxRx queue(d_mode=%d)",
|
pAdapter->device_mode);
|
||||||
pAdapter->device_mode);
|
|
||||||
hdd_deinit_tx_rx(pAdapter);
|
hdd_deinit_tx_rx(pAdapter);
|
||||||
}
|
}
|
||||||
status = hdd_get_next_adapter(
|
status = hdd_get_next_adapter(
|
||||||
@@ -3993,18 +3995,18 @@ static int __hdd_ipa_send_mcc_scc_msg(hdd_context_t *hdd_ctx, bool mcc_mode)
|
|||||||
meta.msg_len = sizeof(*msg);
|
meta.msg_len = sizeof(*msg);
|
||||||
msg = qdf_mem_malloc(meta.msg_len);
|
msg = qdf_mem_malloc(meta.msg_len);
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
hddLog(LOGE, "msg allocation failed");
|
hdd_err("msg allocation failed");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
meta.msg_type = mcc_mode ?
|
meta.msg_type = mcc_mode ?
|
||||||
WLAN_SWITCH_TO_MCC : WLAN_SWITCH_TO_SCC;
|
WLAN_SWITCH_TO_MCC : WLAN_SWITCH_TO_SCC;
|
||||||
hddLog(LOG1, "ipa_send_msg(Evt:%d)", meta.msg_type);
|
hdd_info("ipa_send_msg(Evt:%d)", meta.msg_type);
|
||||||
|
|
||||||
ret = ipa_send_msg(&meta, msg, hdd_ipa_msg_free_fn);
|
ret = ipa_send_msg(&meta, msg, hdd_ipa_msg_free_fn);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
hddLog(LOGE, "ipa_send_msg(Evt:%d) - fail=%d",
|
hdd_err("ipa_send_msg(Evt:%d) - fail=%d",
|
||||||
meta.msg_type, ret);
|
meta.msg_type, ret);
|
||||||
qdf_mem_free(msg);
|
qdf_mem_free(msg);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user