diff options
author | Daniel Drake <dsd@gentoo.org> | 2007-04-07 11:00:15 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:01:03 -0400 |
commit | 72018b223dcacb631f140d4c8fada3790bd1b03c (patch) | |
tree | fbe954ad79bd8496c8f549f1381749cb0d6bb1c5 /drivers/net/wireless/zd1211rw/zd_rf.c | |
parent | dc536a706951e23d3c81d0aa81414dc9f2c34ce5 (diff) |
[PATCH] zd1211rw: rework band edge patching
This change allows RF drivers to provide their own 6M band edge patching
implementation, while providing a generic implementation shared by most
currently supported RF's.
The upcoming ZD1211B/AL7230B code will use this to define its own
patching function, which is different from the other RF configurations.
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_rf.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_rf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_rf.c b/drivers/net/wireless/zd1211rw/zd_rf.c index 4ddc2cb60d2b..549c23bcd6cc 100644 --- a/drivers/net/wireless/zd1211rw/zd_rf.c +++ b/drivers/net/wireless/zd1211rw/zd_rf.c | |||
@@ -154,3 +154,17 @@ int zd_switch_radio_off(struct zd_rf *rf) | |||
154 | r = t; | 154 | r = t; |
155 | return r; | 155 | return r; |
156 | } | 156 | } |
157 | |||
158 | int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel) | ||
159 | { | ||
160 | if (!rf->patch_6m_band_edge) | ||
161 | return 0; | ||
162 | |||
163 | return rf->patch_6m_band_edge(rf, channel); | ||
164 | } | ||
165 | |||
166 | int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel) | ||
167 | { | ||
168 | return zd_chip_generic_patch_6m_band(zd_rf_to_chip(rf), channel); | ||
169 | } | ||
170 | |||