qca-wifi: CFR: Introduction of new flag to enable RCC

A new flag "is_cfr_rcc_capable", is introduced to enable RCC.
Currently, this flag is enabled only for QCA6018.

Change-Id: Ifdd1922c655c0bb743147e3f51d3ca32cac3dd2e
Cette révision appartient à :
Adwait Nayak
2020-02-09 01:46:03 +05:30
Parent aac53d0bf9
révision 22aef01be3
3 fichiers modifiés avec 4 ajouts et 1 suppressions

Voir le fichier

@@ -1496,6 +1496,7 @@ QDF_STATUS cfr_6018_init_pdev(struct wlan_objmgr_psoc *psoc,
return status;
}
pcfr->is_cfr_rcc_capable = 1;
pcfr->rcc_param.pdev_id = wlan_objmgr_pdev_get_pdev_id(pdev);
pcfr->rcc_param.modified_in_curr_session = MAX_RESET_CFG_ENTRY;
pcfr->rcc_param.num_grp_tlvs = MAX_TA_RA_ENTRIES;

Voir le fichier

@@ -463,6 +463,7 @@ struct cfr_rcc_param {
* rx_tlv_evt_cnt: Number of CFR WDI events from datapath
* lut_age_timer: Timer to flush pending TXRX/DBR events in lookup table
* lut_timer_init: flag to determine if lut_age_timer is initialized or not
* is_cfr_rcc_capable: Flag to determine if RCC is enabled or not.
* bb_captured_channel_cnt: No. of PPDUs for which MAC sent Freeze TLV to PHY
* bb_captured_timeout_cnt: No. of PPDUs for which CFR filter criteria matched
* but MAC did not send Freeze TLV to PHY as time exceeded freeze tlv delay
@@ -521,6 +522,7 @@ struct pdev_cfr {
uint64_t rx_tlv_evt_cnt;
qdf_timer_t lut_age_timer;
uint8_t lut_timer_init;
uint8_t is_cfr_rcc_capable;
uint64_t bb_captured_channel_cnt;
uint64_t bb_captured_timeout_cnt;
uint64_t rx_loc_info_valid_cnt;

Voir le fichier

@@ -312,7 +312,7 @@ QDF_STATUS dev_sanity_check(struct wlan_objmgr_vdev *vdev,
return QDF_STATUS_E_NULL_VALUE;
}
if (!(*ppcfr)->is_cfr_capable) {
if (!(*ppcfr)->is_cfr_rcc_capable) {
cfr_err("cfr is not supported on this chip\n");
wlan_objmgr_pdev_release_ref(*ppdev, WLAN_CFR_ID);
return QDF_STATUS_E_NOSUPPORT;