aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/b43.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-01-09 13:08:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:32 -0500
commitf31800d8b79bc42e495070aa6e6425841b7bdcbf (patch)
tree65f26267ae5b6d3876079913330634392654af00 /drivers/net/wireless/b43/b43.h
parent5250703e3144e50fbeceb4d1fc01ea2fd159fd4a (diff)
b43: Remove the PHY spinlock
This fixes a sparse warning about weird locking. The spinlock is not needed, so simply remove it. This also adds some sanity checks to the PHY and radio locking to protect against recursive locking. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r--drivers/net/wireless/b43/b43.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index 086a9c6c2b07..5a1a790a105b 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -476,7 +476,6 @@ struct b43_phy {
476 u16 radio_ver; /* Radio version */ 476 u16 radio_ver; /* Radio version */
477 u8 radio_rev; /* Radio revision */ 477 u8 radio_rev; /* Radio revision */
478 478
479 bool locked; /* Only used in b43_phy_{un}lock() */
480 bool dyn_tssi_tbl; /* tssi2dbm is kmalloc()ed. */ 479 bool dyn_tssi_tbl; /* tssi2dbm is kmalloc()ed. */
481 480
482 /* ACI (adjacent channel interference) flags. */ 481 /* ACI (adjacent channel interference) flags. */
@@ -513,11 +512,6 @@ struct b43_phy {
513 s16 lna_gain; /* LNA */ 512 s16 lna_gain; /* LNA */
514 s16 pga_gain; /* PGA */ 513 s16 pga_gain; /* PGA */
515 514
516 /* PHY lock for core.rev < 3
517 * This lock is only used by b43_phy_{un}lock()
518 */
519 spinlock_t lock;
520
521 /* Desired TX power level (in dBm). 515 /* Desired TX power level (in dBm).
522 * This is set by the user and adjusted in b43_phy_xmitpower(). */ 516 * This is set by the user and adjusted in b43_phy_xmitpower(). */
523 u8 power_level; 517 u8 power_level;
@@ -528,9 +522,7 @@ struct b43_phy {
528 struct b43_bbatt bbatt; 522 struct b43_bbatt bbatt;
529 struct b43_rfatt rfatt; 523 struct b43_rfatt rfatt;
530 u8 tx_control; /* B43_TXCTL_XXX */ 524 u8 tx_control; /* B43_TXCTL_XXX */
531#ifdef CONFIG_B43_DEBUG 525
532 bool manual_txpower_control; /* Manual TX-power control enabled? */
533#endif
534 /* Hardware Power Control enabled? */ 526 /* Hardware Power Control enabled? */
535 bool hardware_power_control; 527 bool hardware_power_control;
536 528
@@ -571,6 +563,13 @@ struct b43_phy {
571 B43_OFDMTAB_DIRECTION_READ, 563 B43_OFDMTAB_DIRECTION_READ,
572 B43_OFDMTAB_DIRECTION_WRITE, 564 B43_OFDMTAB_DIRECTION_WRITE,
573 } ofdmtab_addr_direction; 565 } ofdmtab_addr_direction;
566
567#if B43_DEBUG
568 /* Manual TX-power control enabled? */
569 bool manual_txpower_control;
570 /* PHY registers locked by b43_phy_lock()? */
571 bool phy_locked;
572#endif /* B43_DEBUG */
574}; 573};
575 574
576/* Data structures for DMA transmission, per 80211 core. */ 575/* Data structures for DMA transmission, per 80211 core. */