* [PATCH 0/6] iwlwifi: Cleaning up deadcode
@ 2024-12-23 1:31 linux
2024-12-23 1:31 ` [PATCH 1/6] iwlwifi: Remove unused iwl_rx_ant_restriction linux
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:31 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
Hi,
This is a collection of removal of functions
that have been used for more than a few years.
There are also a handful of string and one structure
removal that are just left overs from a recent commit.
They're all entire function/structure/string removal.
Build tested only.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Dr. David Alan Gilbert (6):
iwlwifi: Remove unused iwl_rx_ant_restriction
iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif
iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions
iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta
iwlwifi: Remove unused iwl_bz_name
iwlwifi: Remove old device data
.../net/wireless/intel/iwlwifi/cfg/22000.c | 1 -
.../net/wireless/intel/iwlwifi/cfg/ax210.c | 8 --
drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 1 -
drivers/net/wireless/intel/iwlwifi/dvm/tt.c | 11 --
drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 1 -
.../net/wireless/intel/iwlwifi/iwl-config.h | 4 -
.../intel/iwlwifi/mvm/ftm-initiator.c | 101 ------------------
.../intel/iwlwifi/mvm/ftm-responder.c | 86 ---------------
.../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 23 ----
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 12 ---
drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 61 -----------
drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 -
12 files changed, 313 deletions(-)
--
2.47.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/6] iwlwifi: Remove unused iwl_rx_ant_restriction
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
@ 2024-12-23 1:31 ` linux
2024-12-23 1:31 ` [PATCH 2/6] iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif linux
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:31 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
iwl_rx_ant_restriction() was added in 2009 by
commit 46f9381aa3fb ("iwlwifi: Thermal Throttling Management - part 2")
but never used.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/net/wireless/intel/iwlwifi/dvm/tt.c | 11 -----------
drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 1 -
2 files changed, 12 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/tt.c b/drivers/net/wireless/intel/iwlwifi/dvm/tt.c
index 43e8d04d5a8b..e1d78550e443 100644
--- a/drivers/net/wireless/intel/iwlwifi/dvm/tt.c
+++ b/drivers/net/wireless/intel/iwlwifi/dvm/tt.c
@@ -124,17 +124,6 @@ enum iwl_antenna_ok iwl_tx_ant_restriction(struct iwl_priv *priv)
return restriction->tx_stream;
}
-enum iwl_antenna_ok iwl_rx_ant_restriction(struct iwl_priv *priv)
-{
- struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
- struct iwl_tt_restriction *restriction;
-
- if (!priv->thermal_throttle.advanced_tt)
- return IWL_ANT_OK_MULTI;
- restriction = tt->restriction + tt->state;
- return restriction->rx_stream;
-}
-
#define CT_KILL_EXIT_DURATION (5) /* 5 seconds duration */
#define CT_KILL_WAITING_DURATION (300) /* 300ms duration */
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/tt.h b/drivers/net/wireless/intel/iwlwifi/dvm/tt.h
index 4af792d41dce..198f934a0d16 100644
--- a/drivers/net/wireless/intel/iwlwifi/dvm/tt.h
+++ b/drivers/net/wireless/intel/iwlwifi/dvm/tt.h
@@ -100,7 +100,6 @@ u8 iwl_tt_current_power_mode(struct iwl_priv *priv);
bool iwl_tt_is_low_power_state(struct iwl_priv *priv);
bool iwl_ht_enabled(struct iwl_priv *priv);
enum iwl_antenna_ok iwl_tx_ant_restriction(struct iwl_priv *priv);
-enum iwl_antenna_ok iwl_rx_ant_restriction(struct iwl_priv *priv);
void iwl_tt_enter_ct_kill(struct iwl_priv *priv);
void iwl_tt_exit_ct_kill(struct iwl_priv *priv);
void iwl_tt_handler(struct iwl_priv *priv);
--
2.47.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/6] iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
2024-12-23 1:31 ` [PATCH 1/6] iwlwifi: Remove unused iwl_rx_ant_restriction linux
@ 2024-12-23 1:31 ` linux
2024-12-23 1:31 ` [PATCH 3/6] iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions linux
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:31 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
iwl_mvm_rx_missed_vap_notif() was added in 2019 by
commit 449a29d0fead ("iwlwifi: mvm: add notification for missed VAP")
but hasn't been used.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
.../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 23 -------------------
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 --
2 files changed, 25 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
index 51ee62ae70fb..40e419523d08 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
@@ -1975,26 +1975,3 @@ void iwl_mvm_channel_switch_error_notif(struct iwl_mvm *mvm,
ieee80211_channel_switch_disconnect(vif);
rcu_read_unlock();
}
-
-void iwl_mvm_rx_missed_vap_notif(struct iwl_mvm *mvm,
- struct iwl_rx_cmd_buffer *rxb)
-{
- struct iwl_rx_packet *pkt = rxb_addr(rxb);
- struct iwl_missed_vap_notif *mb = (void *)pkt->data;
- struct ieee80211_vif *vif;
- u32 id = le32_to_cpu(mb->mac_id);
-
- IWL_DEBUG_INFO(mvm,
- "missed_vap notify mac_id=%u, num_beacon_intervals_elapsed=%u, profile_periodicity=%u\n",
- le32_to_cpu(mb->mac_id),
- mb->num_beacon_intervals_elapsed,
- mb->profile_periodicity);
-
- rcu_read_lock();
-
- vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, true);
- if (vif)
- iwl_mvm_connection_loss(mvm, vif, "missed vap beacon");
-
- rcu_read_unlock();
-}
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
index 2ad615293c75..79771c9d4557 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
@@ -2093,8 +2093,6 @@ void iwl_mvm_mac_ctxt_recalc_tsf_id(struct iwl_mvm *mvm,
struct ieee80211_vif *vif);
void iwl_mvm_probe_resp_data_notif(struct iwl_mvm *mvm,
struct iwl_rx_cmd_buffer *rxb);
-void iwl_mvm_rx_missed_vap_notif(struct iwl_mvm *mvm,
- struct iwl_rx_cmd_buffer *rxb);
void iwl_mvm_channel_switch_start_notif(struct iwl_mvm *mvm,
struct iwl_rx_cmd_buffer *rxb);
void iwl_mvm_channel_switch_error_notif(struct iwl_mvm *mvm,
--
2.47.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/6] iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
2024-12-23 1:31 ` [PATCH 1/6] iwlwifi: Remove unused iwl_rx_ant_restriction linux
2024-12-23 1:31 ` [PATCH 2/6] iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif linux
@ 2024-12-23 1:31 ` linux
2024-12-23 1:32 ` [PATCH 4/6] iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta linux
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:31 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
iwl_mvm_ftm_respoder_add_pasn_sta() and
iwl_mvm_ftm_resp_remove_pasn_sta() were added in 2020 by
commit be82ecd3a5c8 ("iwlwifi: mvm: add an option to add PASN station")
but have remained unused.
Remove them.
After that removal iwl_mvm_add_pasn_sta() is now unused.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
.../intel/iwlwifi/mvm/ftm-responder.c | 86 -------------------
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 6 --
drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 61 -------------
drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 -
4 files changed, 157 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c
index e6e468e81ab3..83f6e508a094 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c
@@ -324,92 +324,6 @@ static void iwl_mvm_resp_del_pasn_sta(struct iwl_mvm *mvm,
kfree(sta);
}
-int iwl_mvm_ftm_respoder_add_pasn_sta(struct iwl_mvm *mvm,
- struct ieee80211_vif *vif,
- u8 *addr, u32 cipher, u8 *tk, u32 tk_len,
- u8 *hltk, u32 hltk_len)
-{
- int ret;
- struct iwl_mvm_pasn_sta *sta = NULL;
- struct iwl_mvm_pasn_hltk_data hltk_data = {
- .addr = addr,
- .hltk = hltk,
- };
- struct iwl_mvm_pasn_hltk_data *hltk_data_ptr = NULL;
-
- u8 cmd_ver = iwl_fw_lookup_cmd_ver(mvm->fw,
- WIDE_ID(LOCATION_GROUP, TOF_RESPONDER_DYN_CONFIG_CMD),
- 2);
-
- lockdep_assert_held(&mvm->mutex);
-
- if (cmd_ver < 3) {
- IWL_ERR(mvm, "Adding PASN station not supported by FW\n");
- return -EOPNOTSUPP;
- }
-
- if ((!hltk || !hltk_len) && (!tk || !tk_len)) {
- IWL_ERR(mvm, "TK and HLTK not set\n");
- return -EINVAL;
- }
-
- if (hltk && hltk_len) {
- if (!fw_has_capa(&mvm->fw->ucode_capa,
- IWL_UCODE_TLV_CAPA_SECURE_LTF_SUPPORT)) {
- IWL_ERR(mvm, "No support for secure LTF measurement\n");
- return -EINVAL;
- }
-
- hltk_data.cipher = iwl_mvm_cipher_to_location_cipher(cipher);
- if (hltk_data.cipher == IWL_LOCATION_CIPHER_INVALID) {
- IWL_ERR(mvm, "invalid cipher: %u\n", cipher);
- return -EINVAL;
- }
-
- hltk_data_ptr = &hltk_data;
- }
-
- if (tk && tk_len) {
- sta = kzalloc(sizeof(*sta) + tk_len, GFP_KERNEL);
- if (!sta)
- return -ENOBUFS;
-
- ret = iwl_mvm_add_pasn_sta(mvm, vif, &sta->int_sta, addr,
- cipher, tk, tk_len, &sta->keyconf);
- if (ret) {
- kfree(sta);
- return ret;
- }
-
- memcpy(sta->addr, addr, ETH_ALEN);
- list_add_tail(&sta->list, &mvm->resp_pasn_list);
- }
-
- ret = iwl_mvm_ftm_responder_dyn_cfg_v3(mvm, vif, NULL, hltk_data_ptr);
- if (ret && sta)
- iwl_mvm_resp_del_pasn_sta(mvm, vif, sta);
-
- return ret;
-}
-
-int iwl_mvm_ftm_resp_remove_pasn_sta(struct iwl_mvm *mvm,
- struct ieee80211_vif *vif, u8 *addr)
-{
- struct iwl_mvm_pasn_sta *sta, *prev;
-
- lockdep_assert_held(&mvm->mutex);
-
- list_for_each_entry_safe(sta, prev, &mvm->resp_pasn_list, list) {
- if (!memcmp(sta->addr, addr, ETH_ALEN)) {
- iwl_mvm_resp_del_pasn_sta(mvm, vif, sta);
- return 0;
- }
- }
-
- IWL_ERR(mvm, "FTM: PASN station %pM not found\n", addr);
- return -EINVAL;
-}
-
int iwl_mvm_ftm_start_responder(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf)
{
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
index 79771c9d4557..e8a82dc49892 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
@@ -2516,12 +2516,6 @@ void iwl_mvm_ftm_restart_responder(struct iwl_mvm *mvm,
struct ieee80211_bss_conf *bss_conf);
void iwl_mvm_ftm_responder_stats(struct iwl_mvm *mvm,
struct iwl_rx_cmd_buffer *rxb);
-int iwl_mvm_ftm_resp_remove_pasn_sta(struct iwl_mvm *mvm,
- struct ieee80211_vif *vif, u8 *addr);
-int iwl_mvm_ftm_respoder_add_pasn_sta(struct iwl_mvm *mvm,
- struct ieee80211_vif *vif,
- u8 *addr, u32 cipher, u8 *tk, u32 tk_len,
- u8 *hltk, u32 hltk_len);
void iwl_mvm_ftm_responder_clear(struct iwl_mvm *mvm,
struct ieee80211_vif *vif);
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
index cd74c181c260..1c65e285bc81 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
@@ -4317,67 +4317,6 @@ u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data)
return ieee80211_sn_sub(sn, tid_data->next_reclaimed);
}
-int iwl_mvm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
- struct iwl_mvm_int_sta *sta, u8 *addr, u32 cipher,
- u8 *key, u32 key_len,
- struct ieee80211_key_conf *keyconf)
-{
- int ret;
- u16 queue;
- struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
- unsigned int wdg_timeout =
- iwl_mvm_get_wd_timeout(mvm, vif);
- bool mld = iwl_mvm_has_mld_api(mvm->fw);
- u32 type = IWL_STA_LINK;
-
- if (mld)
- type = STATION_TYPE_PEER;
-
- ret = iwl_mvm_allocate_int_sta(mvm, sta, 0,
- NL80211_IFTYPE_UNSPECIFIED, type);
- if (ret)
- return ret;
-
- if (mld)
- ret = iwl_mvm_mld_add_int_sta_with_queue(mvm, sta, addr,
- mvmvif->deflink.fw_link_id,
- &queue,
- IWL_MAX_TID_COUNT,
- &wdg_timeout);
- else
- ret = iwl_mvm_add_int_sta_with_queue(mvm, mvmvif->id,
- mvmvif->color, addr, sta,
- &queue,
- IWL_MVM_TX_FIFO_BE);
- if (ret)
- goto out;
-
- keyconf->cipher = cipher;
- memcpy(keyconf->key, key, key_len);
- keyconf->keylen = key_len;
- keyconf->flags = IEEE80211_KEY_FLAG_PAIRWISE;
-
- if (mld) {
- /* The MFP flag is set according to the station mfp field. Since
- * we don't have a station, set it manually.
- */
- u32 key_flags =
- iwl_mvm_get_sec_flags(mvm, vif, NULL, keyconf) |
- IWL_SEC_KEY_FLAG_MFP;
- u32 sta_mask = BIT(sta->sta_id);
-
- ret = iwl_mvm_mld_send_key(mvm, sta_mask, key_flags, keyconf);
- } else {
- ret = iwl_mvm_send_sta_key(mvm, sta->sta_id, keyconf, false,
- 0, NULL, 0, 0, true);
- }
-
-out:
- if (ret)
- iwl_mvm_dealloc_int_sta(mvm, sta);
- return ret;
-}
-
void iwl_mvm_cancel_channel_switch(struct iwl_mvm *mvm,
struct ieee80211_vif *vif,
u32 id)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.h b/drivers/net/wireless/intel/iwlwifi/mvm/sta.h
index 4a3799ae7c18..4abc3ad0e6eb 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.h
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.h
@@ -597,10 +597,6 @@ void iwl_mvm_modify_all_sta_disable_tx(struct iwl_mvm *mvm,
void iwl_mvm_csa_client_absent(struct iwl_mvm *mvm, struct ieee80211_vif *vif);
int iwl_mvm_sta_ensure_queue(struct iwl_mvm *mvm, struct ieee80211_txq *txq);
void iwl_mvm_add_new_dqa_stream_wk(struct work_struct *wk);
-int iwl_mvm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
- struct iwl_mvm_int_sta *sta, u8 *addr, u32 cipher,
- u8 *key, u32 key_len,
- struct ieee80211_key_conf *key_conf_out);
void iwl_mvm_cancel_channel_switch(struct iwl_mvm *mvm,
struct ieee80211_vif *vif,
u32 id);
--
2.47.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/6] iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
` (2 preceding siblings ...)
2024-12-23 1:31 ` [PATCH 3/6] iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions linux
@ 2024-12-23 1:32 ` linux
2024-12-23 1:32 ` [PATCH 5/6] iwlwifi: Remove unused iwl_bz_name linux
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:32 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
iwl_mvm_ftm_add_pasn_sta() was added in 2020 by
commit 0739a7d70e00 ("iwlwifi: mvm: initiator: add option for adding a
PASN responder")
but hasn't been used.
Remove it.
That was the only caller of iwl_mvm_ftm_remove_pasn_sta().
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
.../intel/iwlwifi/mvm/ftm-initiator.c | 101 ------------------
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 4 -
2 files changed, 105 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
index b26141c30c61..f7034fa40c26 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
@@ -46,107 +46,6 @@ struct iwl_mvm_ftm_iter_data {
u8 *tk;
};
-int iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
- u8 *addr, u32 cipher, u8 *tk, u32 tk_len,
- u8 *hltk, u32 hltk_len)
-{
- struct iwl_mvm_ftm_pasn_entry *pasn = kzalloc(sizeof(*pasn),
- GFP_KERNEL);
- u32 expected_tk_len;
-
- lockdep_assert_held(&mvm->mutex);
-
- if (!pasn)
- return -ENOBUFS;
-
- iwl_mvm_ftm_remove_pasn_sta(mvm, addr);
-
- pasn->cipher = iwl_mvm_cipher_to_location_cipher(cipher);
-
- switch (pasn->cipher) {
- case IWL_LOCATION_CIPHER_CCMP_128:
- case IWL_LOCATION_CIPHER_GCMP_128:
- expected_tk_len = WLAN_KEY_LEN_CCMP;
- break;
- case IWL_LOCATION_CIPHER_GCMP_256:
- expected_tk_len = WLAN_KEY_LEN_GCMP_256;
- break;
- default:
- goto out;
- }
-
- /*
- * If associated to this AP and already have security context,
- * the TK is already configured for this station, so it
- * shouldn't be set again here.
- */
- if (vif->cfg.assoc) {
- struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
- struct ieee80211_bss_conf *link_conf;
- unsigned int link_id;
- struct ieee80211_sta *sta;
- u8 sta_id;
-
- rcu_read_lock();
- for_each_vif_active_link(vif, link_conf, link_id) {
- if (memcmp(addr, link_conf->bssid, ETH_ALEN))
- continue;
-
- sta_id = mvmvif->link[link_id]->ap_sta_id;
- sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]);
- if (!IS_ERR_OR_NULL(sta) && sta->mfp)
- expected_tk_len = 0;
- break;
- }
- rcu_read_unlock();
- }
-
- if (tk_len != expected_tk_len ||
- (hltk_len && hltk_len != sizeof(pasn->hltk))) {
- IWL_ERR(mvm, "Invalid key length: tk_len=%u hltk_len=%u\n",
- tk_len, hltk_len);
- goto out;
- }
-
- if (!expected_tk_len && !hltk_len) {
- IWL_ERR(mvm, "TK and HLTK not set\n");
- goto out;
- }
-
- memcpy(pasn->addr, addr, sizeof(pasn->addr));
-
- if (hltk_len) {
- memcpy(pasn->hltk, hltk, sizeof(pasn->hltk));
- pasn->flags |= IWL_MVM_PASN_FLAG_HAS_HLTK;
- }
-
- if (tk && tk_len)
- memcpy(pasn->tk, tk, sizeof(pasn->tk));
-
- list_add_tail(&pasn->list, &mvm->ftm_initiator.pasn_list);
- return 0;
-out:
- kfree(pasn);
- return -EINVAL;
-}
-
-void iwl_mvm_ftm_remove_pasn_sta(struct iwl_mvm *mvm, u8 *addr)
-{
- struct iwl_mvm_ftm_pasn_entry *entry, *prev;
-
- lockdep_assert_held(&mvm->mutex);
-
- list_for_each_entry_safe(entry, prev, &mvm->ftm_initiator.pasn_list,
- list) {
- if (memcmp(entry->addr, addr, sizeof(entry->addr)))
- continue;
-
- list_del(&entry->list);
- kfree(entry);
- return;
- }
-}
-
static void iwl_mvm_ftm_reset(struct iwl_mvm *mvm)
{
struct iwl_mvm_loc_entry *e, *t;
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
index e8a82dc49892..fbb2cf6ab0be 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
@@ -2530,10 +2530,6 @@ int iwl_mvm_ftm_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
void iwl_mvm_ftm_abort(struct iwl_mvm *mvm, struct cfg80211_pmsr_request *req);
void iwl_mvm_ftm_initiator_smooth_config(struct iwl_mvm *mvm);
void iwl_mvm_ftm_initiator_smooth_stop(struct iwl_mvm *mvm);
-int iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
- u8 *addr, u32 cipher, u8 *tk, u32 tk_len,
- u8 *hltk, u32 hltk_len);
-void iwl_mvm_ftm_remove_pasn_sta(struct iwl_mvm *mvm, u8 *addr);
/* TDLS */
--
2.47.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/6] iwlwifi: Remove unused iwl_bz_name
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
` (3 preceding siblings ...)
2024-12-23 1:32 ` [PATCH 4/6] iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta linux
@ 2024-12-23 1:32 ` linux
2024-12-23 1:32 ` [PATCH 6/6] iwlwifi: Remove old device data linux
2025-01-28 18:45 ` [PATCH 0/6] iwlwifi: Cleaning up deadcode Dr. David Alan Gilbert
6 siblings, 0 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:32 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
iwl_bz_name[] has been unused since the resent
commit 6795a37161fb ("wifi: iwlwifi: Print a specific device name.")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 1 -
drivers/net/wireless/intel/iwlwifi/iwl-config.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/cfg/bz.c b/drivers/net/wireless/intel/iwlwifi/cfg/bz.c
index cd1fe8490ae5..589fba0cc045 100644
--- a/drivers/net/wireless/intel/iwlwifi/cfg/bz.c
+++ b/drivers/net/wireless/intel/iwlwifi/cfg/bz.c
@@ -159,7 +159,6 @@ const struct iwl_cfg_trans_params iwl_gl_trans_cfg = {
.low_latency_xtal = true,
};
-const char iwl_bz_name[] = "Intel(R) TBD Bz device";
const char iwl_fm_name[] = "Intel(R) Wi-Fi 7 BE201 320MHz";
const char iwl_gl_name[] = "Intel(R) Wi-Fi 7 BE200 320MHz";
const char iwl_mtp_name[] = "Intel(R) Wi-Fi 7 BE202 160MHz";
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-config.h b/drivers/net/wireless/intel/iwlwifi/iwl-config.h
index 34c91deca57b..e17fadfc0227 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-config.h
@@ -543,7 +543,6 @@ extern const char iwl_ax211_name[];
extern const char iwl_ax221_name[];
extern const char iwl_ax231_name[];
extern const char iwl_ax411_name[];
-extern const char iwl_bz_name[];
extern const char iwl_fm_name[];
extern const char iwl_gl_name[];
extern const char iwl_mtp_name[];
--
2.47.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/6] iwlwifi: Remove old device data
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
` (4 preceding siblings ...)
2024-12-23 1:32 ` [PATCH 5/6] iwlwifi: Remove unused iwl_bz_name linux
@ 2024-12-23 1:32 ` linux
2025-01-28 18:45 ` [PATCH 0/6] iwlwifi: Cleaning up deadcode Dr. David Alan Gilbert
6 siblings, 0 replies; 10+ messages in thread
From: linux @ 2024-12-23 1:32 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless
Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
The last use of iwl_ax204_name[], iwl_ax221_name[] and iwl_cfg_so_a0_ms_a0
was removed by
commit f473a7fd6d60 ("wifi: iwlwifi: remove devices that never came out")
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/net/wireless/intel/iwlwifi/cfg/22000.c | 1 -
drivers/net/wireless/intel/iwlwifi/cfg/ax210.c | 8 --------
drivers/net/wireless/intel/iwlwifi/iwl-config.h | 3 ---
3 files changed, 12 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/cfg/22000.c b/drivers/net/wireless/intel/iwlwifi/cfg/22000.c
index 2e2fcb3807ef..130b9a8aa7eb 100644
--- a/drivers/net/wireless/intel/iwlwifi/cfg/22000.c
+++ b/drivers/net/wireless/intel/iwlwifi/cfg/22000.c
@@ -205,7 +205,6 @@ const char iwl_ax101_name[] = "Intel(R) Wi-Fi 6 AX101";
const char iwl_ax200_name[] = "Intel(R) Wi-Fi 6 AX200 160MHz";
const char iwl_ax201_name[] = "Intel(R) Wi-Fi 6 AX201 160MHz";
const char iwl_ax203_name[] = "Intel(R) Wi-Fi 6 AX203";
-const char iwl_ax204_name[] = "Intel(R) Wi-Fi 6 AX204 160MHz";
const char iwl_ax200_killer_1650w_name[] =
"Killer(R) Wi-Fi 6 AX1650w 160MHz Wireless Network Adapter (200D2W)";
diff --git a/drivers/net/wireless/intel/iwlwifi/cfg/ax210.c b/drivers/net/wireless/intel/iwlwifi/cfg/ax210.c
index 975e8aed1526..ba4838a48628 100644
--- a/drivers/net/wireless/intel/iwlwifi/cfg/ax210.c
+++ b/drivers/net/wireless/intel/iwlwifi/cfg/ax210.c
@@ -199,7 +199,6 @@ const struct iwl_cfg_trans_params iwl_ma_trans_cfg = {
};
const char iwl_ax211_name[] = "Intel(R) Wi-Fi 6E AX211 160MHz";
-const char iwl_ax221_name[] = "Intel(R) Wi-Fi 6E AX221 160MHz";
const char iwl_ax231_name[] = "Intel(R) Wi-Fi 6E AX231 160MHz";
const char iwl_ax411_name[] = "Intel(R) Wi-Fi 6E AX411 160MHz";
@@ -267,13 +266,6 @@ const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0_long = {
.trans.low_latency_xtal = true,
};
-const struct iwl_cfg iwl_cfg_so_a0_ms_a0 = {
- .fw_name_pre = IWL_SO_A_MR_A_FW_PRE,
- .uhb_supported = false,
- IWL_DEVICE_AX210,
- .num_rbds = IWL_NUM_RBDS_AX210_HE,
-};
-
const struct iwl_cfg iwl_cfg_ma = {
.fw_name_mac = "ma",
.uhb_supported = true,
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-config.h b/drivers/net/wireless/intel/iwlwifi/iwl-config.h
index e17fadfc0227..77c8fb740bb7 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-config.h
@@ -524,7 +524,6 @@ extern const char iwl9560_killer_1550i_name[];
extern const char iwl9560_killer_1550s_name[];
extern const char iwl_ax200_name[];
extern const char iwl_ax203_name[];
-extern const char iwl_ax204_name[];
extern const char iwl_ax201_name[];
extern const char iwl_ax101_name[];
extern const char iwl_ax200_killer_1650w_name[];
@@ -540,7 +539,6 @@ extern const char iwl_ax211_killer_1675i_name[];
extern const char iwl_ax411_killer_1690s_name[];
extern const char iwl_ax411_killer_1690i_name[];
extern const char iwl_ax211_name[];
-extern const char iwl_ax221_name[];
extern const char iwl_ax231_name[];
extern const char iwl_ax411_name[];
extern const char iwl_fm_name[];
@@ -647,7 +645,6 @@ extern const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0_long;
extern const struct iwl_cfg iwl_cfg_ma;
extern const struct iwl_cfg iwl_cfg_so_a0_hr_a0;
-extern const struct iwl_cfg iwl_cfg_so_a0_ms_a0;
extern const struct iwl_cfg iwl_cfg_quz_a0_hr_b0;
extern const struct iwl_cfg iwl_cfg_bz;
--
2.47.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 0/6] iwlwifi: Cleaning up deadcode
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
` (5 preceding siblings ...)
2024-12-23 1:32 ` [PATCH 6/6] iwlwifi: Remove old device data linux
@ 2025-01-28 18:45 ` Dr. David Alan Gilbert
2025-01-28 19:04 ` Korenblit, Miriam Rachel
6 siblings, 1 reply; 10+ messages in thread
From: Dr. David Alan Gilbert @ 2025-01-28 18:45 UTC (permalink / raw)
To: miriam.rachel.korenblit, kvalo, linux-wireless; +Cc: linux-kernel
* linux@treblig.org (linux@treblig.org) wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> Hi,
> This is a collection of removal of functions
> that have been used for more than a few years.
>
> There are also a handful of string and one structure
> removal that are just left overs from a recent commit.
>
> They're all entire function/structure/string removal.
>
> Build tested only.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
A gentle ping on this just-pre-christmas set please.
Thanks!
Dave
>
>
> Dr. David Alan Gilbert (6):
> iwlwifi: Remove unused iwl_rx_ant_restriction
> iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif
> iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions
> iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta
> iwlwifi: Remove unused iwl_bz_name
> iwlwifi: Remove old device data
>
> .../net/wireless/intel/iwlwifi/cfg/22000.c | 1 -
> .../net/wireless/intel/iwlwifi/cfg/ax210.c | 8 --
> drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 1 -
> drivers/net/wireless/intel/iwlwifi/dvm/tt.c | 11 --
> drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 1 -
> .../net/wireless/intel/iwlwifi/iwl-config.h | 4 -
> .../intel/iwlwifi/mvm/ftm-initiator.c | 101 ------------------
> .../intel/iwlwifi/mvm/ftm-responder.c | 86 ---------------
> .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 23 ----
> drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 12 ---
> drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 61 -----------
> drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 -
> 12 files changed, 313 deletions(-)
>
> --
> 2.47.1
>
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH 0/6] iwlwifi: Cleaning up deadcode
2025-01-28 18:45 ` [PATCH 0/6] iwlwifi: Cleaning up deadcode Dr. David Alan Gilbert
@ 2025-01-28 19:04 ` Korenblit, Miriam Rachel
2025-01-28 19:52 ` Dr. David Alan Gilbert
0 siblings, 1 reply; 10+ messages in thread
From: Korenblit, Miriam Rachel @ 2025-01-28 19:04 UTC (permalink / raw)
To: Dr. David Alan Gilbert, kvalo@kernel.org,
linux-wireless@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
> -----Original Message-----
> From: Dr. David Alan Gilbert <linux@treblig.org>
> Sent: Tuesday, 28 January 2025 20:46
> To: Korenblit, Miriam Rachel <miriam.rachel.korenblit@intel.com>;
> kvalo@kernel.org; linux-wireless@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Subject: Re: [PATCH 0/6] iwlwifi: Cleaning up deadcode
>
> * linux@treblig.org (linux@treblig.org) wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >
> > Hi,
> > This is a collection of removal of functions that have been used for
> > more than a few years.
> >
> > There are also a handful of string and one structure removal that
> > are just left overs from a recent commit.
> >
> > They're all entire function/structure/string removal.
> >
> > Build tested only.
> >
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>
> A gentle ping on this just-pre-christmas set please.
> Thanks!
>
> Dave
>
> >
> >
> > Dr. David Alan Gilbert (6):
> > iwlwifi: Remove unused iwl_rx_ant_restriction
> > iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif
> > iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions
> > iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta
> > iwlwifi: Remove unused iwl_bz_name
> > iwlwifi: Remove old device data
> >
> > .../net/wireless/intel/iwlwifi/cfg/22000.c | 1 -
> > .../net/wireless/intel/iwlwifi/cfg/ax210.c | 8 --
> > drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 1 -
> > drivers/net/wireless/intel/iwlwifi/dvm/tt.c | 11 --
> > drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 1 -
> > .../net/wireless/intel/iwlwifi/iwl-config.h | 4 -
> > .../intel/iwlwifi/mvm/ftm-initiator.c | 101 ------------------
> > .../intel/iwlwifi/mvm/ftm-responder.c | 86 ---------------
> > .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 23 ----
> > drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 12 ---
> > drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 61 -----------
> > drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 -
> > 12 files changed, 313 deletions(-)
> >
> > --
> > 2.47.1
> >
> --
> -----Open up your eyes, open up your mind, open up your code -------
> / Dr. David Alan Gilbert | Running GNU/Linux | Happy \
> \ dave @ treblig.org | | In Hex /
> \ _________________________|_____ http://www.treblig.org |_______/
Acked-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/6] iwlwifi: Cleaning up deadcode
2025-01-28 19:04 ` Korenblit, Miriam Rachel
@ 2025-01-28 19:52 ` Dr. David Alan Gilbert
0 siblings, 0 replies; 10+ messages in thread
From: Dr. David Alan Gilbert @ 2025-01-28 19:52 UTC (permalink / raw)
To: Korenblit, Miriam Rachel
Cc: kvalo@kernel.org, linux-wireless@vger.kernel.org,
linux-kernel@vger.kernel.org
* Korenblit, Miriam Rachel (miriam.rachel.korenblit@intel.com) wrote:
>
>
> > -----Original Message-----
> > From: Dr. David Alan Gilbert <linux@treblig.org>
> > Sent: Tuesday, 28 January 2025 20:46
> > To: Korenblit, Miriam Rachel <miriam.rachel.korenblit@intel.com>;
> > kvalo@kernel.org; linux-wireless@vger.kernel.org
> > Cc: linux-kernel@vger.kernel.org
> > Subject: Re: [PATCH 0/6] iwlwifi: Cleaning up deadcode
> >
> > * linux@treblig.org (linux@treblig.org) wrote:
> > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > >
> > > Hi,
> > > This is a collection of removal of functions that have been used for
> > > more than a few years.
> > >
> > > There are also a handful of string and one structure removal that
> > > are just left overs from a recent commit.
> > >
> > > They're all entire function/structure/string removal.
> > >
> > > Build tested only.
> > >
> > > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> >
> > A gentle ping on this just-pre-christmas set please.
> > Thanks!
> >
> > Dave
> >
> > >
> > >
> > > Dr. David Alan Gilbert (6):
> > > iwlwifi: Remove unused iwl_rx_ant_restriction
> > > iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif
> > > iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions
> > > iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta
> > > iwlwifi: Remove unused iwl_bz_name
> > > iwlwifi: Remove old device data
> > >
> > > .../net/wireless/intel/iwlwifi/cfg/22000.c | 1 -
> > > .../net/wireless/intel/iwlwifi/cfg/ax210.c | 8 --
> > > drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 1 -
> > > drivers/net/wireless/intel/iwlwifi/dvm/tt.c | 11 --
> > > drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 1 -
> > > .../net/wireless/intel/iwlwifi/iwl-config.h | 4 -
> > > .../intel/iwlwifi/mvm/ftm-initiator.c | 101 ------------------
> > > .../intel/iwlwifi/mvm/ftm-responder.c | 86 ---------------
> > > .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 23 ----
> > > drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 12 ---
> > > drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 61 -----------
> > > drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 -
> > > 12 files changed, 313 deletions(-)
> > >
> > > --
> > > 2.47.1
> > >
> > --
> > -----Open up your eyes, open up your mind, open up your code -------
> > / Dr. David Alan Gilbert | Running GNU/Linux | Happy \
> > \ dave @ treblig.org | | In Hex /
> > \ _________________________|_____ http://www.treblig.org |_______/
>
>
> Acked-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Thanks!
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-01-28 19:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-23 1:31 [PATCH 0/6] iwlwifi: Cleaning up deadcode linux
2024-12-23 1:31 ` [PATCH 1/6] iwlwifi: Remove unused iwl_rx_ant_restriction linux
2024-12-23 1:31 ` [PATCH 2/6] iwlwifi: Remove unused iwl_mvm_rx_missed_vap_notif linux
2024-12-23 1:31 ` [PATCH 3/6] iwlwifi: Remove unused iwl_mvm_ftm_*_add_pasn_sta functions linux
2024-12-23 1:32 ` [PATCH 4/6] iwlwifi: Remove unused iwl_mvm_ftm_add_pasn_sta linux
2024-12-23 1:32 ` [PATCH 5/6] iwlwifi: Remove unused iwl_bz_name linux
2024-12-23 1:32 ` [PATCH 6/6] iwlwifi: Remove old device data linux
2025-01-28 18:45 ` [PATCH 0/6] iwlwifi: Cleaning up deadcode Dr. David Alan Gilbert
2025-01-28 19:04 ` Korenblit, Miriam Rachel
2025-01-28 19:52 ` Dr. David Alan Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).