Use logical rather than bitwise OR in if() expression.

This commit is contained in:
Ian Lepore 2014-04-26 23:22:49 +00:00
parent 75c95895f5
commit daa963252e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264991

View File

@ -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;