diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-08-27 12:53:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:24:12 -0400 |
commit | ef1a628d83fc0423c36e773281162be790503168 (patch) | |
tree | 436d3d7d91434febb1813dcea16060e6937288b9 /drivers/net/wireless/b43/rfkill.c | |
parent | 35e032d82f3e2a9b0d92077b4fbc97166525ed53 (diff) |
b43: Implement dynamic PHY API
This patch implements a dynamic "ops" based PHY API.
This is needed in order to conveniently support future PHY types
to avoid the "switch"-hell.
This patch does not change any functionality. It just moves lots
of code from one place to another and adjusts it for the changed
data structures.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/rfkill.c')
-rw-r--r-- | drivers/net/wireless/b43/rfkill.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/rfkill.c b/drivers/net/wireless/b43/rfkill.c index fec5645944a4..7b9e99adb8c3 100644 --- a/drivers/net/wireless/b43/rfkill.c +++ b/drivers/net/wireless/b43/rfkill.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include "rfkill.h" | 25 | #include "rfkill.h" |
26 | #include "b43.h" | 26 | #include "b43.h" |
27 | #include "phy_common.h" | ||
27 | 28 | ||
28 | #include <linux/kmod.h> | 29 | #include <linux/kmod.h> |
29 | 30 | ||
@@ -114,11 +115,11 @@ static int b43_rfkill_soft_toggle(void *data, enum rfkill_state state) | |||
114 | goto out_unlock; | 115 | goto out_unlock; |
115 | } | 116 | } |
116 | if (!dev->phy.radio_on) | 117 | if (!dev->phy.radio_on) |
117 | b43_radio_turn_on(dev); | 118 | b43_software_rfkill(dev, state); |
118 | break; | 119 | break; |
119 | case RFKILL_STATE_SOFT_BLOCKED: | 120 | case RFKILL_STATE_SOFT_BLOCKED: |
120 | if (dev->phy.radio_on) | 121 | if (dev->phy.radio_on) |
121 | b43_radio_turn_off(dev, 0); | 122 | b43_software_rfkill(dev, state); |
122 | break; | 123 | break; |
123 | default: | 124 | default: |
124 | b43warn(wl, "Received unexpected rfkill state %d.\n", state); | 125 | b43warn(wl, "Received unexpected rfkill state %d.\n", state); |