qcacmn: Fix CTL power configuration issued through acfg tool
When CTL array is configured using acfg_tool, the CTL values are not impacting powers due to incorrect band value passed to the FW. It is found that the memory copy for band and CTL array are done together in a single operation. However, with convergence, both acfg_tool and wifitool will call the same underlying WMI API to set the CTL table. In order for concurrent working, we need to copy the band value separately for acfg_tool, before copying the CTL array. This fixes memory corruption that is currently seen as evident from the garbage value for CTL band. CRs-Fixed: 1087168 Change-Id: I42f6bc39eb3930e8c995ff76294b7d77676f2299
This commit is contained in:

committed by
qcabuildsw

parent
e3ec8493d1
commit
07918bf4b7
@@ -3969,15 +3969,15 @@ struct ratepwr_table_params {
|
||||
/**
|
||||
* struct ctl_table_params - Ctl table params
|
||||
* @ctl_array: pointer to ctl array
|
||||
* @ctl_len: ctl length
|
||||
* @ctl_cmd_len: ctl command length
|
||||
* @is_acfg_ctl: is acfg_ctl table
|
||||
*/
|
||||
struct ctl_table_params {
|
||||
uint8_t *ctl_array;
|
||||
uint16_t ctl_len;
|
||||
bool is_acfg_ctl;
|
||||
uint16_t ctl_cmd_len;
|
||||
uint32_t target_type;
|
||||
bool is_2g;
|
||||
uint32_t ctl_band;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user