qcacmn: Add API to get center frequency of sec80 seg

Add helper API to get the center frequency of secondary 80 MHz
segment. Make this API available to Spectral target if layer
via rxops.

CRs-Fixed: 2523690
Change-Id: If1cad90d9b27d1461e802b921aecda07031b1e0b
This commit is contained in:
Edayilliam Jayadev
2019-09-09 16:33:09 +05:30
committed by nshrivas
父節點 7a0394d444
當前提交 499d29e713
共有 4 個文件被更改,包括 55 次插入0 次删除

查看文件

@@ -1290,6 +1290,30 @@ int16_t target_if_vdev_get_chan_freq(struct wlan_objmgr_vdev *vdev)
vdev);
}
/**
* target_if_vdev_get_chan_freq_seg2() - Get center frequency of secondary 80 of
* given vdev
* @vdev: Pointer to vdev
*
* Get the center frequency of secondary 80 of given vdev
*
* Return: center frequency of secondary 80
*/
static inline
int16_t target_if_vdev_get_chan_freq_seg2(struct wlan_objmgr_vdev *vdev)
{
struct wlan_objmgr_psoc *psoc = NULL;
psoc = wlan_vdev_get_psoc(vdev);
if (!psoc) {
spectral_err("psoc is NULL");
return -EINVAL;
}
return psoc->soc_cb.rx_ops.sptrl_rx_ops.sptrlro_vdev_get_chan_freq_seg2(
vdev);
}
/**
* target_if_vdev_get_ch_width() - Get the operating channel bandwidth of a
* given vdev