diff options
author | Sarada Prasanna Garnayak <sgarna@codeaurora.org> | 2016-03-11 16:31:02 +0530 |
---|---|---|
committer | Kyle Yan <kyan@codeaurora.org> | 2016-05-31 15:25:28 -0700 |
commit | 267a202df036e8ef083444309d608868d577944e (patch) | |
tree | 06cb0bed1cd32a97011927648d7fb6e545109793 /include/net/cnss.h | |
parent | b48a17256e088271f19193a7b9f3c9534ed8671c (diff) |
net: cnss: add dual cnss platform driver support for dual WiFi
For dual WiFi both cnss sdio and pcie platform needs to
be enabled. Added changes below to support dual platform
driver for dual WiFi.
Refactor the common api and data structure to avoid namespace
collision compilation error. Refactor sdio and pcie bus specific
kernel api and removed conditional compilation config flag.
The platform driver at run time identifies the wlan bus type
from the PHY device pointer passed by the wlan driver through
vos api and cnss platform driver redirects the cnss api according
the bus type.
Remove conditional compilation flag from cnss common api and
update cnss makefile for dual platform driver compilation
with single config flag.
CRs-Fixed: 988871
Change-Id: I8205c2979c857c2f3845ba2dc397d2f9dd1afa3b
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Signed-off-by: Ryan Hsu <ryanhsu@codeaurora.org>
Diffstat (limited to 'include/net/cnss.h')
-rw-r--r-- | include/net/cnss.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/net/cnss.h b/include/net/cnss.h index 07056c1cc522..78d68fd22ded 100644 --- a/include/net/cnss.h +++ b/include/net/cnss.h @@ -16,9 +16,7 @@ #include <linux/skbuff.h> #include <linux/pci.h> #include <net/cnss_common.h> -#ifdef CONFIG_CNSS_SDIO #include <linux/mmc/sdio_func.h> -#endif #ifdef CONFIG_CNSS #define CNSS_MAX_FILE_NAME 20 @@ -192,7 +190,6 @@ enum { }; extern int cnss_get_restart_level(void); -#ifdef CONFIG_CNSS_SDIO struct cnss_sdio_wlan_driver { const char *name; const struct sdio_device_id *id_table; @@ -215,5 +212,4 @@ extern int cnss_wlan_query_oob_status(void); extern int cnss_wlan_register_oob_irq_handler(oob_irq_handler_t handler, void *pm_oob); extern int cnss_wlan_unregister_oob_irq_handler(void *pm_oob); -#endif #endif /* _NET_CNSS_H_ */ |