projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove the use of a bitwise XOR operation which wrongly assumes its
[madwifi/.git]
/
net80211
/
ieee80211_power.c
diff --git
a/net80211/ieee80211_power.c
b/net80211/ieee80211_power.c
index e60c1e5854536fc751a0aa0babec823bc432f1ee..0b0ba941dc2e50573489369718cafefe48dc0650 100644
(file)
--- a/
net80211/ieee80211_power.c
+++ b/
net80211/ieee80211_power.c
@@
-347,7
+347,7
@@
ieee80211_sta_pwrsave(struct ieee80211vap *vap, int enable)
struct ieee80211_node *ni = vap->iv_bss;
int qlen;
- if (
!(enable ^ IEEE80211_VAP_IS_SLEEPING(vap)
))
+ if (
(enable != 0) == (IEEE80211_VAP_IS_SLEEPING(vap) != 0
))
return;
IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni,