mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
wifi: iwlwifi: mvm: zero iwl_geo_tx_power_profiles_cmd before sending
Otherwise we may send garbage. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20260319204647.2d494b0f4692.I9afd0fa6b2ea5a27118144ac4e3bbbedc2089c10@changeid
This commit is contained in:
parent
f473f60916
commit
5562b3bbee
|
|
@ -908,7 +908,7 @@ int iwl_mvm_sar_select_profile(struct iwl_mvm *mvm, int prof_a, int prof_b)
|
|||
|
||||
int iwl_mvm_get_sar_geo_profile(struct iwl_mvm *mvm)
|
||||
{
|
||||
union iwl_geo_tx_power_profiles_cmd geo_tx_cmd;
|
||||
union iwl_geo_tx_power_profiles_cmd geo_tx_cmd = {};
|
||||
struct iwl_geo_tx_power_profiles_resp *resp;
|
||||
u16 len;
|
||||
int ret;
|
||||
|
|
@ -960,7 +960,7 @@ int iwl_mvm_get_sar_geo_profile(struct iwl_mvm *mvm)
|
|||
static int iwl_mvm_sar_geo_init(struct iwl_mvm *mvm)
|
||||
{
|
||||
u32 cmd_id = WIDE_ID(PHY_OPS_GROUP, PER_CHAIN_LIMIT_OFFSET_CMD);
|
||||
union iwl_geo_tx_power_profiles_cmd cmd;
|
||||
union iwl_geo_tx_power_profiles_cmd cmd = {};
|
||||
u16 len;
|
||||
u32 n_bands;
|
||||
u32 n_profiles;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user