qcacld-3.0: Rename variables name chan to chan_freq of wlan_hdd_mgmt_tx

We have fixed using channel number as internal parameter instead of
chan frequency with change I60fe37d7d716eeaceaa00f3fb59c77b629ebacac,
but variables name are still chan which might cause confused to reader.

Rename all places where "chan" to "chan_freq", which actually channel
frequency used. And alter miss APIs which still expect channel number.

Change-Id: I948cbad133a17093f49384b563966d2c53b51707
CRs-Fixed: 3033951
This commit is contained in:
Will Huang
2021-09-10 10:40:22 +08:00
committed by Madan Koyyalamudi
parent 9e8cf68953
commit a54bb30ccb
7 changed files with 115 additions and 97 deletions

View File

@@ -61,13 +61,13 @@ struct p2p_ps_params {
/**
* struct p2p_roc_req - P2P roc request
* @vdev_id: Vdev id on which this request has come
* @chan: Chan for which this RoC has been requested
* @chan_freq: Chan frequency for which this RoC has been requested
* @phy_mode: PHY mode
* @duration: Duration for the RoC
*/
struct p2p_roc_req {
uint32_t vdev_id;
qdf_freq_t chan;
qdf_freq_t chan_freq;
uint32_t phy_mode;
uint32_t duration;
};
@@ -89,14 +89,14 @@ enum p2p_roc_event {
* @vdev_id: Vdev id
* @roc_event: RoC event
* @cookie: Cookie which is given to supplicant for this roc req
* @chan: Chan for which this RoC has been requested
* @chan_freq: Chan frequency for which this RoC has been requested
* @duration: Duration for the RoC
*/
struct p2p_event {
uint32_t vdev_id;
enum p2p_roc_event roc_event;
uint64_t cookie;
qdf_freq_t chan;
qdf_freq_t chan_freq;
uint32_t duration;
};
@@ -137,7 +137,7 @@ struct p2p_tx_cnf {
/**
* struct p2p_mgmt_tx - p2p mgmt tx structure
* @vdev_id: Vdev id
* @chan: Chan for which this RoC has been requested
* @chan_freq: Chan frequency for which this RoC has been requested
* @wait: Duration for the RoC
* @len: Length of tx buffer
* @no_cck: Required cck or not
@@ -147,7 +147,7 @@ struct p2p_tx_cnf {
*/
struct p2p_mgmt_tx {
uint32_t vdev_id;
uint32_t chan;
qdf_freq_t chan_freq;
uint32_t wait;
uint32_t len;
uint32_t no_cck;