mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 06:44:36 -05:00
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 <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250909061931.4d6689d5c4b2.I5d2bf7302eea8ac7a805f58e4e60e527d6f5b346@changeid
This commit is contained in:
@@ -401,11 +401,9 @@ static u32 iwl_mld_get_htc_flags(struct ieee80211_link_sta *link_sta)
|
||||
static int iwl_mld_send_sta_cmd(struct iwl_mld *mld,
|
||||
const struct iwl_sta_cfg_cmd *cmd)
|
||||
{
|
||||
u32 cmd_id = WIDE_ID(MAC_CONF_GROUP, STA_CONFIG_CMD);
|
||||
int cmd_len = iwl_fw_lookup_cmd_ver(mld->fw, cmd_id, 0) > 1 ?
|
||||
sizeof(*cmd) :
|
||||
sizeof(struct iwl_sta_cfg_cmd_v1);
|
||||
int ret = iwl_mld_send_cmd_pdu(mld, cmd_id, cmd, cmd_len);
|
||||
int ret = iwl_mld_send_cmd_pdu(mld,
|
||||
WIDE_ID(MAC_CONF_GROUP, STA_CONFIG_CMD),
|
||||
cmd);
|
||||
if (ret)
|
||||
IWL_ERR(mld, "STA_CONFIG_CMD send failed, ret=0x%x\n", ret);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user