qcacld-3.0: Fix mgmt tx from supplicant failed on 6Ghz chan

Currently wlan_hdd_mgmt_tx path is still using legacy API to convert
channel frequency to number, it is not applicable for 6Ghz channel if
convert it back from number to frequency.

Fix it by replace all places where using legacy API to convert channel
and use channel frequency from supplicant directly. It can fix mgmt tx
from supplicant on 6Ghz channel.

Change-Id: I60fe37d7d716eeaceaa00f3fb59c77b629ebacac
CRs-Fixed: 3024898
This commit is contained in:
Will Huang
2021-09-06 17:07:50 +08:00
committed by Madan Koyyalamudi
parent c444f1ac06
commit 7b2c4923c7
7 changed files with 19 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2019, 2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -67,7 +67,7 @@ struct p2p_ps_params {
*/
struct p2p_roc_req {
uint32_t vdev_id;
uint32_t chan;
qdf_freq_t chan;
uint32_t phy_mode;
uint32_t duration;
};
@@ -96,7 +96,7 @@ struct p2p_event {
uint32_t vdev_id;
enum p2p_roc_event roc_event;
uint64_t cookie;
uint32_t chan;
qdf_freq_t chan;
uint32_t duration;
};