From: Jim C. <jim...@gm...> - 2012-05-19 07:38:25
|
Add 2 macros: OP_TX_RET_TYPE, OP_TX_RET_OK to hide acx_op_tx() interface changes inside acx_compat.h Signed-off-by: Jim Cromie <jim...@gm...> --- acx_compat.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/acx_compat.h b/acx_compat.h index 3caacba..dba1040 100644 --- a/acx_compat.h +++ b/acx_compat.h @@ -46,3 +46,14 @@ do { \ # define VIF_vif(vif) vif # define VIF_addr(vif) vif->addr #endif + +/* hide some of the version dependent function signature changes in + * struct ieee80211_ops; starting with acx_op_tx(). + */ +#if CONFIG_ACX_MAC80211_VERSION < KERNEL_VERSION(2, 6, 39) +# define OP_TX_RET_TYPE int +# define OP_TX_RET_OK NETDEV_TX_OK +#else +# define OP_TX_RET_TYPE void +# define OP_TX_RET_OK /* void */ +#endif -- 1.7.10.1.487.ga3935e6 |