diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-12-14 11:59:42 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-12-14 11:59:42 +0000 |
commit | db559f43824ce9019cbe69e90c524513e3d0f79c (patch) | |
tree | 6e793e92daf327fff24878e3490931cba9eef905 | |
parent | fa19924230364e17069048a55de4600c1752c4d3 (diff) |
txpower range checks should be inclusive.
From FreeBSD via mickey in pr 6024.
ok damien@
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index c8a5f9d5ac9..7477bebd4a1 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_ioctl.c,v 1.27 2008/12/03 17:24:45 damien Exp $ */ +/* $OpenBSD: ieee80211_ioctl.c,v 1.28 2008/12/14 11:59:41 jsg Exp $ */ /* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */ /*- @@ -594,8 +594,8 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) error = EINVAL; break; } - if (!(IEEE80211_TXPOWER_MIN < txpower->i_val && - txpower->i_val < IEEE80211_TXPOWER_MAX)) { + if (!(IEEE80211_TXPOWER_MIN <= txpower->i_val && + txpower->i_val <= IEEE80211_TXPOWER_MAX)) { error = EINVAL; break; } |