summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-12-18 07:42:25 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-12-18 07:42:25 +0000
commit0493ce1dd529058c7d1659fb14415373dc9739aa (patch)
treec74a4633d496564fe66378fd758ff7b0fe00fe27 /sys/net80211
parent0cbe1d498423477afdff66be3c6b5d3999c6df8b (diff)
Fix out of bounds array access in ieee80211_setbasicrates().
found by + ok jsg@
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index ce47775548a..f3d760ae960 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.c,v 1.52 2015/12/16 12:52:03 stsp Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.53 2015/12/18 07:42:24 stsp Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
@@ -730,6 +730,7 @@ ieee80211_setbasicrates(struct ieee80211com *ic)
{ 2, { 2, 4 } }, /* IEEE80211_MODE_11B */
{ 4, { 2, 4, 11, 22 } }, /* IEEE80211_MODE_11G */
{ 0 }, /* IEEE80211_MODE_TURBO */
+ { 0 }, /* IEEE80211_MODE_11N */
};
enum ieee80211_phymode mode;
struct ieee80211_rateset *rs;