mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Use logical rather than bitwise OR in if() expression.
This commit is contained in:
parent
75c95895f5
commit
daa963252e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264991
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user