Commit 2d02c86b authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

b43: HT-PHY: basic PHY init

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 71d3b0d5
...@@ -205,6 +205,13 @@ static void b43_phy_ht_op_prepare_structs(struct b43_wldev *dev) ...@@ -205,6 +205,13 @@ static void b43_phy_ht_op_prepare_structs(struct b43_wldev *dev)
memset(phy_ht, 0, sizeof(*phy_ht)); memset(phy_ht, 0, sizeof(*phy_ht));
} }
static int b43_phy_ht_op_init(struct b43_wldev *dev)
{
b43_phy_ht_tables_init(dev);
return 0;
}
static void b43_phy_ht_op_free(struct b43_wldev *dev) static void b43_phy_ht_op_free(struct b43_wldev *dev)
{ {
struct b43_phy *phy = &dev->phy; struct b43_phy *phy = &dev->phy;
...@@ -326,9 +333,7 @@ const struct b43_phy_operations b43_phyops_ht = { ...@@ -326,9 +333,7 @@ const struct b43_phy_operations b43_phyops_ht = {
.allocate = b43_phy_ht_op_allocate, .allocate = b43_phy_ht_op_allocate,
.free = b43_phy_ht_op_free, .free = b43_phy_ht_op_free,
.prepare_structs = b43_phy_ht_op_prepare_structs, .prepare_structs = b43_phy_ht_op_prepare_structs,
/*
.init = b43_phy_ht_op_init, .init = b43_phy_ht_op_init,
*/
.phy_read = b43_phy_ht_op_read, .phy_read = b43_phy_ht_op_read,
.phy_write = b43_phy_ht_op_write, .phy_write = b43_phy_ht_op_write,
.phy_maskset = b43_phy_ht_op_maskset, .phy_maskset = b43_phy_ht_op_maskset,
......
...@@ -17,4 +17,6 @@ void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value); ...@@ -17,4 +17,6 @@ void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value);
void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset, void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset,
unsigned int nr_elements, const void *_data); unsigned int nr_elements, const void *_data);
void b43_phy_ht_tables_init(struct b43_wldev *dev);
#endif /* B43_TABLES_PHY_HT_H_ */ #endif /* B43_TABLES_PHY_HT_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment