diff options
| author | Nitesh Shah <niteshs@codeaurora.org> | 2016-12-27 12:27:51 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-03 23:23:54 -0800 |
| commit | 10065516d11de97197cf58dccf1dbe02c681cc79 (patch) | |
| tree | 8f75b690de4cc4727e0fe1776ac936029db1379e | |
| parent | 5e8d1ef397fedc6133b490179093f556ca7b0c64 (diff) | |
qcacld-3.0: Logging enhancements for TDLS feature
Add logging enhancements for TDLS feature.
Change-Id: I972fedb60384b9eac87342238d7addd9f5d61290
CRs-Fixed: 1105462
| -rw-r--r-- | core/hdd/src/wlan_hdd_tdls.c | 11 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_process_tdls.c | 4 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_sme_rsp_messages.c | 3 |
3 files changed, 14 insertions, 4 deletions
diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index f309890fd164..32a432da571a 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -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 @@ -1093,6 +1094,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); @@ -1571,6 +1573,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); } @@ -1582,6 +1585,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); @@ -2584,12 +2588,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, @@ -4590,6 +4593,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, @@ -4790,6 +4794,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, diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index 3260a8be7f79..cadcb11a3135 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/core/mac/src/pe/lim/lim_process_tdls.c @@ -3009,6 +3009,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); @@ -3253,7 +3254,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); @@ -3392,6 +3393,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)) diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index 08b179b9a2d0..cedfe43d706c 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -1181,6 +1181,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); |
