qcacmn: Update the peer rssi for entire packet bandwidth

Peer rssi is updated with the rssi measured on primary 20 and
not on the entire bandwidth.
Scale the peer rssi value by packet bandwidth offset.
Packet bandwidth offset for packet bandwidth of 20/40/80/160 is
0/3/6/9 dB.

Change-Id: I13eb8c17ec9828c0025d6b3a92a8b26b971268a1
CRs-Fixed: 2518598
This commit is contained in:
Shashikala Prabhu
2019-09-09 15:42:10 +05:30
committed by nshrivas
parent 11b7ea2bc5
commit fdf5499a36
2 changed files with 36 additions and 1 deletions

View File

@@ -124,6 +124,20 @@
#define CDP_TXRX_RATECODE_PREM_MASK 0x3
#define CDP_TXRX_RATECODE_PREM_LSB 6
/* Below BW_GAIN should be added to the SNR value of every ppdu based on the
* bandwidth. This table is obtained from HALPHY.
* BW BW_Gain
* 20 0
* 40 3dBm
* 80 6dBm
* 160/80P80 9dBm
*/
#define PKT_BW_GAIN_20MHZ 0
#define PKT_BW_GAIN_40MHZ 3
#define PKT_BW_GAIN_80MHZ 6
#define PKT_BW_GAIN_160MHZ 9
/*
* cdp_tx_transmit_type: Transmit type index
* SU: SU Transmit type index