Staging: rtl8192e: off by one in rtl8192_get_channel_map()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Sep 2011 07:17:04 +0000 (10:17 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:26:03 +0000 (17:26 -0700)
commit8f019bfe0a23167d49aa5c364d229ae416f7e675
tree10c2d341d6a61dc96bdaeaaca5a21aa229774b22
parent06bc69691bbdcc9a61c1fefceba081636b80435c
Staging: rtl8192e: off by one in rtl8192_get_channel_map()

COUNTRY_CODE_MAX is not a valid country code.  We're off by one here.
This gets passed to Dot11d_Channelmap() where it's used as an offset
into the ChannelPlan[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/rtl_core.c