Commit 834bfc69 authored by Miri Korenblit's avatar Miri Korenblit Committed by Johannes Berg
Browse files

wifi: iwlwifi: mld: fix build with CONFIG_PM_SLEEP undefined

parent 3ad61970
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
/*
 * Copyright (C) 2024 Intel Corporation
 * Copyright (C) 2024-2025 Intel Corporation
 */
#ifndef __iwl_mld_hcmd_h__
#define __iwl_mld_hcmd_h__
@@ -10,8 +10,10 @@ static inline int iwl_mld_send_cmd(struct iwl_mld *mld, struct iwl_host_cmd *cmd
	/* No commands, including the d3 related commands, should be sent
	 * after entering d3
	 */
#ifdef CONFIG_PM_SLEEP
	if (WARN_ON(mld->fw_status.in_d3))
		return -EIO;
#endif

	if (!(cmd->flags & CMD_ASYNC))
		lockdep_assert_wiphy(mld->wiphy);
+2 −0
Original line number Diff line number Diff line
@@ -296,7 +296,9 @@ iwl_cleanup_mld(struct iwl_mld *mld)
	CLEANUP_STRUCT(mld);
	CLEANUP_STRUCT(&mld->scan);

#ifdef CONFIG_PM_SLEEP
	mld->fw_status.in_d3 = false;
#endif

	iwl_mld_low_latency_restart_cleanup(mld);