qcacld-3.0: Add sr_enable_mode ini

Add sr_enable_mode ini to check SR(Spatial Reuse)
can be enabled for non-STA mode or not. If SR
can't be enabled for non-STA mode and concurrency
is not allowed then don't allow any SR operation.

Change-Id: I876882c48c54f216bc1d0efa4dccce63f2a2e63c
CRs-Fixed: 3311374
This commit is contained in:
Sheenam Monga
2022-10-28 10:40:00 +05:30
committed by Madan Koyyalamudi
parent b829eb06a6
commit d7ce2c63fe
7 changed files with 123 additions and 1 deletions

View File

@@ -3984,4 +3984,17 @@ wlan_mlme_get_ch_width_from_phymode(enum wlan_phymode phy_mode);
*/
enum phy_ch_width
wlan_mlme_get_peer_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t *mac);
#if defined(WLAN_FEATURE_SR)
/**
* wlan_mlme_get_sr_enable_modes() - get mode for which SR is enabled
*
* @psoc: psoc context
* @val: pointer to hold the value of SR(Spatial Reuse) enable modes
*
* Return: void
*/
void
wlan_mlme_get_sr_enable_modes(struct wlan_objmgr_psoc *psoc, uint8_t *val);
#endif
#endif /* _WLAN_MLME_API_H_ */