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

« back to all changes in this revision

Viewing changes to src/src/include/bcmwifi.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:
3
3
 * This header file housing the define and function prototype use by
4
4
 * both the wl driver, tools & Apps.
5
5
 *
6
 
 * Copyright 2008, Broadcom Corporation
 
6
 * Copyright (C) 2010, Broadcom Corporation
7
7
 * All Rights Reserved.
8
8
 * 
9
 
 *      Unless you and Broadcom execute a separate written software license
10
 
 * agreement governing use of this software, this software is licensed to you
11
 
 * under the terms of the GNU General Public License version 2, available at
12
 
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"), with the
13
 
 * following added to such license:
14
 
 *      As a special exception, the copyright holders of this software give you
15
 
 * permission to link this software with independent modules, regardless of the
16
 
 * license terms of these independent modules, and to copy and distribute the
17
 
 * resulting executable under terms of your choice, provided that you also meet,
18
 
 * for each linked independent module, the terms and conditions of the license
19
 
 * of that module. An independent module is a module which is not derived from
20
 
 * this software.
21
 
 *
22
9
 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
23
10
 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
24
11
 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
25
12
 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
26
13
 *
27
 
 * $Id: bcmwifi.h,v 1.19.2.1.54.1 2009/03/25 01:50:55 Exp $
 
14
 * $Id: bcmwifi.h,v 1.24 2009/05/21 21:22:04 Exp $
28
15
 */
29
16
 
30
17
#ifndef _bcmwifi_h_
100
87
#define CHSPEC_CTL_CHAN(chspec)  ((CHSPEC_SB_LOWER(chspec)) ? \
101
88
                                  (LOWER_20_SB((chspec & WL_CHANSPEC_CHAN_MASK))) : \
102
89
                                  (UPPER_20_SB((chspec & WL_CHANSPEC_CHAN_MASK))))
 
90
#define CHSPEC2WLC_BAND(chspec) (CHSPEC_IS5G((chspec))? WLC_BAND_5G: WLC_BAND_2G)
103
91
 
104
92
#define CHANSPEC_STR_LEN    8
105
93
 
127
115
 
128
116
extern uint8 wf_chspec_ctlchan(chanspec_t chspec);
129
117
 
 
118
extern chanspec_t wf_chspec_ctlchspec(chanspec_t chspec);
 
119
 
130
120
extern int wf_mhz2channel(uint freq, uint start_factor);
131
121
 
132
122
extern int wf_channel2mhz(uint channel, uint start_factor);