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:
Kiran Venkatappa
2017-08-23 22:14:44 +05:30
committed by snandini
parent 2da6acd74b
commit e2f4335d23
2 changed files with 20 additions and 0 deletions

View File

@@ -478,4 +478,21 @@ cdp_get_sec_type(ol_txrx_soc_handle soc, struct cdp_peer *peer, uint8_t sec_idx)
return A_ERROR; 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 #endif

View File

@@ -412,6 +412,9 @@ struct cdp_ctrl_ops {
int (*txrx_wdi_event_unsub)(struct cdp_pdev *pdev, void *event_cb_sub, int (*txrx_wdi_event_unsub)(struct cdp_pdev *pdev, void *event_cb_sub,
uint32_t event); uint32_t event);
int (*txrx_get_sec_type)(struct cdp_peer *peer, uint8_t sec_idx); 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 { struct cdp_me_ops {