aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/b43.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2007-09-20 16:14:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:24 -0400
commitfda9abcf1a5b6b78a4ead25729583541af9876b5 (patch)
treead8029180557a5c4dce3f0a4e7c118bffca25eef /drivers/net/wireless/b43/b43.h
parent6a724d68a38c33ba4c7f7b5f008301ac12c9ced1 (diff)
[B43]: 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. Cc: Larry Finger <larry.finger@lwfinger.net> Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r--drivers/net/wireless/b43/b43.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index 270a2112de2a..a22435ade8ca 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -459,7 +459,6 @@ struct b43_phy {
459 u16 radio_ver; /* Radio version */ 459 u16 radio_ver; /* Radio version */
460 u8 radio_rev; /* Radio revision */ 460 u8 radio_rev; /* Radio revision */
461 461
462 bool radio_on; /* Radio switched on/off */
463 bool locked; /* Only used in b43_phy_{un}lock() */ 462 bool locked; /* Only used in b43_phy_{un}lock() */
464 bool dyn_tssi_tbl; /* tssi2dbm is kmalloc()ed. */ 463 bool dyn_tssi_tbl; /* tssi2dbm is kmalloc()ed. */
465 464
@@ -468,6 +467,16 @@ struct b43_phy {
468 bool aci_wlan_automatic; 467 bool aci_wlan_automatic;
469 bool aci_hw_rssi; 468 bool aci_hw_rssi;
470 469
470 /* Radio switched on/off */
471 bool radio_on;
472 struct {
473 /* Values saved when turning the radio off.
474 * They are needed when turning it on again. */
475 bool valid;
476 u16 rfover;
477 u16 rfoverval;
478 } radio_off_context;
479
471 u16 minlowsig[2]; 480 u16 minlowsig[2];
472 u16 minlowsigpos[2]; 481 u16 minlowsigpos[2];
473 482