From 8da68cf1f9e3928af04064dd4593f633c44ab830 Mon Sep 17 00:00:00 2001 From: Vignesh Viswanathan Date: Thu, 7 Sep 2017 14:00:04 +0530 Subject: [PATCH] qcacld-3.0: Add debug logs to print FILS ERP Seq Number Currently the debug logs print only the KEK, KCK and other keys during FILS Roam sync indication from FW to Framework. Add additional debug logs to print Next ERP Sequence Number from the firmware during roam sync indication to Framework. Change-Id: I3df03cd3d426ffa18e021a45d95edb3148838858 CRs-Fixed: 2106552 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 +++ core/sme/src/csr/csr_api_roam.c | 3 +++ core/wma/src/wma_scan_roam.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 40c6f34c8050..9246ac91afe7 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -5426,6 +5426,9 @@ static int wlan_hdd_add_fils_params_roam_auth_event(struct sk_buff *skb, return -EINVAL; } + hdd_debug("Update ERP Seq Num %d, Next ERP Seq Num %d", + roam_info->update_erp_next_seq_num, + roam_info->next_erp_seq_num); if (roam_info->update_erp_next_seq_num && nla_put_u16(skb, QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index dd42b7ecea82..43f462010e90 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -20998,6 +20998,9 @@ static QDF_STATUS csr_process_roam_sync_callback(tpAniSirGlobal mac_ctx, roam_info->update_erp_next_seq_num = roam_synch_data->update_erp_next_seq_num; roam_info->next_erp_seq_num = roam_synch_data->next_erp_seq_num; + sme_debug("Update ERP Seq Num : %d, Next ERP Seq Num : %d", + roam_info->update_erp_next_seq_num, + roam_info->next_erp_seq_num); qdf_mem_copy(roam_info->replay_ctr, roam_synch_data->replay_ctr, SIR_REPLAY_CTR_LEN); QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG, diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index cbc245ee4410..e354090371d5 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -2391,6 +2391,9 @@ static int wma_fill_roam_synch_buffer(tp_wma_handle wma, roam_synch_ind_ptr->next_erp_seq_num = fils_info->next_erp_seq_num; + WMA_LOGD("Update ERP Seq Num %d, Next ERP Seq Num %d", + roam_synch_ind_ptr->update_erp_next_seq_num, + roam_synch_ind_ptr->next_erp_seq_num); WMA_LOGD("%s: KEK dump", __func__); QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_WMA, QDF_TRACE_LEVEL_DEBUG, roam_synch_ind_ptr->kek, fils_info->kek_len);