When mac80211 is built without CONFIG_PM being defined, the following errors are output: net/mac80211/main.c: In function âieee80211_register_hwâ: net/mac80211/main.c:700: error: âconst struct ieee80211_opsâ has no member named âsuspendâ net/mac80211/main.c:700: error: âconst struct ieee80211_opsâ has no member named âresumeâ make[2]: *** [net/mac80211/main.o] Error 1 make[1]: *** [net/mac80211] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [net] Error 2 Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> --- Index: wireless-testing/net/mac80211/main.c =================================================================== --- wireless-testing.orig/net/mac80211/main.c +++ wireless-testing/net/mac80211/main.c @@ -696,8 +696,11 @@ int ieee80211_register_hw(struct ieee802 WLAN_CIPHER_SUITE_AES_CMAC }; - if ((hw->wiphy->wowlan.flags || hw->wiphy->wowlan.n_patterns) && - (!local->ops->suspend || !local->ops->resume)) + if ((hw->wiphy->wowlan.flags || hw->wiphy->wowlan.n_patterns) +#ifdef CONFIG_PM + && (!local->ops->suspend || !local->ops->resume) +#endif + ) return -EINVAL; if (hw->max_report_rates == 0) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html