aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2005-09-23 04:18:06 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-23 04:36:13 -0400
commitd133ae4cd6a3c75c31b1630f906cc9979a11077f (patch)
tree4b292054c342e6e8c5b2594c62cbf3534eea1edf /drivers/net/wireless/orinoco.h
parent393da59834eef526fc6fd0df321e94344d7c49e3 (diff)
[PATCH] orinoco: Annotate endianess of variables and structure members.
Signed-off-by: Pavel Roskin <proski@gnu.org> Annotate endianess of variables and structure members. Don't reuse variables for both host-endian and little-endian data. Minor comment changes in affected structures. Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/wireless/orinoco.h')
-rw-r--r--drivers/net/wireless/orinoco.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/orinoco.h b/drivers/net/wireless/orinoco.h
index 32530d435afb..6920ead11449 100644
--- a/drivers/net/wireless/orinoco.h
+++ b/drivers/net/wireless/orinoco.h
@@ -27,7 +27,7 @@
27#define ORINOCO_MAX_KEYS 4 27#define ORINOCO_MAX_KEYS 4
28 28
29struct orinoco_key { 29struct orinoco_key {
30 u16 len; /* always stored as little-endian */ 30 __le16 len; /* always stored as little-endian */
31 char data[ORINOCO_MAX_KEY_SIZE]; 31 char data[ORINOCO_MAX_KEY_SIZE];
32} __attribute__ ((packed)); 32} __attribute__ ((packed));
33 33
@@ -35,14 +35,14 @@ struct header_struct {
35 /* 802.3 */ 35 /* 802.3 */
36 u8 dest[ETH_ALEN]; 36 u8 dest[ETH_ALEN];
37 u8 src[ETH_ALEN]; 37 u8 src[ETH_ALEN];
38 u16 len; 38 __be16 len;
39 /* 802.2 */ 39 /* 802.2 */
40 u8 dsap; 40 u8 dsap;
41 u8 ssap; 41 u8 ssap;
42 u8 ctrl; 42 u8 ctrl;
43 /* SNAP */ 43 /* SNAP */
44 u8 oui[3]; 44 u8 oui[3];
45 u16 ethertype; 45 unsigned short ethertype;
46} __attribute__ ((packed)); 46} __attribute__ ((packed));
47 47
48typedef enum { 48typedef enum {