diff options
author | ian <ian@FreeBSD.org> | 2014-04-26 23:22:49 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-04-26 23:22:49 +0000 |
commit | 6638a90d8b15fe5388510ad41bf4ce9c36cae9cd (patch) | |
tree | 377c62099dc05f2ab3dac31bed8e213ea3f663e5 /sys/net80211/ieee80211_ioctl.c | |
parent | b6e63d67c1a4455e4a9fe2a54863deaa07c265ea (diff) | |
download | FreeBSD-src-6638a90d8b15fe5388510ad41bf4ce9c36cae9cd.zip FreeBSD-src-6638a90d8b15fe5388510ad41bf4ce9c36cae9cd.tar.gz |
Use logical rather than bitwise OR in if() expression.
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 7ae4f9d..2798d80 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -602,7 +602,7 @@ ieee80211_ioctl_getcurchan(struct ieee80211vap *vap, struct ieee80211req *ireq) * in use. When in RUN state report the vap-specific channel. * Otherwise return curchan. */ - if (vap->iv_state == IEEE80211_S_RUN | vap->iv_state == IEEE80211_S_SLEEP) + if (vap->iv_state == IEEE80211_S_RUN || vap->iv_state == IEEE80211_S_SLEEP) c = vap->iv_bss->ni_chan; else c = ic->ic_curchan; |