- Support both SDIO & PCIE driver
- Fix skb processing in kernel version greater than 3.18
- Include errorno.h file to handle compilation error
if CONFIG_PM_SLEEP is disabled
- dhd_mmc_suspend is kept under CONFIG_PM except
during declaration. Correct this issue to fix
compilation error
bug
200195006
Change-Id: I4a961048aa2bb6b0bc6382b452da2ed66de47d1e
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/
1163823
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
config BCMDHD_PCIE
bool "PCIe bus interface support"
- depends on BCMDHD && PCI && !BCMDHD_SDIO
+ depends on BCMDHD && PCI
config BCMDYNAMIC
bool "Broadcom 43241/4352 wireless card support"
DHDCFLAGS += -DSDIO_ISR_THREAD
endif
-ifneq ($(CONFIG_BCMDHD_PCIE),)
- DHDCFLAGS += -DPCIE_FULL_DONGLE -DBCMPCIE -DCUSTOM_DPC_PRIO_SETTING=-1
-endif
-
#EXTRA_LDFLAGS += --strip-debug
EXTRA_CFLAGS += -Wno-date-time
DHDOFILES += dhd_cdc.o dhd_wlfc.o dhd_sdio.o dhd_qmon.o
endif
-ifneq ($(CONFIG_BCMDHD_PCIE),)
- DHDOFILES += dhd_pcie.o dhd_pcie_linux.o dhd_msgbuf.o dhd_flowring.o
- DHDOFILES += pcie_core.o
-endif
-
ifneq ($(CONFIG_BCMDHD_CUSTOM_SYSFS_TEGRA),)
DHDOFILES += dhd_custom_sysfs_tegra.o
DHDOFILES += dhd_custom_sysfs_tegra_ping.o
*
*/
+#include <linux/errno.h>
#include <linux/system-wakeup.h>
#include "dhd_custom_sysfs_tegra.h"
#include "dhd_custom_sysfs_tegra_scan.h"
static bool dhd_inet6addr_notifier_registered = FALSE;
#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)) && defined(CONFIG_PM_SLEEP)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)) && defined(CONFIG_PM)
#include <linux/suspend.h>
volatile bool dhd_mmc_suspend = FALSE;
DECLARE_WAIT_QUEUE_HEAD(dhd_dpc_wait);
-#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)) && defined(CONFIG_PM_SLEEP) */
+#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)) && defined(CONFIG_PM) */
#if defined(OOB_INTR_ONLY)
extern void dhd_enable_oob_intr(struct dhd_bus *bus, bool enable);
ASSERT(prec >= 0 && prec < pq->num_prec);
- ASSERT(PKTLINK(p) == NULL); /* queueing chains not allowed */
+ /* queueing chains not allowed */
+ ASSERT(!((PKTLINK(p) != NULL) && (PKTLINK(p) != p)));
ASSERT(!pktq_full(pq));
ASSERT(!pktq_pfull(pq, prec));
struct pktq_prec *q;
ASSERT(prec >= 0 && prec < pq->num_prec);
- ASSERT(PKTLINK(p) == NULL); /* queueing chains not allowed */
+ /* queueing chains not allowed */
+ ASSERT(!((PKTLINK(p) != NULL) && (PKTLINK(p) != p)));
ASSERT(!pktq_full(pq));
ASSERT(!pktq_pfull(pq, prec));
+ PKTSETLINK(p, NULL);
q = &pq->q[prec];
struct pktq_prec *q;
ASSERT(prec >= 0 && prec < pq->num_prec);
- ASSERT(PKTLINK(p) == NULL); /* queueing chains not allowed */
+ /* queueing chains not allowed */
+ ASSERT(!((PKTLINK(p) != NULL) && (PKTLINK(p) != p)));
ASSERT(!pktq_full(pq));
ASSERT(!pktq_pfull(pq, prec));
+ PKTSETLINK(p, NULL);
q = &pq->q[prec];
config BCMDHD_PCIE
bool "PCIe bus interface support"
- depends on BCMDHD && PCI && !BCMDHD_SDIO
+ depends on BCMDHD && PCI
config BCM4359
tristate "BCM4359 support"