]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mld: remove type argument from iwl_mld_add_sta()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2026 08:09:18 +0000 (10:09 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 25 Mar 2026 09:31:57 +0000 (11:31 +0200)
This is used only in a single place, and the caller always sets
the type to STATION_TYPE_PEER right now. We need to change some
of this for NAN in the future, removing the type argument will
simplify that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260320100746.71841a054f16.I1851148e582eb710261740459a46d22720788926@changeid
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
drivers/net/wireless/intel/iwlwifi/mld/sta.c
drivers/net/wireless/intel/iwlwifi/mld/sta.h

index 79f4dc271c34a08d766809e10396fb0246171806..8ab56788a49128c682952a21c96de2dc5095ed1d 100644 (file)
@@ -1751,7 +1751,7 @@ static int iwl_mld_move_sta_state_up(struct iwl_mld *mld,
                                return -EBUSY;
                }
 
-               ret = iwl_mld_add_sta(mld, sta, vif, STATION_TYPE_PEER);
+               ret = iwl_mld_add_sta(mld, sta, vif);
                if (ret)
                        return ret;
 
index f40c49377466ae833d3d268231cfebfcb2a6b707..619f302076ad4b434f503904bb438fe31d2f0de8 100644 (file)
@@ -755,14 +755,14 @@ iwl_mld_init_sta(struct iwl_mld *mld, struct ieee80211_sta *sta,
 }
 
 int iwl_mld_add_sta(struct iwl_mld *mld, struct ieee80211_sta *sta,
-                   struct ieee80211_vif *vif, enum iwl_fw_sta_type type)
+                   struct ieee80211_vif *vif)
 {
        struct iwl_mld_sta *mld_sta = iwl_mld_sta_from_mac80211(sta);
        struct ieee80211_link_sta *link_sta;
        int link_id;
        int ret;
 
-       ret = iwl_mld_init_sta(mld, sta, vif, type);
+       ret = iwl_mld_init_sta(mld, sta, vif, STATION_TYPE_PEER);
        if (ret)
                return ret;
 
index 1897b121aae28dfb0029d0a1455b2f762409c49c..5f6c440bf058e56dd6cc0107319d23d6c9a0e92e 100644 (file)
@@ -190,7 +190,7 @@ iwl_mld_link_sta_from_mac80211(struct ieee80211_link_sta *link_sta)
 }
 
 int iwl_mld_add_sta(struct iwl_mld *mld, struct ieee80211_sta *sta,
-                   struct ieee80211_vif *vif, enum iwl_fw_sta_type type);
+                   struct ieee80211_vif *vif);
 void iwl_mld_remove_sta(struct iwl_mld *mld, struct ieee80211_sta *sta);
 int iwl_mld_fw_sta_id_from_link_sta(struct iwl_mld *mld,
                                    struct ieee80211_link_sta *link_sta);