mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
wifi: iwlwifi: mvm: remove unneeded argument
iwl_mvm_set_key_rx_seq is called only once when the installed argument is false. Remove this argument. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250709081300.2586112afd70.Iddf9a2b24546cb3a1506d68ca41ed215f88cff5c@changeid
This commit is contained in:
parent
cb09c80f59
commit
915d352256
|
|
@ -1787,8 +1787,7 @@ static void iwl_mvm_set_key_rx_seq_idx(struct ieee80211_key_conf *key,
|
|||
}
|
||||
|
||||
static void iwl_mvm_set_key_rx_seq(struct ieee80211_key_conf *key,
|
||||
struct iwl_wowlan_status_data *status,
|
||||
bool installed)
|
||||
struct iwl_wowlan_status_data *status)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -1812,7 +1811,7 @@ static void iwl_mvm_set_key_rx_seq(struct ieee80211_key_conf *key,
|
|||
|
||||
/* handle the case where we didn't, last key only */
|
||||
if (status->gtk_seq[i].key_id == -1 &&
|
||||
(!status->num_of_gtk_rekeys || installed))
|
||||
(!status->num_of_gtk_rekeys))
|
||||
iwl_mvm_set_key_rx_seq_idx(key, status, i);
|
||||
}
|
||||
}
|
||||
|
|
@ -1963,7 +1962,7 @@ static void iwl_mvm_d3_update_keys(struct ieee80211_hw *hw,
|
|||
(status->gtk[1].len && keyidx == status->gtk[1].id))) {
|
||||
ieee80211_remove_key(key);
|
||||
} else {
|
||||
iwl_mvm_set_key_rx_seq(key, data->status, false);
|
||||
iwl_mvm_set_key_rx_seq(key, data->status);
|
||||
}
|
||||
break;
|
||||
case WLAN_CIPHER_SUITE_BIP_GMAC_128:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user