aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_wlan.h
diff options
context:
space:
mode:
authorJouni Malinen <jkmaline@cc.hut.fi>2005-08-14 22:08:41 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-08-14 23:06:27 -0400
commit67e0e473fb54e7657f6604236e42ef07fd7a2768 (patch)
tree97b8086510c2ec70ffdc607df62c0f651dbab3cb /drivers/net/wireless/hostap/hostap_wlan.h
parentea3f1865f33bd328bf043f47492f401a42de5edb (diff)
[PATCH] hostap: Use void *hw_priv instead of #ifdef in local data
Replace hardware model specific #ifdef's in struct local_info with void *hw_priv that is pointing to cs/pci/plx specific data structure. This removes unneeded #ifdef's and as such, is a step towards making it possible to share objects for hostap_hw.c and hostap_download.c with cs/pci/plx drivers without having to compile and link the same code separately for each one. Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_wlan.h')
-rw-r--r--drivers/net/wireless/hostap/hostap_wlan.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/net/wireless/hostap/hostap_wlan.h b/drivers/net/wireless/hostap/hostap_wlan.h
index 56416b43e414..7781e8264d64 100644
--- a/drivers/net/wireless/hostap/hostap_wlan.h
+++ b/drivers/net/wireless/hostap/hostap_wlan.h
@@ -876,27 +876,8 @@ struct local_info {
876 int io_debug_enabled; 876 int io_debug_enabled;
877#endif /* PRISM2_IO_DEBUG */ 877#endif /* PRISM2_IO_DEBUG */
878 878
879 /* struct local_info is used also in hostap.o that does not define 879 /* Pointer to hardware model specific (cs,pci,plx) private data. */
880 * any PRISM2_{PCCARD,PLX,PCI}. Make sure that the hardware version 880 void *hw_priv;
881 * specific fields are in the end of the struct (these could also be
882 * moved to void *priv or something like that). */
883#ifdef PRISM2_PCCARD
884 dev_node_t node;
885 dev_link_t *link;
886 int sandisk_connectplus;
887#endif /* PRISM2_PCCARD */
888
889#ifdef PRISM2_PLX
890 void __iomem *attr_mem;
891 unsigned int cor_offset;
892#endif /* PRISM2_PLX */
893
894#ifdef PRISM2_PCI
895 void __iomem *mem_start;
896#endif /* PRISM2_PCI */
897
898 /* NOTE! Do not add common entries here after hardware version
899 * specific blocks. */
900}; 881};
901 882
902 883