aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/otus/80211core
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-05-20 02:36:29 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 11:00:37 -0700
commit5aaeab6606dc06bea229bf2774ac1661923c2f07 (patch)
treec77a859ce14c3529c81da14cca7f6ffc1e4c794f /drivers/staging/otus/80211core
parentStaging: otus: 80211core/ccmd.c: Fix Coding Style (diff)
downloadlinux-dev-5aaeab6606dc06bea229bf2774ac1661923c2f07.tar.xz
linux-dev-5aaeab6606dc06bea229bf2774ac1661923c2f07.zip
Staging: otus: beyond ARRAY_SIZE of wd->ap.wds.encryMode
Do not go beyond ARRAY_SIZE of wd->ap.wds.encryMode Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/otus/80211core')
-rw-r--r--drivers/staging/otus/80211core/coid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/otus/80211core/coid.c b/drivers/staging/otus/80211core/coid.c
index 88f8d3491a80..0524e1f36f0d 100644
--- a/drivers/staging/otus/80211core/coid.c
+++ b/drivers/staging/otus/80211core/coid.c
@@ -2013,7 +2013,7 @@ u16_t zfiConfigWdsPort(zdev_t* dev, u8_t wdsPortId, u16_t flag, u16_t* wdsAddr,
zmw_get_wlan_dev(dev);
- if (wdsPortId > ZM_MAX_WDS_SUPPORT)
+ if (wdsPortId >= ZM_MAX_WDS_SUPPORT)
{
return ZM_ERR_WDS_PORT_ID;
}