diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 22:48:20 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 22:48:20 -0400 |
commit | b453872c35cfcbdbf5a794737817f7d4e7b1b579 (patch) | |
tree | 6639da0b12e3f071b57f388c97d28e451f8f3cd3 /drivers/net/wireless/orinoco.c | |
parent | fff9cfd99c0f88645c3f50d7476d6c8cef99f140 (diff) |
[NET] ieee80211 subsystem
Contributors:
Host AP contributors
James Ketrenos <jketreno@linux.intel.com>
Francois Romieu <romieu@fr.zoreil.com>
Adrian Bunk <bunk@stusta.de>
Matthew Galgoci <mgalgoci@parcelfarce.linux.th
eplanet.co.uk>
Diffstat (limited to 'drivers/net/wireless/orinoco.c')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index a3a32430ae9d..b47684c3217e 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -464,6 +464,8 @@ | |||
464 | #include <linux/etherdevice.h> | 464 | #include <linux/etherdevice.h> |
465 | #include <linux/wireless.h> | 465 | #include <linux/wireless.h> |
466 | 466 | ||
467 | #include <net/ieee80211.h> | ||
468 | |||
467 | #include <asm/uaccess.h> | 469 | #include <asm/uaccess.h> |
468 | #include <asm/io.h> | 470 | #include <asm/io.h> |
469 | #include <asm/system.h> | 471 | #include <asm/system.h> |
@@ -471,7 +473,6 @@ | |||
471 | #include "hermes.h" | 473 | #include "hermes.h" |
472 | #include "hermes_rid.h" | 474 | #include "hermes_rid.h" |
473 | #include "orinoco.h" | 475 | #include "orinoco.h" |
474 | #include "ieee802_11.h" | ||
475 | 476 | ||
476 | /********************************************************************/ | 477 | /********************************************************************/ |
477 | /* Module information */ | 478 | /* Module information */ |
@@ -509,7 +510,7 @@ MODULE_PARM_DESC(suppress_linkstatus, "Don't log link status changes"); | |||
509 | /********************************************************************/ | 510 | /********************************************************************/ |
510 | 511 | ||
511 | #define ORINOCO_MIN_MTU 256 | 512 | #define ORINOCO_MIN_MTU 256 |
512 | #define ORINOCO_MAX_MTU (IEEE802_11_DATA_LEN - ENCAPS_OVERHEAD) | 513 | #define ORINOCO_MAX_MTU (IEEE80211_DATA_LEN - ENCAPS_OVERHEAD) |
513 | 514 | ||
514 | #define SYMBOL_MAX_VER_LEN (14) | 515 | #define SYMBOL_MAX_VER_LEN (14) |
515 | #define USER_BAP 0 | 516 | #define USER_BAP 0 |
@@ -760,7 +761,7 @@ static int orinoco_change_mtu(struct net_device *dev, int new_mtu) | |||
760 | if ( (new_mtu < ORINOCO_MIN_MTU) || (new_mtu > ORINOCO_MAX_MTU) ) | 761 | if ( (new_mtu < ORINOCO_MIN_MTU) || (new_mtu > ORINOCO_MAX_MTU) ) |
761 | return -EINVAL; | 762 | return -EINVAL; |
762 | 763 | ||
763 | if ( (new_mtu + ENCAPS_OVERHEAD + IEEE802_11_HLEN) > | 764 | if ( (new_mtu + ENCAPS_OVERHEAD + IEEE80211_HLEN) > |
764 | (priv->nicbuf_size - ETH_HLEN) ) | 765 | (priv->nicbuf_size - ETH_HLEN) ) |
765 | return -EINVAL; | 766 | return -EINVAL; |
766 | 767 | ||
@@ -1104,7 +1105,7 @@ static void __orinoco_ev_rx(struct net_device *dev, hermes_t *hw) | |||
1104 | stats->rx_dropped++; | 1105 | stats->rx_dropped++; |
1105 | goto drop; | 1106 | goto drop; |
1106 | } | 1107 | } |
1107 | if (length > IEEE802_11_DATA_LEN) { | 1108 | if (length > IEEE80211_DATA_LEN) { |
1108 | printk(KERN_WARNING "%s: Oversized frame received (%d bytes)\n", | 1109 | printk(KERN_WARNING "%s: Oversized frame received (%d bytes)\n", |
1109 | dev->name, length); | 1110 | dev->name, length); |
1110 | stats->rx_length_errors++; | 1111 | stats->rx_length_errors++; |
@@ -2264,7 +2265,7 @@ static int orinoco_init(struct net_device *dev) | |||
2264 | 2265 | ||
2265 | /* No need to lock, the hw_unavailable flag is already set in | 2266 | /* No need to lock, the hw_unavailable flag is already set in |
2266 | * alloc_orinocodev() */ | 2267 | * alloc_orinocodev() */ |
2267 | priv->nicbuf_size = IEEE802_11_FRAME_LEN + ETH_HLEN; | 2268 | priv->nicbuf_size = IEEE80211_FRAME_LEN + ETH_HLEN; |
2268 | 2269 | ||
2269 | /* Initialize the firmware */ | 2270 | /* Initialize the firmware */ |
2270 | err = hermes_init(hw); | 2271 | err = hermes_init(hw); |