diff options
author | Daniel Drake <dsd@gentoo.org> | 2007-05-24 01:06:41 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-08 22:16:37 -0400 |
commit | 9c8fc71ddd1b42c0c632036333790f230cea815d (patch) | |
tree | 1f122493a966c9caba9ec1666a2a2503259b3fce /drivers/net/wireless/zd1211rw/zd_rf.h | |
parent | a9eea9ae6e82d1b0f453c24103a84ce7af5d1e15 (diff) | |
download | blackbird-op-linux-9c8fc71ddd1b42c0c632036333790f230cea815d.tar.gz blackbird-op-linux-9c8fc71ddd1b42c0c632036333790f230cea815d.zip |
[PATCH] zd1211rw: Extend RF layer
These changes are needed for UW2453 RF support:
Add pointer which RF drivers can use to store private RF data
Add exit hook so that RF drivers can free private data
Allow RF's to disable the generic TX power integration handling code
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_rf.h b/drivers/net/wireless/zd1211rw/zd_rf.h index aa9cc105ce60..c204f9ae7128 100644 --- a/drivers/net/wireless/zd1211rw/zd_rf.h +++ b/drivers/net/wireless/zd1211rw/zd_rf.h @@ -48,12 +48,20 @@ struct zd_rf { u8 channel; + /* whether channel integration and calibration should be updated + * defaults to 1 (yes) */ + u8 update_channel_int:1; + + /* private RF driver data */ + void *priv; + /* 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); + void (*clear)(struct zd_rf *rf); }; const char *zd_rf_name(u8 type); @@ -71,6 +79,11 @@ 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); +static inline int zd_rf_should_update_pwr_int(struct zd_rf *rf) +{ + return rf->update_channel_int; +} + /* Functions for individual RF chips */ int zd_rf_init_rf2959(struct zd_rf *rf); |