[WCNCR00144638] common: rollback singel sku to fix MSP sanity failure
[Description]
Fix MSP sanity failure
Change-Id: Ibd0609f1e740665bfd84e46679a82860acb81d70
Feature: common
Signed-off-by: Chiahsuan.Chuang <chiahsuan.chuang@mediatek.com>
CR-Id: WCNCR00144638
diff --git a/os/linux/gl_cfg80211.c b/os/linux/gl_cfg80211.c
index 699d9bc..0726b0e 100644
--- a/os/linux/gl_cfg80211.c
+++ b/os/linux/gl_cfg80211.c
@@ -3234,14 +3234,6 @@
enum regd_state old_state;
- /*
- * Check if firmawre support single sku
- */
- if (!regd_is_single_sku_en())
- return; /*no need to do the followings*/
-
-
-
if (!pWiphy) {
DBGLOG(RLM, ERROR, "%s(): pWiphy = NULL.\n", __func__);
return;
@@ -3398,6 +3390,13 @@
/*
+ * Check if firmawre support single sku
+ */
+ if (!regd_is_single_sku_en())
+ return; /*no need to send information to firmware due to firmware is not supported*/
+
+
+ /*
* Send commands to firmware
*/
prAdapter->rWifiVar.rConnSettings.u2CountryCode = (UINT_16)rlmDomainGetCountryCode();