Use standard boolean normalisation in r3062

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3065 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mentor 2007-12-17 01:16:06 +00:00
parent 03538d0225
commit 86b3543c14
1 changed files with 1 additions and 1 deletions

View 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,