aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ray_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r--drivers/net/wireless/ray_cs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index a915fe6c6aa5..e82548ea609a 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -30,7 +30,6 @@
30 * 30 *
31=============================================================================*/ 31=============================================================================*/
32 32
33#include <linux/config.h>
34#include <linux/module.h> 33#include <linux/module.h>
35#include <linux/kernel.h> 34#include <linux/kernel.h>
36#include <linux/proc_fs.h> 35#include <linux/proc_fs.h>
@@ -53,8 +52,8 @@
53#include <pcmcia/ds.h> 52#include <pcmcia/ds.h>
54#include <pcmcia/mem_op.h> 53#include <pcmcia/mem_op.h>
55 54
56#include <net/ieee80211.h>
57#include <linux/wireless.h> 55#include <linux/wireless.h>
56#include <net/iw_handler.h>
58 57
59#include <asm/io.h> 58#include <asm/io.h>
60#include <asm/system.h> 59#include <asm/system.h>
@@ -100,7 +99,7 @@ static int ray_dev_config(struct net_device *dev, struct ifmap *map);
100static struct net_device_stats *ray_get_stats(struct net_device *dev); 99static struct net_device_stats *ray_get_stats(struct net_device *dev);
101static int ray_dev_init(struct net_device *dev); 100static int ray_dev_init(struct net_device *dev);
102 101
103static struct ethtool_ops netdev_ethtool_ops; 102static const struct ethtool_ops netdev_ethtool_ops;
104 103
105static int ray_open(struct net_device *dev); 104static int ray_open(struct net_device *dev);
106static int ray_dev_start_xmit(struct sk_buff *skb, struct net_device *dev); 105static int ray_dev_start_xmit(struct sk_buff *skb, struct net_device *dev);
@@ -1093,7 +1092,7 @@ static void netdev_get_drvinfo(struct net_device *dev,
1093 strcpy(info->driver, "ray_cs"); 1092 strcpy(info->driver, "ray_cs");
1094} 1093}
1095 1094
1096static struct ethtool_ops netdev_ethtool_ops = { 1095static const struct ethtool_ops netdev_ethtool_ops = {
1097 .get_drvinfo = netdev_get_drvinfo, 1096 .get_drvinfo = netdev_get_drvinfo,
1098}; 1097};
1099 1098
@@ -1174,7 +1173,7 @@ static int ray_set_essid(struct net_device *dev,
1174 return -EOPNOTSUPP; 1173 return -EOPNOTSUPP;
1175 } else { 1174 } else {
1176 /* Check the size of the string */ 1175 /* Check the size of the string */
1177 if(dwrq->length > IW_ESSID_MAX_SIZE + 1) { 1176 if(dwrq->length > IW_ESSID_MAX_SIZE) {
1178 return -E2BIG; 1177 return -E2BIG;
1179 } 1178 }
1180 1179