Merge tag 'clk-for-linus-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/clk...
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / offchannel.c
index 683f0e3cb1244cddcaa9ddae176f225fb1ec30b3..f2c75cf491fc019bdbc01d58feab49608cce9dca 100644 (file)
@@ -46,7 +46,7 @@ static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata)
        }
 
        if (!local->offchannel_ps_enabled ||
-           !(local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK))
+           !ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK))
                /*
                 * If power save was enabled, no need to send a nullfunc
                 * frame because AP knows that we are sleeping. But if the