qcacmn: Add 6GHz Monitor Mode Support
Add monitor mode support to capture packets over 6GHz frequencies by getting capture frequency from pdev. Change freq type to qdf_freq_t. Change-Id: I7b6edc43e254dc98a3c2939c369874bec9d16ddd CRs-Fixed: 2568970
This commit is contained in:
@@ -7016,6 +7016,21 @@ void dp_pdev_set_monitor_channel(struct cdp_pdev *pdev_handle, int chan_num)
|
||||
pdev->mon_chan_num = chan_num;
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_pdev_set_monitor_frequency() - set monitor frequency in pdev
|
||||
* @pdev_handle: Datapath PDEV handle
|
||||
* @chan_freq: Channel frequency
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
static
|
||||
void dp_pdev_set_monitor_frequency(struct cdp_pdev *pdev_handle, qdf_freq_t chan_freq)
|
||||
{
|
||||
struct dp_pdev *pdev = (struct dp_pdev *)pdev_handle;
|
||||
|
||||
pdev->mon_chan_freq = chan_freq;
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_deliver_tx_mgmt() - Deliver mgmt frame for tx capture
|
||||
* @pdev_handle: Datapath PDEV handle
|
||||
@@ -9817,6 +9832,7 @@ static struct cdp_mon_ops dp_ops_mon = {
|
||||
/* Added support for HK advance filter */
|
||||
.txrx_set_advance_monitor_filter = dp_pdev_set_advance_monitor_filter,
|
||||
.txrx_monitor_record_channel = dp_pdev_set_monitor_channel,
|
||||
.txrx_monitor_record_frequency = dp_pdev_set_monitor_frequency,
|
||||
.txrx_deliver_tx_mgmt = dp_deliver_tx_mgmt,
|
||||
.txrx_set_bsscolor = dp_mon_set_bsscolor,
|
||||
};
|
||||
|
Reference in New Issue
Block a user