b43: N-PHY: put 2056-radio's specific code in separated file
[linux-2.6/btrfs-unstable.git] / drivers / net / wireless / b43 / radio_2056.c
blobd8563192ce56cc538086e3171fd68fed6472c24f
1 /*
3 Broadcom B43 wireless driver
4 IEEE 802.11n 2056 radio device data tables
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
19 Boston, MA 02110-1301, USA.
23 #include "b43.h"
24 #include "radio_2056.h"
25 #include "phy_common.h"
27 static const struct b43_nphy_channeltab_entry_rev3 b43_nphy_channeltab_rev3[] = {
30 const struct b43_nphy_channeltab_entry_rev3 *
31 b43_nphy_get_chantabent_rev3(struct b43_wldev *dev, u16 freq)
33 const struct b43_nphy_channeltab_entry_rev3 *e;
34 unsigned int i;
36 for (i = 0; i < ARRAY_SIZE(b43_nphy_channeltab_rev3); i++) {
37 e = &(b43_nphy_channeltab_rev3[i]);
38 if (e->freq == freq)
39 return e;
42 return NULL;