mirror of https://github.com/proski/madwifi
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:
parent
03538d0225
commit
86b3543c14
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue