diff options
Diffstat (limited to 'drivers/net/wireless/atmel.c')
| -rw-r--r-- | drivers/net/wireless/atmel.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index 9183f1cf89a7..55db9f03eb2a 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c | |||
| @@ -45,7 +45,6 @@ | |||
| 45 | #include <linux/ptrace.h> | 45 | #include <linux/ptrace.h> |
| 46 | #include <linux/slab.h> | 46 | #include <linux/slab.h> |
| 47 | #include <linux/string.h> | 47 | #include <linux/string.h> |
| 48 | #include <linux/ctype.h> | ||
| 49 | #include <linux/timer.h> | 48 | #include <linux/timer.h> |
| 50 | #include <asm/byteorder.h> | 49 | #include <asm/byteorder.h> |
| 51 | #include <asm/io.h> | 50 | #include <asm/io.h> |
| @@ -2699,16 +2698,7 @@ static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
| 2699 | domain[REGDOMAINSZ] = 0; | 2698 | domain[REGDOMAINSZ] = 0; |
| 2700 | rc = -EINVAL; | 2699 | rc = -EINVAL; |
| 2701 | for (i = 0; i < ARRAY_SIZE(channel_table); i++) { | 2700 | for (i = 0; i < ARRAY_SIZE(channel_table); i++) { |
| 2702 | /* strcasecmp doesn't exist in the library */ | 2701 | if (!strcasecmp(channel_table[i].name, domain)) { |
| 2703 | char *a = channel_table[i].name; | ||
| 2704 | char *b = domain; | ||
| 2705 | while (*a) { | ||
| 2706 | char c1 = *a++; | ||
| 2707 | char c2 = *b++; | ||
| 2708 | if (tolower(c1) != tolower(c2)) | ||
| 2709 | break; | ||
| 2710 | } | ||
| 2711 | if (!*a && !*b) { | ||
| 2712 | priv->config_reg_domain = channel_table[i].reg_domain; | 2702 | priv->config_reg_domain = channel_table[i].reg_domain; |
| 2713 | rc = 0; | 2703 | rc = 0; |
| 2714 | } | 2704 | } |
