mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacmn: Move the level of some cp stats from kernel to driver
Move some stats from tgt_mc_cp_stats_extract_vdev_summary_stats and target_if_cp_stats_extract_vdev_chain_rssi_stats, from kernel to driver Change-Id: I3475421828b51a229af4ac3ff6087d7ebb311c33 CRs-Fixed: 2430565
This commit is contained in:
parent
9dad9767b1
commit
8f06c8286f
2 changed files with 10 additions and 10 deletions
|
|
@ -328,8 +328,8 @@ static QDF_STATUS target_if_cp_stats_extract_vdev_chain_rssi_stats(
|
|||
for (j = 0; j < MAX_NUM_CHAINS; j++) {
|
||||
dat_snr = rssi_stats.rssi_avg_data[j];
|
||||
bcn_snr = rssi_stats.rssi_avg_beacon[j];
|
||||
cp_stats_err("Chain %d SNR bcn: %d data: %d", j,
|
||||
bcn_snr, dat_snr);
|
||||
cp_stats_debug("Chain %d SNR bcn: %d data: %d", j,
|
||||
bcn_snr, dat_snr);
|
||||
/*
|
||||
* Get the absolute rssi value from the current rssi
|
||||
* value the snr value is hardcoded into 0 in the
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ static void tgt_mc_cp_stats_extract_tx_power(struct wlan_objmgr_psoc *psoc,
|
|||
struct pdev_cp_stats *pdev_cp_stats_priv;
|
||||
|
||||
if (!ev->pdev_stats) {
|
||||
cp_stats_err("no pdev stats");
|
||||
cp_stats_debug("no pdev stats");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -118,8 +118,8 @@ static void peer_rssi_iterator(struct wlan_objmgr_pdev *pdev,
|
|||
struct peer_extd_stats *peer_extd_mc_stats;
|
||||
|
||||
if (WLAN_PEER_SELF == wlan_peer_get_peer_type(peer)) {
|
||||
cp_stats_err("ignore self peer: %pM",
|
||||
wlan_peer_get_macaddr(peer));
|
||||
cp_stats_debug("ignore self peer: %pM",
|
||||
wlan_peer_get_macaddr(peer));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -485,7 +485,7 @@ static void tgt_mc_cp_stats_extract_peer_stats(struct wlan_objmgr_psoc *psoc,
|
|||
extd2_stats:
|
||||
|
||||
if (!ev->peer_adv_stats) {
|
||||
cp_stats_err("no peer_extd2 stats");
|
||||
cp_stats_debug("no peer_extd2 stats");
|
||||
goto complete;
|
||||
}
|
||||
selected = ev->num_peer_adv_stats;
|
||||
|
|
@ -569,7 +569,7 @@ static void tgt_mc_cp_stats_extract_vdev_summary_stats(
|
|||
struct vdev_cp_stats *vdev_cp_stats_priv;
|
||||
|
||||
if (!ev->vdev_summary_stats) {
|
||||
cp_stats_err("no summary stats");
|
||||
cp_stats_debug("no summary stats");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -587,7 +587,7 @@ static void tgt_mc_cp_stats_extract_vdev_summary_stats(
|
|||
}
|
||||
|
||||
if (i == ev->num_summary_stats) {
|
||||
cp_stats_err("vdev_id %d not found", last_req.vdev_id);
|
||||
cp_stats_debug("vdev_id %d not found", last_req.vdev_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -647,7 +647,7 @@ static void tgt_mc_cp_stats_extract_vdev_chain_rssi_stats(
|
|||
struct vdev_cp_stats *vdev_cp_stats_priv;
|
||||
|
||||
if (!ev->vdev_chain_rssi) {
|
||||
cp_stats_err("no vdev chain rssi stats");
|
||||
cp_stats_debug("no vdev chain rssi stats");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -665,7 +665,7 @@ static void tgt_mc_cp_stats_extract_vdev_chain_rssi_stats(
|
|||
}
|
||||
|
||||
if (i == ev->num_chain_rssi_stats) {
|
||||
cp_stats_err("vdev_id %d not found", last_req.vdev_id);
|
||||
cp_stats_debug("vdev_id %d not found", last_req.vdev_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue