diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-23 14:47:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-23 14:47:02 -0400 |
commit | 5f05647dd81c11a6a165ccc8f0c1370b16f3bcb0 (patch) | |
tree | 7851ef1c93aa1aba7ef327ca4b75fd35e6d10f29 /drivers/net/wireless/ray_cs.c | |
parent | 02f36038c568111ad4fc433f6fa760ff5e38fab4 (diff) | |
parent | ec37a48d1d16c30b655ac5280209edf52a6775d4 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1699 commits)
bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL.
vlan: Calling vlan_hwaccel_do_receive() is always valid.
tproxy: use the interface primary IP address as a default value for --on-ip
tproxy: added IPv6 support to the socket match
cxgb3: function namespace cleanup
tproxy: added IPv6 support to the TPROXY target
tproxy: added IPv6 socket lookup function to nf_tproxy_core
be2net: Changes to use only priority codes allowed by f/w
tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled
tproxy: added tproxy sockopt interface in the IPV6 layer
tproxy: added udp6_lib_lookup function
tproxy: added const specifiers to udp lookup functions
tproxy: split off ipv6 defragmentation to a separate module
l2tp: small cleanup
nf_nat: restrict ICMP translation for embedded header
can: mcp251x: fix generation of error frames
can: mcp251x: fix endless loop in interrupt handler if CANINTF_MERRF is set
can-raw: add msg_flags to distinguish local traffic
9p: client code cleanup
rds: make local functions/variables static
...
Fix up conflicts in net/core/dev.c, drivers/net/pcmcia/smc91c92_cs.c and
drivers/net/wireless/ath/ath9k/debug.c as per David
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r-- | drivers/net/wireless/ray_cs.c | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 46da03753fd5..97007d9e2c1f 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <linux/if_arp.h> | 43 | #include <linux/if_arp.h> |
44 | #include <linux/ioport.h> | 44 | #include <linux/ioport.h> |
45 | #include <linux/skbuff.h> | 45 | #include <linux/skbuff.h> |
46 | #include <linux/ethtool.h> | ||
47 | #include <linux/ieee80211.h> | 46 | #include <linux/ieee80211.h> |
48 | 47 | ||
49 | #include <pcmcia/cistpl.h> | 48 | #include <pcmcia/cistpl.h> |
@@ -79,8 +78,6 @@ static int ray_dev_config(struct net_device *dev, struct ifmap *map); | |||
79 | static struct net_device_stats *ray_get_stats(struct net_device *dev); | 78 | static struct net_device_stats *ray_get_stats(struct net_device *dev); |
80 | static int ray_dev_init(struct net_device *dev); | 79 | static int ray_dev_init(struct net_device *dev); |
81 | 80 | ||
82 | static const struct ethtool_ops netdev_ethtool_ops; | ||
83 | |||
84 | static int ray_open(struct net_device *dev); | 81 | static int ray_open(struct net_device *dev); |
85 | static netdev_tx_t ray_dev_start_xmit(struct sk_buff *skb, | 82 | static netdev_tx_t ray_dev_start_xmit(struct sk_buff *skb, |
86 | struct net_device *dev); | 83 | struct net_device *dev); |
@@ -189,7 +186,7 @@ module_param(bc, int, 0); | |||
189 | module_param(phy_addr, charp, 0); | 186 | module_param(phy_addr, charp, 0); |
190 | module_param(ray_mem_speed, int, 0); | 187 | module_param(ray_mem_speed, int, 0); |
191 | 188 | ||
192 | static UCHAR b5_default_startup_parms[] = { | 189 | static const UCHAR b5_default_startup_parms[] = { |
193 | 0, 0, /* Adhoc station */ | 190 | 0, 0, /* Adhoc station */ |
194 | 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */ | 191 | 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */ |
195 | 0, 0, 0, 0, 0, 0, 0, 0, | 192 | 0, 0, 0, 0, 0, 0, 0, 0, |
@@ -224,7 +221,7 @@ static UCHAR b5_default_startup_parms[] = { | |||
224 | 2, 0, 0, 0, 0, 0, 0, 0 /* basic rate set */ | 221 | 2, 0, 0, 0, 0, 0, 0, 0 /* basic rate set */ |
225 | }; | 222 | }; |
226 | 223 | ||
227 | static UCHAR b4_default_startup_parms[] = { | 224 | static const UCHAR b4_default_startup_parms[] = { |
228 | 0, 0, /* Adhoc station */ | 225 | 0, 0, /* Adhoc station */ |
229 | 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */ | 226 | 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */ |
230 | 0, 0, 0, 0, 0, 0, 0, 0, | 227 | 0, 0, 0, 0, 0, 0, 0, 0, |
@@ -256,9 +253,9 @@ static UCHAR b4_default_startup_parms[] = { | |||
256 | }; | 253 | }; |
257 | 254 | ||
258 | /*===========================================================================*/ | 255 | /*===========================================================================*/ |
259 | static unsigned char eth2_llc[] = { 0xaa, 0xaa, 3, 0, 0, 0 }; | 256 | static const u8 eth2_llc[] = { 0xaa, 0xaa, 3, 0, 0, 0 }; |
260 | 257 | ||
261 | static char hop_pattern_length[] = { 1, | 258 | static const char hop_pattern_length[] = { 1, |
262 | USA_HOP_MOD, EUROPE_HOP_MOD, | 259 | USA_HOP_MOD, EUROPE_HOP_MOD, |
263 | JAPAN_HOP_MOD, KOREA_HOP_MOD, | 260 | JAPAN_HOP_MOD, KOREA_HOP_MOD, |
264 | SPAIN_HOP_MOD, FRANCE_HOP_MOD, | 261 | SPAIN_HOP_MOD, FRANCE_HOP_MOD, |
@@ -266,7 +263,7 @@ static char hop_pattern_length[] = { 1, | |||
266 | JAPAN_TEST_HOP_MOD | 263 | JAPAN_TEST_HOP_MOD |
267 | }; | 264 | }; |
268 | 265 | ||
269 | static char rcsid[] = | 266 | static const char rcsid[] = |
270 | "Raylink/WebGear wireless LAN - Corey <Thomas corey@world.std.com>"; | 267 | "Raylink/WebGear wireless LAN - Corey <Thomas corey@world.std.com>"; |
271 | 268 | ||
272 | static const struct net_device_ops ray_netdev_ops = { | 269 | static const struct net_device_ops ray_netdev_ops = { |
@@ -316,7 +313,6 @@ static int ray_probe(struct pcmcia_device *p_dev) | |||
316 | 313 | ||
317 | /* Raylink entries in the device structure */ | 314 | /* Raylink entries in the device structure */ |
318 | dev->netdev_ops = &ray_netdev_ops; | 315 | dev->netdev_ops = &ray_netdev_ops; |
319 | SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); | ||
320 | dev->wireless_handlers = &ray_handler_def; | 316 | dev->wireless_handlers = &ray_handler_def; |
321 | #ifdef WIRELESS_SPY | 317 | #ifdef WIRELESS_SPY |
322 | local->wireless_data.spy_data = &local->spy_data; | 318 | local->wireless_data.spy_data = &local->spy_data; |
@@ -575,7 +571,7 @@ static int dl_startup_params(struct net_device *dev) | |||
575 | /* Start kernel timer to wait for dl startup to complete. */ | 571 | /* Start kernel timer to wait for dl startup to complete. */ |
576 | local->timer.expires = jiffies + HZ / 2; | 572 | local->timer.expires = jiffies + HZ / 2; |
577 | local->timer.data = (long)local; | 573 | local->timer.data = (long)local; |
578 | local->timer.function = &verify_dl_startup; | 574 | local->timer.function = verify_dl_startup; |
579 | add_timer(&local->timer); | 575 | add_timer(&local->timer); |
580 | dev_dbg(&link->dev, | 576 | dev_dbg(&link->dev, |
581 | "ray_cs dl_startup_params started timer for verify_dl_startup\n"); | 577 | "ray_cs dl_startup_params started timer for verify_dl_startup\n"); |
@@ -1025,18 +1021,6 @@ AP to AP 1 1 dest AP src AP dest source | |||
1025 | } | 1021 | } |
1026 | } /* end encapsulate_frame */ | 1022 | } /* end encapsulate_frame */ |
1027 | 1023 | ||
1028 | /*===========================================================================*/ | ||
1029 | |||
1030 | static void netdev_get_drvinfo(struct net_device *dev, | ||
1031 | struct ethtool_drvinfo *info) | ||
1032 | { | ||
1033 | strcpy(info->driver, "ray_cs"); | ||
1034 | } | ||
1035 | |||
1036 | static const struct ethtool_ops netdev_ethtool_ops = { | ||
1037 | .get_drvinfo = netdev_get_drvinfo, | ||
1038 | }; | ||
1039 | |||
1040 | /*====================================================================*/ | 1024 | /*====================================================================*/ |
1041 | 1025 | ||
1042 | /*------------------------------------------------------------------*/ | 1026 | /*------------------------------------------------------------------*/ |
@@ -1960,12 +1944,12 @@ static irqreturn_t ray_interrupt(int irq, void *dev_id) | |||
1960 | dev_dbg(&link->dev, | 1944 | dev_dbg(&link->dev, |
1961 | "ray_cs interrupt network \"%s\" start failed\n", | 1945 | "ray_cs interrupt network \"%s\" start failed\n", |
1962 | local->sparm.b4.a_current_ess_id); | 1946 | local->sparm.b4.a_current_ess_id); |
1963 | local->timer.function = &start_net; | 1947 | local->timer.function = start_net; |
1964 | } else { | 1948 | } else { |
1965 | dev_dbg(&link->dev, | 1949 | dev_dbg(&link->dev, |
1966 | "ray_cs interrupt network \"%s\" join failed\n", | 1950 | "ray_cs interrupt network \"%s\" join failed\n", |
1967 | local->sparm.b4.a_current_ess_id); | 1951 | local->sparm.b4.a_current_ess_id); |
1968 | local->timer.function = &join_net; | 1952 | local->timer.function = join_net; |
1969 | } | 1953 | } |
1970 | add_timer(&local->timer); | 1954 | add_timer(&local->timer); |
1971 | } | 1955 | } |
@@ -2433,9 +2417,9 @@ static void authenticate(ray_dev_t *local) | |||
2433 | 2417 | ||
2434 | del_timer(&local->timer); | 2418 | del_timer(&local->timer); |
2435 | if (build_auth_frame(local, local->bss_id, OPEN_AUTH_REQUEST)) { | 2419 | if (build_auth_frame(local, local->bss_id, OPEN_AUTH_REQUEST)) { |
2436 | local->timer.function = &join_net; | 2420 | local->timer.function = join_net; |
2437 | } else { | 2421 | } else { |
2438 | local->timer.function = &authenticate_timeout; | 2422 | local->timer.function = authenticate_timeout; |
2439 | } | 2423 | } |
2440 | local->timer.expires = jiffies + HZ * 2; | 2424 | local->timer.expires = jiffies + HZ * 2; |
2441 | local->timer.data = (long)local; | 2425 | local->timer.data = (long)local; |
@@ -2520,7 +2504,7 @@ static void associate(ray_dev_t *local) | |||
2520 | del_timer(&local->timer); | 2504 | del_timer(&local->timer); |
2521 | local->timer.expires = jiffies + HZ * 2; | 2505 | local->timer.expires = jiffies + HZ * 2; |
2522 | local->timer.data = (long)local; | 2506 | local->timer.data = (long)local; |
2523 | local->timer.function = &join_net; | 2507 | local->timer.function = join_net; |
2524 | add_timer(&local->timer); | 2508 | add_timer(&local->timer); |
2525 | local->card_status = CARD_ASSOC_FAILED; | 2509 | local->card_status = CARD_ASSOC_FAILED; |
2526 | return; | 2510 | return; |
@@ -2554,7 +2538,7 @@ static void clear_interrupt(ray_dev_t *local) | |||
2554 | #ifdef CONFIG_PROC_FS | 2538 | #ifdef CONFIG_PROC_FS |
2555 | #define MAXDATA (PAGE_SIZE - 80) | 2539 | #define MAXDATA (PAGE_SIZE - 80) |
2556 | 2540 | ||
2557 | static char *card_status[] = { | 2541 | static const char *card_status[] = { |
2558 | "Card inserted - uninitialized", /* 0 */ | 2542 | "Card inserted - uninitialized", /* 0 */ |
2559 | "Card not downloaded", /* 1 */ | 2543 | "Card not downloaded", /* 1 */ |
2560 | "Waiting for download parameters", /* 2 */ | 2544 | "Waiting for download parameters", /* 2 */ |
@@ -2571,8 +2555,8 @@ static char *card_status[] = { | |||
2571 | "Association failed" /* 16 */ | 2555 | "Association failed" /* 16 */ |
2572 | }; | 2556 | }; |
2573 | 2557 | ||
2574 | static char *nettype[] = { "Adhoc", "Infra " }; | 2558 | static const char *nettype[] = { "Adhoc", "Infra " }; |
2575 | static char *framing[] = { "Encapsulation", "Translation" } | 2559 | static const char *framing[] = { "Encapsulation", "Translation" } |
2576 | 2560 | ||
2577 | ; | 2561 | ; |
2578 | /*===========================================================================*/ | 2562 | /*===========================================================================*/ |