[BugFix][API-1591]unhide/remove sec_type wpa2/wpa3&&wpa3 only sea_password str
Affected branch:MR3.0-xx && GSW3.0
Affected module:wifi
Is it addected on both ZXIC and MTK: only MTK
Self-test: YES
Doc Update: No
Change-Id: Ie6578177d4328c6670fc9e1d224e75ee59c2a3bf
diff --git a/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c b/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
index 229d003..2f462e3 100755
--- a/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
+++ b/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
@@ -381,7 +381,7 @@
#define DO_REQUEST(cmd_str) do { \
reply_len = MAX_RET;\
cmd_reply[0] = '\0'; \
- if( strstr(cmd_str,"psk") == NULL ) \
+ if( strstr(cmd_str,"psk") == NULL && strstr(cmd_str,"sae_password") == NULL ) \
{ \
RLOGD("to call [%s]\n", cmd_str); \
}else \
@@ -390,7 +390,7 @@
} \
ret = local_wpa_ctrl_request(lynq_wpa_ctrl, cmd_str, strlen(cmd_str), cmd_reply, &reply_len, NULL); \
if (ret != 0) { \
- if( strstr(cmd_str,"psk") == NULL ) \
+ if( strstr(cmd_str,"psk") == NULL && strstr(cmd_str,"sae_password") == NULL ) \
{ \
RLOGE("call "#cmd_str" fail %d\n", ret); \
}else \
@@ -407,7 +407,7 @@
pthread_mutex_lock(&s_run_cmd_func_mutex); \
DO_REQUEST(cmd_str); \
if (reply_len >=4 && memcmp(cmd_reply, "FAIL", 4) == 0 ) {\
- if( strstr(cmd_str,"psk") == NULL ) \
+ if( strstr(cmd_str,"psk") == NULL && strstr(cmd_str,"sae_password") == NULL ) \
{ \
RLOGE("cmd "#cmd_str" return FAIL\n"); \
}else \
@@ -417,7 +417,7 @@
pthread_mutex_unlock(&s_run_cmd_func_mutex); \
return -1; \
} else if (reply_len >=2 && memcmp(cmd_reply, "OK", 2) != 0) { \
- if ( strstr(cmd_str,"psk") == NULL ) \
+ if ( strstr(cmd_str,"psk") == NULL && strstr(cmd_str,"sae_password") == NULL ) \
{ \
RLOGE("cmd "#cmd_str" return not OK|FAIL\n"); \
}else \