aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/tables_nphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/tables_nphy.c')
-rw-r--r--drivers/net/wireless/b43/tables_nphy.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c
index d96e870ab8f..e74b8eb5795 100644
--- a/drivers/net/wireless/b43/tables_nphy.c
+++ b/drivers/net/wireless/b43/tables_nphy.c
@@ -325,7 +325,7 @@ void b2055_upload_inittab(struct b43_wldev *dev,
325 .phy_regs.phy_bw5 = r4, \ 325 .phy_regs.phy_bw5 = r4, \
326 .phy_regs.phy_bw6 = r5 326 .phy_regs.phy_bw6 = r5
327 327
328static const struct b43_nphy_channeltab_entry_rev2 b43_nphy_channeltab[] = { 328static const struct b43_nphy_channeltab_entry_rev2 b43_nphy_channeltab_rev2[] = {
329 { .channel = 184, 329 { .channel = 184,
330 .freq = 4920, /* MHz */ 330 .freq = 4920, /* MHz */
331 .unk2 = 3280, 331 .unk2 = 3280,
@@ -1326,8 +1326,8 @@ b43_nphy_get_chantabent_rev2(struct b43_wldev *dev, u8 channel)
1326 const struct b43_nphy_channeltab_entry_rev2 *e; 1326 const struct b43_nphy_channeltab_entry_rev2 *e;
1327 unsigned int i; 1327 unsigned int i;
1328 1328
1329 for (i = 0; i < ARRAY_SIZE(b43_nphy_channeltab); i++) { 1329 for (i = 0; i < ARRAY_SIZE(b43_nphy_channeltab_rev2); i++) {
1330 e = &(b43_nphy_channeltab[i]); 1330 e = &(b43_nphy_channeltab_rev2[i]);
1331 if (e->channel == channel) 1331 if (e->channel == channel)
1332 return e; 1332 return e;
1333 } 1333 }
@@ -1335,6 +1335,24 @@ b43_nphy_get_chantabent_rev2(struct b43_wldev *dev, u8 channel)
1335 return NULL; 1335 return NULL;
1336} 1336}
1337 1337
1338static const struct b43_nphy_channeltab_entry_rev3 b43_nphy_channeltab_rev3[] = {
1339};
1340
1341const struct b43_nphy_channeltab_entry_rev3 *
1342b43_nphy_get_chantabent_rev3(struct b43_wldev *dev, u16 freq)
1343{
1344 const struct b43_nphy_channeltab_entry_rev3 *e;
1345 unsigned int i;
1346
1347 for (i = 0; i < ARRAY_SIZE(b43_nphy_channeltab_rev3); i++) {
1348 e = &(b43_nphy_channeltab_rev3[i]);
1349 if (e->freq == freq)
1350 return e;
1351 }
1352
1353 return NULL;
1354}
1355
1338 1356
1339static const u8 b43_ntab_adjustpower0[] = { 1357static const u8 b43_ntab_adjustpower0[] = {
1340 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 1358 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01,