qcacld-3.0: Add support to update ch_width of peer to DP
When the STA connects to a peer, max supported ch_width is calculated and configured to firmware. This is calculated from self and peer capability in case of STA/SAP. Cache this in peer object. Currently, data path module isn't aware of the final ch_width configured. Fetch the phymode and covert it to the DP expected ch_width format. Update the ch_width to DP. phymode of NDI peers is not maintained in host. So, get the NDI self phymode and update to DP. Change-Id: I25993053ae1f129c8fc9a352a05c788451060b2d CRs-Fixed: 3227453
This commit is contained in:

committed by
Madan Koyyalamudi

parent
82fbeff919
commit
db79080a21
@@ -3792,4 +3792,23 @@ QDF_STATUS wlan_connect_hw_mode_change_resp(struct wlan_objmgr_pdev *pdev,
|
||||
uint8_t vdev_id,
|
||||
wlan_cm_id cm_id,
|
||||
QDF_STATUS status);
|
||||
|
||||
/**
|
||||
* wlan_mlme_get_ch_width_from_phymode() - Convert phymode to ch_width
|
||||
* @phy_mode: Phy mode
|
||||
*
|
||||
* Return: enum phy_ch_width
|
||||
*/
|
||||
enum phy_ch_width
|
||||
wlan_mlme_get_ch_width_from_phymode(enum wlan_phymode phy_mode);
|
||||
|
||||
/**
|
||||
* wlan_mlme_get_peer_ch_width() - get ch_width of the given peer
|
||||
* @psoc: psoc context
|
||||
* @mac: peer mac
|
||||
*
|
||||
* Return: enum phy_ch_width
|
||||
*/
|
||||
enum phy_ch_width
|
||||
wlan_mlme_get_peer_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t *mac);
|
||||
#endif /* _WLAN_MLME_API_H_ */
|
||||
|
Reference in New Issue
Block a user