qcacld-3.0: Logging enhancements for TDLS feature

Add logging enhancements for TDLS feature.

Change-Id: I972fedb60384b9eac87342238d7addd9f5d61290
CRs-Fixed: 1105462
This commit is contained in:
Nitesh Shah
2016-12-27 12:27:51 +05:30
committed by qcabuildsw
父節點 2aab7ee99c
當前提交 82c5281393
共有 3 個文件被更改,包括 15 次插入5 次删除

查看文件

@@ -106,6 +106,7 @@ static void wlan_hdd_tdls_determine_channel_opclass(hdd_context_t *hddctx,
*channel = curr_peer->pref_off_chan_num;
*opclass = curr_peer->op_class_for_pref_off_chan;
}
hdd_info("channel:%d opclass:%d", *channel, *opclass);
}
#ifdef FEATURE_WLAN_DIAG_SUPPORT
@@ -1096,6 +1097,7 @@ void wlan_hdd_tdls_set_peer_link_status(hddTdlsPeer_t *curr_peer,
hdd_adapter_t *adapter = curr_peer->pHddTdlsCtx->pAdapter;
curr_peer->reason = reason;
hdd_info("Peer is forced and the reason:%d", reason);
wlan_hdd_tdls_determine_channel_opclass(pHddCtx, adapter,
curr_peer, &channel, &opclass);
@@ -1544,6 +1546,7 @@ static void wlan_tdd_tdls_reset_tx_rx(tdlsCtx_t *pHddTdlsCtx)
*/
static void wlan_hdd_tdls_implicit_disable(tdlsCtx_t *pHddTdlsCtx)
{
hdd_info("Disable Implicit TDLS");
wlan_hdd_tdls_timers_stop(pHddTdlsCtx);
}
@@ -1555,6 +1558,7 @@ static void wlan_hdd_tdls_implicit_disable(tdlsCtx_t *pHddTdlsCtx)
*/
static void wlan_hdd_tdls_implicit_enable(tdlsCtx_t *pHddTdlsCtx)
{
hdd_info("Enable Implicit TDLS");
wlan_hdd_tdls_peer_reset_discovery_processed(pHddTdlsCtx);
pHddTdlsCtx->discovery_sent_cnt = 0;
wlan_tdd_tdls_reset_tx_rx(pHddTdlsCtx);
@@ -2558,12 +2562,11 @@ void wlan_hdd_tdls_decrement_peer_count(hdd_adapter_t *pAdapter)
pHddCtx->connected_peer_count--;
wlan_hdd_tdls_check_power_save_prohibited(pAdapter);
hdd_notice("Connected peer count %d", pHddCtx->connected_peer_count);
connected_peer_count = pHddCtx->connected_peer_count;
mutex_unlock(&pHddCtx->tdls_lock);
hdd_notice("Connected peer count %d", connected_peer_count);
if (connected_peer_count == 0 &&
pHddCtx->concurrency_marked) {
tdls_adapter = hdd_get_adapter_by_vdev(pHddCtx,
@@ -4576,6 +4579,7 @@ static int __wlan_hdd_cfg80211_tdls_oper(struct wiphy *wiphy,
if (eTDLS_LINK_CONNECTED != pTdlsPeer->link_status) {
if (IS_ADVANCE_TDLS_ENABLE) {
hdd_info("Advance TDLS is enabled");
if (0 !=
wlan_hdd_tdls_get_link_establish_params
(pAdapter, peer,
@@ -4776,6 +4780,7 @@ static int __wlan_hdd_cfg80211_tdls_oper(struct wiphy *wiphy,
SME_AC_BK,
SME_AC_BE};
uint8_t tlTid[4] = { 7, 5, 2, 3 };
hdd_info("Update TL about UAPSD masks");
for (ac = 0; ac < 4; ac++) {
status = sme_enable_uapsd_for_ac(
(WLAN_HDD_GET_CTX(pAdapter))->pcds_context,

查看文件

@@ -3014,6 +3014,7 @@ void lim_send_sme_tdls_link_establish_req_rsp(tpAniSirGlobal pMac,
lim_log(pMac, LOGE, FL("Failed to allocate memory"));
return;
}
lim_log(pMac, LOG1, FL("Send Resp to TDL Link Establish Req to SME"));
pTdlsLinkEstablishReqRsp->statusCode = status;
if (peermac)
qdf_copy_macaddr(&pTdlsLinkEstablishReqRsp->peermac, peermac);
@@ -3258,7 +3259,7 @@ tSirRetStatus lim_process_sme_tdls_link_establish_req(tpAniSirGlobal mac_ctx,
uint8_t self_supp_chan[WNI_CFG_VALID_CHANNEL_LIST_LEN];
QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_INFO,
FL("Send Mgmt Recieved"));
FL("Process TDLS Link Establishment Request from SME"));
session_entry = pe_find_session_by_bssid(mac_ctx, tdls_req->bssid.bytes,
&session_id);
@@ -3397,6 +3398,7 @@ tSirRetStatus lim_delete_tdls_peers(tpAniSirGlobal mac_ctx,
* (with that aid) entry from the hash table and add the aid
* in free pool
*/
lim_log(mac_ctx, LOGE, FL("Delete all the TDLS peer connected."));
for (i = 0; i < aid_bitmap_size / sizeof(uint32_t); i++) {
for (aid = 0; aid < (sizeof(uint32_t) << 3); aid++) {
if (!CHECK_BIT(session_entry->peerAIDBitmap[i], aid))

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -1171,6 +1171,9 @@ lim_send_sme_tdls_del_sta_ind(tpAniSirGlobal pMac, tpDphHashNode pStaDs,
("AllocateMemory failed for eWNI_SME_TDLS_DEL_STA_IND "));
return;
}
lim_log(pMac, LOG1, FL("Delete TDLS Peer "MAC_ADDRESS_STR
"with reason code %d"),
MAC_ADDR_ARRAY(pStaDs->staAddr), reasonCode);
/* messageType */
pSirTdlsDelStaInd->messageType = eWNI_SME_TDLS_DEL_STA_IND;
pSirTdlsDelStaInd->length = sizeof(tSirTdlsDelStaInd);