summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-11-27 04:03:46 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-11-27 04:03:46 +0000
commit62c6c9c0198516b9d7fadcac932f84a60f78c0a9 (patch)
tree39dcc3ba31c08c416c1f1677559713ef974de4ba
parent72f3489d5aca1f7637e6ed1c1ecbfef126cb6916 (diff)
correct logic for a IEEE80211_MODE_11N test
ok stsp@
-rw-r--r--sys/net80211/ieee80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index e67312c2ffa..b27896e7fe5 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.c,v 1.50 2015/11/15 12:34:07 stsp Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.51 2015/11/27 04:03:45 jsg Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
@@ -467,7 +467,7 @@ ieee80211_media_change(struct ifnet *ifp)
#ifndef IEEE80211_NO_HT
if ((ic->ic_modecaps & (1 << IEEE80211_MODE_11N)) == 0)
return EINVAL;
- if (newphymode != IEEE80211_MODE_AUTO ||
+ if (newphymode != IEEE80211_MODE_AUTO &&
newphymode != IEEE80211_MODE_11N)
return EINVAL;
i = ieee80211_media2mcs(ime->ifm_media);