qcacmn: Update dfs channel punc pattern from mlme

With the introduction of 11BE, channel puncturing becomes possible.
Hence, the DFS channel structure should be updated with channel puncturing
information.

Change-Id: Ia1bccd55e7fadde2a49fb08bd30ff6b5b2cc6ba1
此提交包含在:
Vignesh U
2021-10-12 13:13:48 +05:30
提交者 Madan Koyyalamudi
父節點 1bc1af8b6c
當前提交 dd76700b7d
共有 6 個檔案被更改,包括 75 行新增4 行删除

查看文件

@@ -134,6 +134,8 @@ extern struct dfs_to_mlme global_dfs_to_mlme;
* @dfs_ch_mhz_freq_seg1: Channel center frequency of primary segment in MHZ.
* @dfs_ch_mhz_freq_seg2: Channel center frequency of secondary segment in MHZ
* applicable only for 80+80MHZ mode of operation.
* @dfs_ch_op_puncturing: Puncturing pattern followed in current operating
* channel.
* @is_channel_updated: Boolean to represent channel update.
*/
#ifdef CONFIG_CHAN_FREQ_API
@@ -147,6 +149,7 @@ tgt_dfs_set_current_channel_for_freq(struct wlan_objmgr_pdev *pdev,
uint8_t dfs_ch_vhtop_ch_freq_seg2,
uint16_t dfs_ch_mhz_freq_seg1,
uint16_t dfs_ch_mhz_freq_seg2,
uint16_t dfs_ch_op_puncturing,
bool *is_channel_updated);
#endif

查看文件

@@ -101,6 +101,7 @@ tgt_dfs_set_current_channel_for_freq(struct wlan_objmgr_pdev *pdev,
uint8_t dfs_chan_vhtop_freq_seg2,
uint16_t dfs_chan_mhz_freq_seg1,
uint16_t dfs_chan_mhz_freq_seg2,
uint16_t dfs_chan_punc_pattern,
bool *is_channel_updated)
{
struct wlan_dfs *dfs;
@@ -123,6 +124,7 @@ tgt_dfs_set_current_channel_for_freq(struct wlan_objmgr_pdev *pdev,
dfs_chan_vhtop_freq_seg2,
dfs_chan_mhz_freq_seg1,
dfs_chan_mhz_freq_seg2,
dfs_chan_punc_pattern,
is_channel_updated);
return QDF_STATUS_SUCCESS;