summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2008-12-14 11:59:42 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2008-12-14 11:59:42 +0000
commitdb559f43824ce9019cbe69e90c524513e3d0f79c (patch)
tree6e793e92daf327fff24878e3490931cba9eef905
parentfa19924230364e17069048a55de4600c1752c4d3 (diff)
txpower range checks should be inclusive.
From FreeBSD via mickey in pr 6024. ok damien@
-rw-r--r--sys/net80211/ieee80211_ioctl.c6
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;
}