~ubuntu-branches/ubuntu/vivid/bcmwl/vivid

« back to all changes in this revision

Viewing changes to src/src/include/bcmwifi.h

  • Committer: Package Import Robot
  • Author(s): Alberto Milone
  • Date: 2012-12-11 17:06:22 UTC
  • mfrom: (2.1.6)
  • Revision ID: package-import@ubuntu.com-20121211170622-7bd9yp2wm1plhhu1
Tags: 6.20.155.1+bdcom-0ubuntu1
* New upstream release (LP: #923809):
  - Added 43142 support.
  - Added 4331 support.
* debian/control:
  - depend on the different flavours of the linux-headers.
* Refresh 0002-Makefile.patch and 0001-MODULE_LICENSE.patch.

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 (C) 2010, Broadcom Corporation
7
 
 * All Rights Reserved.
8
 
 * 
9
 
 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
10
 
 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
11
 
 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
12
 
 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
 
6
 * Copyright (C) 2011, Broadcom Corporation. All Rights Reserved.
 
7
 * 
 
8
 * Permission to use, copy, modify, and/or distribute this software for any
 
9
 * purpose with or without fee is hereby granted, provided that the above
 
10
 * copyright notice and this permission notice appear in all copies.
 
11
 * 
 
12
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 
13
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 
14
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 
15
 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
16
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 
17
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 
18
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13
19
 *
14
 
 * $Id: bcmwifi.h,v 1.29.16.1 2010-08-25 22:06:55 Exp $
 
20
 * $Id: bcmwifi.h 241182 2011-02-17 21:50:03Z $
15
21
 */
16
22
 
17
23
#ifndef _bcmwifi_h_
71
77
#define CHSPEC_CHANNEL(chspec)  ((uint8)((chspec) & WL_CHANSPEC_CHAN_MASK))
72
78
#define CHSPEC_BAND(chspec)     ((chspec) & WL_CHANSPEC_BAND_MASK)
73
79
 
74
 
#ifdef WL11N_20MHZONLY
75
 
 
76
 
#define CHSPEC_CTL_SB(chspec)   WL_CHANSPEC_CTL_SB_NONE
77
 
#define CHSPEC_BW(chspec)       WL_CHANSPEC_BW_20
78
 
#define CHSPEC_IS10(chspec)     0
79
 
#define CHSPEC_IS20(chspec)     1
80
 
#ifndef CHSPEC_IS40
81
 
#define CHSPEC_IS40(chspec)     0
82
 
#endif
83
 
 
84
 
#else 
85
 
 
86
80
#define CHSPEC_CTL_SB(chspec)   ((chspec) & WL_CHANSPEC_CTL_SB_MASK)
87
81
#define CHSPEC_BW(chspec)       ((chspec) & WL_CHANSPEC_BW_MASK)
 
82
 
88
83
#define CHSPEC_IS10(chspec)     (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_10)
89
84
#define CHSPEC_IS20(chspec)     (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_20)
90
85
#ifndef CHSPEC_IS40
91
86
#define CHSPEC_IS40(chspec)     (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_40)
92
87
#endif
93
88
 
94
 
#endif 
95
 
 
96
89
#define CHSPEC_IS5G(chspec)     (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_5G)
97
90
#define CHSPEC_IS2G(chspec)     (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_2G)
98
91
#define CHSPEC_SB_NONE(chspec)  (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_NONE)