aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/b43legacy.h
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2007-09-20 22:11:02 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:25 -0400
commit42a9174f541d2338d35b91869415d9ae9312ca0d (patch)
tree34e35b54b63764a39c7e087d184b1e0fca1a9c5f /drivers/net/wireless/b43legacy/b43legacy.h
parentfda9abcf1a5b6b78a4ead25729583541af9876b5 (diff)
[B43LEGACY]: Support for turning the radio off from software.
This adds support for turning the radio off in software. That's useful in environments, where you don't want the RF to radiate any signals, but don't want to bring the interface down. This patch is based on a similar patch of b43 by Michael Buesch. Signed-off-by: Larry Finger <larry.finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43legacy/b43legacy.h')
-rw-r--r--drivers/net/wireless/b43legacy/b43legacy.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43legacy/b43legacy.h b/drivers/net/wireless/b43legacy/b43legacy.h
index 34a6277051a1..746de2ff498c 100644
--- a/drivers/net/wireless/b43legacy/b43legacy.h
+++ b/drivers/net/wireless/b43legacy/b43legacy.h
@@ -411,7 +411,6 @@ struct b43legacy_phy {
411 u8 calibrated:1; 411 u8 calibrated:1;
412 u8 radio_rev; /* Radio revision */ 412 u8 radio_rev; /* Radio revision */
413 413
414 bool radio_on; /* Radio switched on/off */
415 bool locked; /* Only used in b43legacy_phy_{un}lock() */ 414 bool locked; /* Only used in b43legacy_phy_{un}lock() */
416 bool dyn_tssi_tbl; /* tssi2dbm is kmalloc()ed. */ 415 bool dyn_tssi_tbl; /* tssi2dbm is kmalloc()ed. */
417 416
@@ -420,6 +419,16 @@ struct b43legacy_phy {
420 bool aci_wlan_automatic; 419 bool aci_wlan_automatic;
421 bool aci_hw_rssi; 420 bool aci_hw_rssi;
422 421
422 /* Radio switched on/off */
423 bool radio_on;
424 struct {
425 /* Values saved when turning the radio off.
426 * They are needed when turning it on again. */
427 bool valid;
428 u16 rfover;
429 u16 rfoverval;
430 } radio_off_context;
431
423 u16 minlowsig[2]; 432 u16 minlowsig[2];
424 u16 minlowsigpos[2]; 433 u16 minlowsigpos[2];
425 434