aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-06-28 03:28:39 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-29 15:11:03 -0400
commit2d02c86b7720c2f0614ed838187b05a7ddb0ea83 (patch)
tree5afc0118b5d593ea577acf37ce06ef4d36815bd2
parent71d3b0d592601f26be2233a7922d53e762516fee (diff)
b43: HT-PHY: basic PHY init
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/b43/phy_ht.c9
-rw-r--r--drivers/net/wireless/b43/tables_phy_ht.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c
index 28fb7464c318..69412d1fb655 100644
--- a/drivers/net/wireless/b43/phy_ht.c
+++ b/drivers/net/wireless/b43/phy_ht.c
@@ -205,6 +205,13 @@ static void b43_phy_ht_op_prepare_structs(struct b43_wldev *dev)
205 memset(phy_ht, 0, sizeof(*phy_ht)); 205 memset(phy_ht, 0, sizeof(*phy_ht));
206} 206}
207 207
208static int b43_phy_ht_op_init(struct b43_wldev *dev)
209{
210 b43_phy_ht_tables_init(dev);
211
212 return 0;
213}
214
208static void b43_phy_ht_op_free(struct b43_wldev *dev) 215static void b43_phy_ht_op_free(struct b43_wldev *dev)
209{ 216{
210 struct b43_phy *phy = &dev->phy; 217 struct b43_phy *phy = &dev->phy;
@@ -326,9 +333,7 @@ const struct b43_phy_operations b43_phyops_ht = {
326 .allocate = b43_phy_ht_op_allocate, 333 .allocate = b43_phy_ht_op_allocate,
327 .free = b43_phy_ht_op_free, 334 .free = b43_phy_ht_op_free,
328 .prepare_structs = b43_phy_ht_op_prepare_structs, 335 .prepare_structs = b43_phy_ht_op_prepare_structs,
329 /*
330 .init = b43_phy_ht_op_init, 336 .init = b43_phy_ht_op_init,
331 */
332 .phy_read = b43_phy_ht_op_read, 337 .phy_read = b43_phy_ht_op_read,
333 .phy_write = b43_phy_ht_op_write, 338 .phy_write = b43_phy_ht_op_write,
334 .phy_maskset = b43_phy_ht_op_maskset, 339 .phy_maskset = b43_phy_ht_op_maskset,
diff --git a/drivers/net/wireless/b43/tables_phy_ht.h b/drivers/net/wireless/b43/tables_phy_ht.h
index 6a136148edd7..ea3be382c894 100644
--- a/drivers/net/wireless/b43/tables_phy_ht.h
+++ b/drivers/net/wireless/b43/tables_phy_ht.h
@@ -17,4 +17,6 @@ void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value);
17void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset, 17void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset,
18 unsigned int nr_elements, const void *_data); 18 unsigned int nr_elements, const void *_data);
19 19
20void b43_phy_ht_tables_init(struct b43_wldev *dev);
21
20#endif /* B43_TABLES_PHY_HT_H_ */ 22#endif /* B43_TABLES_PHY_HT_H_ */