qcacld-3.0: Disable peer_unmap_conf_support for FTM mode

In FTM mode, no peer is created in the host. Currently, since
peer_unmap_conf_support feature is enabled, FW is expecting
WMA_SEND_PEER_UNMAP_CONF from host to remove the peer Id from AST.
But host never send this WMI CMD in FTM mode.

Disable peer_unmap_conf_support in FTM mode which allow FW to
delete the peer Id without any WMI CMD expectation from host.

Change-Id: Idf9082adc81187346563f3aedf1f1657164f03cc
CRs-Fixed: 2608929
Šī revīzija ir iekļauta:
Alok Kumar
2020-01-22 20:56:59 +05:30
revīziju iesūtīja nshrivas
vecāks ef3a58101b
revīzija a73938f684
6 mainīti faili ar 38 papildinājumiem un 1 dzēšanām

Parādīt failu

@@ -2344,4 +2344,13 @@ wlan_mlme_get_mgmt_max_retry(struct wlan_objmgr_psoc *psoc,
QDF_STATUS
wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
bool *enable_ring_buffer);
/**
* wlan_mlme_get_peer_unmap_conf() - Indicate if peer unmap confirmation
* support is enabled or disabled
* @psoc: pointer to psoc object
*
* Return: true if peer unmap confirmation support is enabled, else false
*/
bool wlan_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc);
#endif /* _WLAN_MLME_API_H_ */

Parādīt failu

@@ -1126,6 +1126,7 @@ struct wlan_mlme_chainmask {
* @bmiss_skip_full_scan: Decide if full scan can be skipped in firmware if no
* candidate is found in partial scan based on channel map
* @enable_ring_buffer: Decide to enable/disable ring buffer for bug report
* @enable_peer_unmap_conf_support: Indicate whether to send conf for peer unmap
*/
struct wlan_mlme_generic {
enum band_info band_capability;
@@ -1160,6 +1161,7 @@ struct wlan_mlme_generic {
uint8_t mgmt_retry_max;
bool bmiss_skip_full_scan;
bool enable_ring_buffer;
bool enable_peer_unmap_conf_support;
};
/*

Parādīt failu

@@ -3957,4 +3957,16 @@ ucfg_mlme_get_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc,
return wlan_mlme_get_ignore_fw_reg_offload_ind(psoc, disabled);
}
/**
* ucfg_mlme_get_peer_unmap_conf() - Indicate if peer unmap confirmation
* support is enabled or disabled
* @psoc: pointer to psoc object
*
* Return: true if peer unmap confirmation support is enabled, else false
*/
static inline
QDF_STATUS ucfg_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc)
{
return wlan_mlme_get_peer_unmap_conf(psoc);
}
#endif /* _WLAN_MLME_UCFG_API_H_ */

Parādīt failu

@@ -3700,3 +3700,14 @@ wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
*enable_ring_buffer = mlme_obj->cfg.gen.enable_ring_buffer;
return QDF_STATUS_SUCCESS;
}
bool wlan_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return false;
return mlme_obj->cfg.gen.enable_peer_unmap_conf_support;
}