qcacld-3.0: Use freq instead of chan num for TDLS pref offchannel

Use frequency instead of chan num for processing TDLS offchannel
req for preferred offchannel.
Since, after introduction of TDLS on 6 GHz band it is better to
process offchannel in frequency instead of channel numbers as
some of the channel numbers are repeated for 6 GHz.

Change-Id: Icd7084b9f3c407ad0ad104b7f0d2230e31e0b10d
CRs-Fixed: 3234920
此提交包含在:
Utkarsh Bhatnagar
2022-06-30 02:43:36 +05:30
提交者 Madan Koyyalamudi
父節點 c71b2f66dc
當前提交 fa29fba7e4
共有 7 個檔案被更改,包括 205 行新增75 行删除

查看文件

@@ -50,6 +50,8 @@
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_MIN 1
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX 165
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEF 36
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_FRQ_DEF 5180
#define AC_PRIORITY_NUM 4
@@ -847,6 +849,7 @@ struct tdls_oper_request {
* @vdev: vdev object
* @peer_addr: MAC address of the TDLS peer
* @chan: channel
* @ch_freq: ch_freq
* @max_latency: maximum latency
* @op_class: operation class
* @min_bandwidth: minimal bandwidth
@@ -856,6 +859,7 @@ struct tdls_oper_config_force_peer_request {
struct wlan_objmgr_vdev *vdev;
uint8_t peer_addr[QDF_MAC_ADDR_SIZE];
uint32_t chan;
qdf_freq_t ch_freq;
uint32_t max_latency;
uint32_t op_class;
uint32_t min_bandwidth;