Use standard boolean normalisation in r3062
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 17 Dec 2007 01:16:06 +0000 (01:16 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 17 Dec 2007 01:16:06 +0000 (01:16 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3065 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_power.c

index 0b0ba941dc2e50573489369718cafefe48dc0650..ff38cfd95709d8d48d3923583712c5e6222cb694 100644 (file)
@@ -347,7 +347,7 @@ ieee80211_sta_pwrsave(struct ieee80211vap *vap, int enable)
        struct ieee80211_node *ni = vap->iv_bss;
        int qlen;
 
-       if ((enable != 0) == (IEEE80211_VAP_IS_SLEEPING(vap) != 0))
+       if (!!enable == !!IEEE80211_VAP_IS_SLEEPING(vap)) /* Bool. normalise */
                return;
 
        IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni,