Use logical rather than bitwise OR in if() expression.
This commit is contained in:
parent
75c95895f5
commit
daa963252e
@ -602,7 +602,7 @@ ieee80211_ioctl_getcurchan(struct ieee80211vap *vap, struct ieee80211req *ireq)
|
|||||||
* in use. When in RUN state report the vap-specific channel.
|
* in use. When in RUN state report the vap-specific channel.
|
||||||
* Otherwise return curchan.
|
* 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;
|
c = vap->iv_bss->ni_chan;
|
||||||
else
|
else
|
||||||
c = ic->ic_curchan;
|
c = ic->ic_curchan;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user