qcacld-3.0: Add support to handle PEER_OPER_MODE_CHANGE event

Firmware sends PEER_OPER_MODE_CHANGE event to host in SAP
mode when a connected client indicates upgrade/downgrade
of its bandwidth.
Host needs this data as any further SAP bandwidth
upgrade/downgrade should honor the indicated bandwidth for
that specific peer.

Change-Id: I50fecf670b47c56e3f33b8519fde1d5eaec7523f
CRs-Fixed: 3604716
This commit is contained in:
Vijay Patil
2023-08-07 16:37:51 +05:30
zatwierdzone przez Rahul Choudhary
rodzic 35c0700b17
commit 52e5d326f6
8 zmienionych plików z 359 dodań i 0 usunięć

Wyświetl plik

@@ -3524,6 +3524,28 @@ wlan_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
}
#endif
/**
* wlan_mlme_set_peer_indicated_ch_width() - Set peer indicated channel width
* @psoc: pointer to psoc object
* @data: Pointer to peer operating mode change event status
*
* Return: QDF Status
*/
QDF_STATUS
wlan_mlme_set_peer_indicated_ch_width(struct wlan_objmgr_psoc *psoc,
struct peer_oper_mode_event *data);
/**
* wlan_mlme_get_peer_indicated_ch_width() - Get peer indicated channel width
* @psoc: pointer to psoc object
* @data: Pointer to peer operating mode change event status
*
* Return: QDF Status
*/
QDF_STATUS
wlan_mlme_get_peer_indicated_ch_width(struct wlan_objmgr_psoc *psoc,
struct peer_oper_mode_event *data);
/**
* wlan_mlme_set_ft_over_ds() - Update ft_over_ds
* @psoc: pointer to psoc object

Wyświetl plik

@@ -3030,4 +3030,34 @@ struct sap_sel_ch_info {
struct sap_ch_info *ch_info;
uint8_t num_ch;
};
/**
* enum mlme_peer_oper_mode_ind - Peer mode indication type
* @mlme_peer_ind_smps: spatial multiplexing power save
* @mlme_peer_ind_omn: Operating mode notification
* @mlme_peer_ind_omi: Operating mode indication
*/
enum mlme_peer_oper_mode_ind {
mlme_peer_ind_smps,
mlme_peer_ind_omn,
mlme_peer_ind_omi,
};
/**
* struct peer_oper_mode_event - structure for peer oper mode indication data
* @peer_mac_address: mac address of peer
* @ind_type: indication type of type @enum mlme_peer_oper_mode_ind
* @new_rxnss: New Rx NSS
* @new_bw: New bandwidth
* @new_txnss: New Tx NSS, valid only for mlme_peer_ind_omi
* @new_disablemu: Disabled MU mode, valid only for mlme_peer_ind_omi
*/
struct peer_oper_mode_event {
struct qdf_mac_addr peer_mac_address;
uint32_t ind_type;
uint32_t new_rxnss;
uint32_t new_bw;
uint32_t new_txnss;
uint32_t new_disablemu;
};
#endif