summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1211rw/zd_rf.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-04-07 16:00:15 +0100
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:01:03 -0400
commit72018b223dcacb631f140d4c8fada3790bd1b03c (patch)
treefbe954ad79bd8496c8f549f1381749cb0d6bb1c5 /drivers/net/wireless/zd1211rw/zd_rf.h
parentdc536a706951e23d3c81d0aa81414dc9f2c34ce5 (diff)
downloadblackbird-obmc-linux-72018b223dcacb631f140d4c8fada3790bd1b03c.tar.gz
blackbird-obmc-linux-72018b223dcacb631f140d4c8fada3790bd1b03c.zip
[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.h')
-rw-r--r--drivers/net/wireless/zd1211rw/zd_rf.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_rf.h b/drivers/net/wireless/zd1211rw/zd_rf.h
index ee8ac3a95b9e..aa9cc105ce60 100644
--- a/drivers/net/wireless/zd1211rw/zd_rf.h
+++ b/drivers/net/wireless/zd1211rw/zd_rf.h
@@ -47,17 +47,13 @@ struct zd_rf {
u8 type;
u8 channel;
- /*
- * Whether this RF should patch the 6M band edge
- * (assuming E2P_POD agrees)
- */
- u8 patch_6m_band_edge:1;
/* RF-specific functions */
int (*init_hw)(struct zd_rf *rf);
int (*set_channel)(struct zd_rf *rf, u8 channel);
int (*switch_radio_on)(struct zd_rf *rf);
int (*switch_radio_off)(struct zd_rf *rf);
+ int (*patch_6m_band_edge)(struct zd_rf *rf, u8 channel);
};
const char *zd_rf_name(u8 type);
@@ -72,6 +68,9 @@ int zd_rf_set_channel(struct zd_rf *rf, u8 channel);
int zd_switch_radio_on(struct zd_rf *rf);
int zd_switch_radio_off(struct zd_rf *rf);
+int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel);
+int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel);
+
/* Functions for individual RF chips */
int zd_rf_init_rf2959(struct zd_rf *rf);
OpenPOWER on IntegriCloud