~vanvugt/ubuntu/natty/bcmwl/fix-793890

« back to all changes in this revision

Viewing changes to src/src/include/proto/ethernet.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2010-02-14 19:58:58 UTC
  • mfrom: (2.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100214195858-yw9z3vstz9kyw5jl
Tags: 5.60.48.36+bdcom-0ubuntu1
* New upstream release (LP: #432780):
  - Support up to linux kernel 2.6.31. 2.6.32 support is there
    also but not tested (although reports from users suggests it
    works fine).
  - Support for hidden networks.
  - Support for rfkill in kernels < 2.6.31.
  - Setting power level via 'iwconfig eth1 txpower X' is now
    operational
  - Add support for 4313.
  - Additional channels in both 2.4 and 5 Ghz bands.
  - Fix issue with tkip group keys that caused the following
    message to repeat often:
    TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800cf80e840
  - Fix a continuous assoc/disassoc loop (in Ubuntu 8.04)
    with suspend/resume with WPA2 and wpa_supplicant.
  - Fix bug affecting Ubuntu 8.04 which prevented from pinging when
    Linux STA is IBSS creator with WEP.
  - Fix bug affecting Ubuntu 9.04 which prevented from connecting to
    hidden networks after suspend/resume.
  - Fix bug which prevented the driver from associating to AP with
    when transitioning from AES to TKIP encryption.
* debian/patches/0002-Makefile.patch:
  - Refresh patch.
* debian/patches/0003-DEV_WL_IF.patch,
  0004-broadcom-sta-5.10.91.9-linux-2.6.30.patch,
  0005-NET_DEVICE_OPS.patch,
  0006-broadcom-sta-5.10.91.9-linux-2.6.32.patch:
  - Drop patches as they are now part of the upstream code.
* debian/dkms.conf.in:
  - Remove the lines about the above mentioned patches.
* debian/bcmwl-kernel-source.postinst:
  - Make use of /usr/lib/dkms/common.postinst (LP: #497149).
* Bump compat to 5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * From FreeBSD 2.2.7: Fundamental constants relating to ethernet.
3
3
 *
4
 
 * Copyright 2008, Broadcom Corporation
 
4
 * Copyright (C) 2010, Broadcom Corporation
5
5
 * All Rights Reserved.
6
6
 * 
7
 
 *      Unless you and Broadcom execute a separate written software license
8
 
 * agreement governing use of this software, this software is licensed to you
9
 
 * under the terms of the GNU General Public License version 2, available at
10
 
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"), with the
11
 
 * following added to such license:
12
 
 *      As a special exception, the copyright holders of this software give you
13
 
 * permission to link this software with independent modules, regardless of the
14
 
 * license terms of these independent modules, and to copy and distribute the
15
 
 * resulting executable under terms of your choice, provided that you also meet,
16
 
 * for each linked independent module, the terms and conditions of the license
17
 
 * of that module. An independent module is a module which is not derived from
18
 
 * this software.
19
 
 *
20
7
 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
21
8
 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
22
9
 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
23
10
 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
24
11
 *
25
 
 * $Id: ethernet.h,v 9.45.12.1 2008/08/13 02:24:19 Exp $
 
12
 * $Id: ethernet.h,v 9.50.4.3 2009/10/22 07:38:44 Exp $
26
13
 */
27
14
 
28
15
#ifndef _NET_ETHERNET_H_          
32
19
#include "typedefs.h"
33
20
#endif
34
21
 
35
 
#if defined(__GNUC__)
36
 
#define PACKED  __attribute__((packed))
37
 
#else
38
 
#pragma pack(1)
39
 
#define PACKED
40
 
#endif
 
22
#include <packed_section_start.h>
41
23
 
42
24
#define ETHER_ADDR_LEN          6
43
25
 
62
44
#define ETHER_TYPE_BRCM         0x886c          
63
45
#define ETHER_TYPE_802_1X       0x888e          
64
46
#define ETHER_TYPE_802_1X_PREAUTH 0x88c7        
 
47
#define ETHER_TYPE_WAI          0x88b4          
65
48
 
66
49
#define ETHER_BRCM_SUBTYPE_LEN  4       
67
50
#define ETHER_BRCM_CRAM         1       
83
66
 
84
67
#ifndef __INCif_etherh   
85
68
 
86
 
struct  ether_header {
 
69
BWL_PRE_PACKED_STRUCT struct ether_header {
87
70
        uint8   ether_dhost[ETHER_ADDR_LEN];
88
71
        uint8   ether_shost[ETHER_ADDR_LEN];
89
72
        uint16  ether_type;
90
 
} PACKED;
 
73
} BWL_POST_PACKED_STRUCT;
91
74
 
92
 
struct  ether_addr {
 
75
BWL_PRE_PACKED_STRUCT struct    ether_addr {
93
76
        uint8 octet[ETHER_ADDR_LEN];
94
 
} PACKED;
 
77
} BWL_POST_PACKED_STRUCT;
95
78
#endif  
96
79
 
97
80
#define ETHER_SET_LOCALADDR(ea) (((uint8 *)(ea))[0] = (((uint8 *)(ea))[0] | 2))
129
112
                            ((uint8 *)(ea))[4] |                \
130
113
                            ((uint8 *)(ea))[5]) == 0)
131
114
 
132
 
#undef PACKED
133
 
#if !defined(__GNUC__)
134
 
#pragma pack()
135
 
#endif
 
115
#define ETHER_MOVE_HDR(d, s) \
 
116
do { \
 
117
        struct ether_header t; \
 
118
        t = *(struct ether_header *)(s); \
 
119
        *(struct ether_header *)(d) = t; \
 
120
} while (0)
 
121
 
 
122
#include <packed_section_end.h>
136
123
 
137
124
#endif