diff --git a/drivers/staging/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl_core.c index 4c5d7abd9be0193b636f3af5c6aac7ce6f264289..5ad96649f4076586d8ebec77c97bd675a01bd29c 100644 --- a/drivers/staging/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl_core.c @@ -1283,7 +1283,7 @@ static short rtl8192_get_channel_map(struct net_device *dev) return -1; } - if (priv->ChannelPlan > COUNTRY_CODE_MAX) { + if (priv->ChannelPlan >= COUNTRY_CODE_MAX) { printk(KERN_INFO "rtl819x_init:Error channel plan! Set to " "default.\n"); priv->ChannelPlan = COUNTRY_CODE_FCC;