diff options
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index eaee84b55887..25a2722c8a98 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -186,7 +186,7 @@ int prism2_wds_add(local_info_t *local, u8 *remote_addr, | |||
186 | return -ENOBUFS; | 186 | return -ENOBUFS; |
187 | 187 | ||
188 | /* verify that there is room for wds# postfix in the interface name */ | 188 | /* verify that there is room for wds# postfix in the interface name */ |
189 | if (strlen(local->dev->name) > IFNAMSIZ - 5) { | 189 | if (strlen(local->dev->name) >= IFNAMSIZ - 5) { |
190 | printk(KERN_DEBUG "'%s' too long base device name\n", | 190 | printk(KERN_DEBUG "'%s' too long base device name\n", |
191 | local->dev->name); | 191 | local->dev->name); |
192 | return -EINVAL; | 192 | return -EINVAL; |