bcmdhd-objs += $(DHDOFILES)
ifneq ($(CONFIG_WIRELESS_EXT),)
bcmdhd-objs += wl_iw.o
+DHDCFLAGS += -DSOFTAP
endif
ifneq ($(CONFIG_CFG80211),)
bcmdhd-objs += wl_cfg80211.o wl_cfgp2p.o wldev_common.o
void dhd_iscan_unlock(void);
extern int dhd_change_mtu(dhd_pub_t *dhd, int new_mtu, int ifidx);
#if defined(SOFTAP)
-extern bool ap_fw_loaded;
+bool ap_cfg_running = FALSE;
+bool ap_fw_loaded = FALSE;
#endif
#if defined(KEEP_ALIVE)
/* Set Keep Alive : be sure to use FW with -keepalive */
int res;
- if (ap_fw_loaded == FALSE) {
+#if defined(SOFTAP)
+ if (ap_fw_loaded == FALSE)
+#endif
if ((res = dhd_keep_alive_onoff(dhd, 1)) < 0)
DHD_ERROR(("%s set keeplive failed %d\n",
__FUNCTION__, res));
- }
}
#endif
#if defined(SOFTAP)
#define WL_SOFTAP(x)
static struct net_device *priv_dev;
-bool ap_cfg_running = FALSE;
-bool ap_fw_loaded = FALSE;
+extern bool ap_cfg_running;
+extern bool ap_fw_loaded;
struct net_device *ap_net_dev = NULL;
-tsk_ctl_t ap_eth_ctl;
+tsk_ctl_t ap_eth_ctl;
static int wl_iw_set_ap_security(struct net_device *dev, struct ap_profile *ap);
static int wl_iw_softap_deassoc_stations(struct net_device *dev, u8 *mac);
#endif
char custom_locale[WLC_CNTRY_BUF_SZ];
int32 custom_locale_rev;
};
-#define SOFTAP 1
#define WL_IW_RSSI_MINVAL -200