Skip to content

Commit

Permalink
wifi: iwlwifi: mld: fix PM_SLEEP -Wundef warning
Browse files Browse the repository at this point in the history
Config symbols are not defined if turned off, so need to
use #ifdef, not #if.

Fixes: d1e879e ("wifi: iwlwifi: add iwlmld sub-driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Yedidya Ben Shimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250401064530.612020bcdaad.I4e885e6646576e29fb236250a1b5038d3f14b08e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Apr 2, 2025
1 parent 99f201a commit 676b902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/intel/iwlwifi/mld/iface.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ struct iwl_mld_vif {

struct iwl_mld_emlsr emlsr;

#if CONFIG_PM_SLEEP
#ifdef CONFIG_PM_SLEEP
struct iwl_mld_wowlan_data wowlan_data;
#endif
#ifdef CONFIG_IWLWIFI_DEBUGFS
Expand Down

0 comments on commit 676b902

Please sign in to comment.