summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2015-09-22 14:29:04 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:48:12 +0900
commitc1cdee9f047f66f542a3f38443b0684b39bbcf82 (patch)
treeb25abb31d566a2e25c6268dd78c24b2fa6563774 /drivers/net
parentf88700daaa1e95d75c546e2569f422c4e00c56ee (diff)
LOCAL / net: bcm4358: set wowlan_config for broadcom driver
Refer to commit 6abb9cb99f33b20c. (cfg80211: make WoWLAN configuration available to drivers.) Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/bcmdhd4358/wl_cfg80211.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd4358/wl_cfg80211.c b/drivers/net/wireless/bcmdhd4358/wl_cfg80211.c
index 8bef6200b6f2..3f23d6c1134f 100644
--- a/drivers/net/wireless/bcmdhd4358/wl_cfg80211.c
+++ b/drivers/net/wireless/bcmdhd4358/wl_cfg80211.c
@@ -8314,6 +8314,15 @@ s32 wl_mode_to_nl80211_iftype(s32 mode)
static const struct wiphy_wowlan_support brcm_wowlan_support = {
.flags = WIPHY_WOWLAN_ANY,
};
+
+/*
+ * Workaround code for Tizen
+ * Fixed the WiFi disconnection issue during suspend when AP is connected
+ * Refer to commit 6abb9cb99f33b20c
+ */
+static const struct cfg80211_wowlan brcm_wowlan_config = {
+ .any = true,
+};
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) */
#endif /* CONFIG_PM */
@@ -8447,6 +8456,7 @@ static s32 wl_setup_wiphy(struct wireless_dev *wdev, struct device *sdiofunc_dev
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0))
wdev->wiphy->wowlan = &brcm_wowlan_support;
+ wdev->wiphy->wowlan_config = &brcm_wowlan_config;
#else
wdev->wiphy->wowlan.flags = WIPHY_WOWLAN_ANY;
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 10) */