mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Add CDP API to configure mgmt tx power
Add CDP API to configure mgmt TX power. Change-Id: I68449d2f22487017b680f18c811853576a36a8e9 CRs-Fixed: 2098375
This commit is contained in:
parent
2da6acd74b
commit
e2f4335d23
2 changed files with 20 additions and 0 deletions
|
|
@ -478,4 +478,21 @@ cdp_get_sec_type(ol_txrx_soc_handle soc, struct cdp_peer *peer, uint8_t sec_idx)
|
|||
return A_ERROR;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_set_mgmt_tx_power(): function to set tx power for mgmt frames
|
||||
* @vdev_handle: vdev handle
|
||||
* @subtype_index: subtype
|
||||
* @tx_power: Tx power
|
||||
* Return: None
|
||||
*/
|
||||
static inline int cdp_set_mgmt_tx_power(ol_txrx_soc_handle soc,
|
||||
struct cdp_vdev *vdev, uint8_t subtype, uint8_t tx_power)
|
||||
{
|
||||
if (soc->ops->ctrl_ops->txrx_update_mgmt_txpow_vdev)
|
||||
soc->ops->ctrl_ops->txrx_update_mgmt_txpow_vdev(vdev,
|
||||
subtype, tx_power);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -412,6 +412,9 @@ struct cdp_ctrl_ops {
|
|||
int (*txrx_wdi_event_unsub)(struct cdp_pdev *pdev, void *event_cb_sub,
|
||||
uint32_t event);
|
||||
int (*txrx_get_sec_type)(struct cdp_peer *peer, uint8_t sec_idx);
|
||||
|
||||
void (*txrx_update_mgmt_txpow_vdev)(struct cdp_vdev *vdev,
|
||||
uint8_t subtype, uint8_t tx_power);
|
||||
};
|
||||
|
||||
struct cdp_me_ops {
|
||||
|
|
|
|||
Loading…
Reference in a new issue