[WCNCR00154131] misc: fix nic capability check to prevent assert.
[Description]
Fix Nic Capability check to prevent assert.
Change-Id: I8bce0ddabf365f04d460ead5d237b52162fdb683
Signed-off-by: wayne.guo <wayne.guo@mediatek.com>
CR-Id: WCNCR00154131
Feature: misc
diff --git a/common/wlan_lib.c b/common/wlan_lib.c
index f0c8439..875c326 100644
--- a/common/wlan_lib.c
+++ b/common/wlan_lib.c
@@ -4858,6 +4858,9 @@
} else if ((prEventNicCapability->ucHwNotSupportDBDC) && (prEventNicCapability->ucHwSetNss1x1)) {
prAdapter->rWifiFemCfg.u2WifiPath =
(WLAN_FLAG_5G_WF0 | WLAN_FLAG_2G4_WF1);
+ } else if ((prEventNicCapability->ucHwNotSupportDBDC) && (!prEventNicCapability->ucHwSetNss1x1)) {
+ prAdapter->rWifiFemCfg.u2WifiPath =
+ (WLAN_FLAG_2G4_WF0 | WLAN_FLAG_5G_WF0 | WLAN_FLAG_2G4_WF1 | WLAN_FLAG_5G_WF1);
} else
ASSERT(0);
#endif