From e825c3b4fcbe2ad1fe1b97254e507753647c8a99 Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Wed, 2 Oct 2019 13:58:51 -0700 Subject: [PATCH] qcacld-3.0: Do not send multicast addresses during system suspend When the device is system suspended, do not send multicast addresses. Change-Id: Ie8ca0f50b4db2231190dbf9a9a1c088c0b84eceb CRs-Fixed: 2538963 --- core/hdd/src/wlan_hdd_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 62132ce2a422..72c3fce759e5 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3993,6 +3993,11 @@ static void __hdd_set_multicast_list(struct net_device *dev) struct wlan_objmgr_psoc *psoc = hdd_ctx->psoc; int mc_count = 0; + if (hdd_ctx->hdd_wlan_suspended) { + hdd_err_rl("Device is system suspended"); + return; + } + hdd_enter_dev(dev); if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) goto out;