\r
extern void *bcmsdh_get_drvdata(void);\r
\r
+extern int g_wifi_on;\r
#ifdef POWER_OFF_IN_SUSPEND\r
extern struct net_device *g_netdev;\r
#if defined(CONFIG_HAS_EARLYSUSPEND)\r
-extern int g_wifi_on;\r
void wl_cfg80211_stop(void);\r
void wl_cfg80211_send_disconnect(void);\r
void wl_cfg80211_user_sync(bool lock);\r
dhd->pktfilter[DHD_MULTICAST4_FILTER_NUM] = NULL;
dhd->pktfilter[DHD_MULTICAST6_FILTER_NUM] = NULL;
/* Add filter to pass multicastDNS packet and NOT filter out as Broadcast */
- dhd->pktfilter[DHD_MDNS_FILTER_NUM] = "104 0 0 0 0xFFFFFFFFFFFF 0x01005E0000FB";
+ dhd->pktfilter[DHD_MDNS_FILTER_NUM] = NULL;//"104 0 0 0 0xFFFFFFFFFFFF 0x01005E0000FB";
/* apply APP pktfilter */
dhd->pktfilter[DHD_ARP_FILTER_NUM] = "105 0 0 12 0xFFFF 0x0806";
}
static void wl_wakelock_timeout(struct wl_priv *priv)
{
-#if defined(CONFIG_HAS_WAKELOCK)
+#if defined(POWER_OFF_IN_SUSPEND) && defined(CONFIG_HAS_WAKELOCK)
wake_lock_timeout(&priv->priv_lock, msecs_to_jiffies(20));
#endif
}
dhd_pub_t *dhd;
+#ifdef POWER_OFF_IN_SUSPEND
if (!wifi_ready) {
WL_INFO(("Too early scan req\n"));
return -EAGAIN;
}
+#endif
dhd = (dhd_pub_t *)(wl->pub);
if (dhd->op_mode & DHD_FLAG_HOSTAP_MODE) {
wl_init_prof(wl, ndev);
wl_link_down(wl);
DNGL_FUNC(dhd_cfg80211_init, (wl));
-#ifdef CONFIG_HAS_WAKELOCK
+#if defined(POWER_OFF_IN_SUSPEND) && defined(CONFIG_HAS_WAKELOCK)
wake_lock_init(&wl->priv_lock, WAKE_LOCK_SUSPEND, "wlan_priv_wake");
printk("init wlan_priv_wake\n");
#endif
wl_term_iscan(wl);
wl_deinit_priv_mem(wl);
unregister_netdevice_notifier(&wl_cfg80211_netdev_notifier);
-#ifdef CONFIG_HAS_WAKELOCK
+#if defined(POWER_OFF_IN_SUSPEND) && defined(CONFIG_HAS_WAKELOCK)
wake_lock_destroy(&wl->priv_lock);
#endif
}
#include <linux/wireless.h>
#include <net/cfg80211.h>
#include <linux/rfkill.h>
-#ifdef CONFIG_HAS_WAKELOCK
+#if defined(POWER_OFF_IN_SUSPEND) && defined(CONFIG_HAS_WAKELOCK)
#include <linux/wakelock.h>
#endif
struct wl_scan_results *bss_list;
struct wl_scan_results *scan_results;
-#if defined(CONFIG_HAS_WAKELOCK)
+#if defined(POWER_OFF_IN_SUSPEND) && defined(CONFIG_HAS_WAKELOCK)
struct wake_lock priv_lock;
#endif