qcacmn: Add host support for db2dbm RSSI changes

Add host support for db2dbm RSSI changes. Firmware
indicates this capability when underlying hardware
has RSSI reporting feature. Based on this capability
host will know if firmware sends SNR or RSSI. If no
capablity is present then host will convert SNR to
rssi using a fixed offset of -96. If capability is
present host will directly use the rssi as it is.

Change-Id: I9058f16c6280d466feb96cf88a8a0d8cd7b02032
CRs-Fixed: 2364025
This commit is contained in:
Yeshwanth Sriram Guntuka
2018-09-21 15:08:46 +05:30
committed by nshrivas
parent 5868efa4bf
commit c4a14ea149
13 changed files with 110 additions and 51 deletions

View File

@@ -652,7 +652,8 @@ enum mgmt_frame_type {
};
#define WLAN_MGMT_TXRX_HOST_MAX_ANTENNA 4
#define WLAN_INVALID_PER_CHAIN_RSSI 0x80
#define WLAN_INVALID_PER_CHAIN_RSSI 0xFF
#define WLAN_INVALID_PER_CHAIN_SNR 0x80
#define WLAN_NOISE_FLOOR_DBM_DEFAULT -96
/**
* struct mgmt_rx_event_params - host mgmt header params