Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265620
b: refs/heads/master
c: 15222b5
h: refs/heads/master
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Aug 22, 2011
1 parent 0ec5bfd commit ac2c2d1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a63d7e67fc259249c563878f8e296a2ed6def039
refs/heads/master: 15222b582dc761ba1eb1ed47367df43f803f3670
22 changes: 22 additions & 0 deletions trunk/drivers/net/wireless/b43/phy_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,24 @@ static void b43_radio_2059_init(struct b43_wldev *dev)
b43_radio_mask(dev, 0x11, ~0x0008);
}

/**************************************************
* Various PHY ops
**************************************************/

static void b43_phy_ht_zero_extg(struct b43_wldev *dev)
{
u8 i, j;
u16 base[] = { 0x40, 0x60, 0x80 };

for (i = 0; i < ARRAY_SIZE(base); i++) {
for (j = 0; j < 4; j++)
b43_phy_write(dev, B43_PHY_EXTG(base[i] + j), 0);
}

for (i = 0; i < ARRAY_SIZE(base); i++)
b43_phy_write(dev, B43_PHY_EXTG(base[i] + 0xc), 0);
}

/**************************************************
* Channel switching ops.
**************************************************/
Expand Down Expand Up @@ -257,6 +275,10 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev)
{
b43_phy_ht_tables_init(dev);

/* TODO: PHY ops on regs 0x0be, 0x23f 0x240 0x241 */

b43_phy_ht_zero_extg(dev);

return 0;
}

Expand Down

0 comments on commit ac2c2d1

Please sign in to comment.