Skip to content

Commit 79c0fae

Browse files
committed
wifi: iwlwifi: mld: remove support from of sta cmd version 1
The last FW API that supports version 1 is 99. Since this API is no longer supported on any device that loads iwlmld, we can remove support of it. Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250909061931.4d6689d5c4b2.I5d2bf7302eea8ac7a805f58e4e60e527d6f5b346@changeid
1 parent 9175f32 commit 79c0fae

File tree

1 file changed

+3
-5
lines changed
  • drivers/net/wireless/intel/iwlwifi/mld

1 file changed

+3
-5
lines changed

drivers/net/wireless/intel/iwlwifi/mld/sta.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,9 @@ static u32 iwl_mld_get_htc_flags(struct ieee80211_link_sta *link_sta)
401401
static int iwl_mld_send_sta_cmd(struct iwl_mld *mld,
402402
const struct iwl_sta_cfg_cmd *cmd)
403403
{
404-
u32 cmd_id = WIDE_ID(MAC_CONF_GROUP, STA_CONFIG_CMD);
405-
int cmd_len = iwl_fw_lookup_cmd_ver(mld->fw, cmd_id, 0) > 1 ?
406-
sizeof(*cmd) :
407-
sizeof(struct iwl_sta_cfg_cmd_v1);
408-
int ret = iwl_mld_send_cmd_pdu(mld, cmd_id, cmd, cmd_len);
404+
int ret = iwl_mld_send_cmd_pdu(mld,
405+
WIDE_ID(MAC_CONF_GROUP, STA_CONFIG_CMD),
406+
cmd);
409407
if (ret)
410408
IWL_ERR(mld, "STA_CONFIG_CMD send failed, ret=0x%x\n", ret);
411409
return ret;

0 commit comments

Comments
 (0)