Explorar el Código

qcacld-3.0: Enhance logging related to scan

Enhance debug information related to scan results
like adding SSID and time stamp of beacon in logs

Change-Id: Ib85dffff39d0db69a695e8167b6a221b51ef7d45
CRs-Fixed: 1013236
Sandeep Puligilla hace 9 años
padre
commit
394da5dde7

+ 0 - 2
core/cds/src/cds_sched.c

@@ -462,7 +462,6 @@ static int cds_mc_thread(void *Arg)
 					QDF_ASSERT(0);
 					break;
 				}
-
 				/* Need some optimization */
 				pMacContext =
 					cds_get_context(QDF_MODULE_ID_PE);
@@ -504,7 +503,6 @@ static int cds_mc_thread(void *Arg)
 					QDF_ASSERT(0);
 					break;
 				}
-
 				/* Need some optimization */
 				pMacContext =
 					cds_get_context(QDF_MODULE_ID_SME);

+ 3 - 2
core/hdd/src/wlan_hdd_cfg80211.c

@@ -8207,9 +8207,10 @@ wlan_hdd_cfg80211_inform_bss_frame(hdd_adapter_t *pAdapter,
 	/* Supplicant takes the signal strength in terms of mBm(100*dBm) */
 	rssi = QDF_MIN(rssi, 0) * 100;
 
-	hddLog(LOG1, FL("BSSID: " MAC_ADDRESS_STR " Channel:%d RSSI:%d"),
+	hddLog(LOG1, FL("BSSID: " MAC_ADDRESS_STR " Channel:%d RSSI:%d TSF %u"),
 	       MAC_ADDR_ARRAY(mgmt->bssid), chan->center_freq,
-	       (int)(rssi / 100));
+	       (int)(rssi / 100),
+	       bss_desc->timeStamp[0]);
 
 	bss_status =
 		cfg80211_inform_bss_frame(wiphy, chan, mgmt, frame_len, rssi,

+ 5 - 2
core/mac/src/pe/lim/lim_scan_result_utils.c

@@ -180,8 +180,11 @@ lim_collect_bss_description(tpAniSirGlobal pMac,
 	pBssDescr->nReceivedTime = (uint32_t) qdf_mc_timer_get_system_ticks();
 	pBssDescr->tsf_delta = WMA_GET_RX_TSF_DELTA(pRxPacketInfo);
 
-	lim_log(pMac, LOG2, FL("BSSID: "MAC_ADDRESS_STR " tsf_delta = %u"),
-			    MAC_ADDR_ARRAY(pHdr->bssId), pBssDescr->tsf_delta);
+	lim_log(pMac, LOG1,
+		  FL("BSSID: "MAC_ADDRESS_STR " tsf_delta = %u ReceivedTime = %u ssid = %s"),
+		  MAC_ADDR_ARRAY(pHdr->bssId), pBssDescr->tsf_delta,
+		  pBssDescr->nReceivedTime,
+		  ((pBPR->ssidPresent) ? (char *)pBPR->ssId.ssId : ""));
 
 	if (fScanning) {
 		rrm_get_start_tsf(pMac, pBssDescr->startTSF);

+ 1 - 1
core/wma/src/wma_utils.c

@@ -1141,7 +1141,7 @@ static void wma_update_vdev_stats(tp_wma_handle wma,
 		}
 	}
 
-	WMA_LOGD("vdev id %d beancon snr %d data snr %d",
+	WMA_LOGD("vdev id %d beacon snr %d data snr %d",
 		 vdev_stats->vdev_id,
 		 vdev_stats->vdev_snr.bcn_snr, vdev_stats->vdev_snr.dat_snr);