net: wireless: bcmdhd: Get rid of ANDROID define
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 13 Jun 2011 20:37:52 +0000 (13:37 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:08:38 +0000 (12:08 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/Makefile
drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.c
drivers/net/wireless/bcmdhd/dhd_linux.c

index 5c296bc..b476372 100644 (file)
@@ -6,7 +6,7 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Werror -Dlinux -DBCMDRIVER             \
        -DCUSTOMER_HW2 -DCUSTOM_OOB_GPIO_NUM=2 -DOOB_INTR_ONLY -DHW_OOB       \
        -DMMC_SDIO_ABORT -DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DWLP2P     \
        -DNEW_COMPAT_WIRELESS -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT          \
-       -DKEEP_ALIVE -DCSCAN                                                  \
+       -DKEEP_ALIVE -DCSCAN -DGET_CUSTOM_MAC_ENABLE                          \
        -Idrivers/net/wireless/bcmdhd -Idrivers/net/wireless/bcmdhd/include
 
 DHDOFILES = aiutils.o bcmsdh_sdmmc_linux.o dhd_linux.o siutils.o bcmutils.o   \
@@ -24,8 +24,5 @@ ifneq ($(CONFIG_CFG80211),)
 bcmdhd-objs += wl_cfg80211.o wl_cfgp2p.o wldev_common.o
 DHDCFLAGS += -DWL_CFG80211
 endif
-ifneq ($(CONFIG_ANDROID),)
-DHDCFLAGS += -DANDROID -DGET_CUSTOM_MAC_ENABLE
-endif
 EXTRA_CFLAGS = $(DHDCFLAGS)
 EXTRA_LDFLAGS += --strip-debug
index baee3e6..8c328b8 100644 (file)
@@ -677,10 +677,10 @@ sdioh_enable_hw_oob_intr(sdioh_info_t *sd, bool enable)
        else
                data = SDIO_SEPINT_ACT_HI;      /* disable hw oob interrupt */
 
-#if defined(ANDROID) && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
        /* Needed for Android Linux Kernel 2.6.35 */
        data |= SDIO_SEPINT_ACT_HI;             /* Active HIGH */
-#endif /* ANDROID */
+#endif
 
        status = sdioh_request_byte(sd, SDIOH_WRITE, 0, SDIOD_CCCR_BRCM_SEPINT, &data);
        return status;
index 3685675..acdff3b 100644 (file)
@@ -89,7 +89,7 @@ typedef struct histo_ {
 static histo_t vi_d1, vi_d2, vi_d3, vi_d4;
 #endif /* WLMEDIA_HTSF */
 
-#if defined(ANDROID) && defined(SOFTAP)
+#if defined(SOFTAP)
 extern bool    ap_cfg_running;
 #endif
 
@@ -1123,7 +1123,7 @@ dhd_op_if(dhd_if_t *ifp)
                                        __FUNCTION__, err));
                                ret = -EOPNOTSUPP;
                        } else {
-#if defined(ANDROID) && defined(SOFTAP)
+#if defined(SOFTAP)
                if (ap_cfg_running && !(dhd->dhd_state & DHD_ATTACH_STATE_CFG80211)) {
                                 /* semaphore that the soft AP CODE waits on */
                                flags = dhd_os_spin_lock(&dhd->pub);