qcacld-3.0: Add separate debug print for RSSI,SNR
Currently target_if_cp_stats_extract_vdev_summary_stats function prints bcn SNR which can be RSSI as well based on whether firmware supports reporting rssi or not. Add check for firware support to print RSSI/SNR Change-Id: Ifef7bfad7d79c1a1bb84641bc1d3632f6d683252 CRs-Fixed: 3209907
This commit is contained in:

committed by
Madan Koyyalamudi

parent
36324c4f61
commit
bf5a756cb2
@@ -696,11 +696,17 @@ static QDF_STATUS target_if_cp_stats_extract_vdev_summary_stats(
|
||||
bcn_snr = vdev_stats->vdev_snr.bcn_snr;
|
||||
dat_snr = vdev_stats->vdev_snr.dat_snr;
|
||||
ev->vdev_summary_stats[i].vdev_id = vdev_stats->vdev_id;
|
||||
|
||||
cp_stats_debug("vdev %d SNR bcn: %d data: %d",
|
||||
ev->vdev_summary_stats[i].vdev_id, bcn_snr,
|
||||
dat_snr);
|
||||
|
||||
/*bcn_snr parameter can come as RSSi/SNR from the FW depending
|
||||
on whether FW supports the RSSI reporting or not */
|
||||
if (!db2dbm_enabled) {
|
||||
cp_stats_debug("vdev %d SNR bcn: %d data: %d",
|
||||
ev->vdev_summary_stats[i].vdev_id,
|
||||
bcn_snr, dat_snr);
|
||||
} else {
|
||||
cp_stats_debug("vdev %d RSSI bcn: %d data: %d",
|
||||
ev->vdev_summary_stats[i].vdev_id,
|
||||
bcn_snr, dat_snr);
|
||||
}
|
||||
for (j = 0; j < 4; j++) {
|
||||
ev->vdev_summary_stats[i].stats.tx_frm_cnt[j] =
|
||||
vdev_stats->tx_frm_cnt[j];
|
||||
|
Reference in New Issue
Block a user