From 8c4e48738ca54848c2187d6b93a410c696036067 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Thu, 22 Jul 2021 16:02:20 +0800 Subject: [PATCH] mwifiex: fix the suspend issue when run suspend test with the 17266 wifi release For the wifi release 17266, we found SDIO8987 and PCIE8997 both may meet below error logs when run suspend stress test. "HS not actived, suspend fail!" For pcie8997 on imx8mp, this may cause system hang. For sdio8987 and pcie8997 on other platforms, this may cause suspend fail sometimes. This patch is a workaround for this issue. WCS team still debugging this issue. Signed-off-by: Sherry Sun Approved-by: Tian Yang --- mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c b/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c index 87202f1..7f817f7 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c @@ -3821,7 +3821,8 @@ woal_cfg80211_reg_notifier(struct wiphy *wiphy, break; } if (priv->wdev && priv->wdev->wiphy && - (request->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE)) { + (request->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE) && + (MTRUE != is_cfg80211_special_region_code(region))) { band = priv->phandle->band; priv->phandle->band = IEEE80211_BAND_2GHZ; woal_send_domain_info_cmd_fw(priv, MOAL_IOCTL_WAIT);