[BugFix][API-1582]rmmove wifi psk from log
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: Ia52aa57bb6f70aea057e84bd46aba2473fcda17e
diff --git a/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c b/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
index 29b9fd5..3d05de0 100755
--- a/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
+++ b/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
@@ -381,10 +381,22 @@
#define DO_REQUEST(cmd_str) do { \
reply_len = MAX_RET;\
cmd_reply[0] = '\0'; \
- RLOGD("to call [%s]\n", cmd_str); \
+ if( strstr(cmd_str,"psk") == NULL ) \
+ { \
+ RLOGD("to call [%s]\n", cmd_str); \
+ }else \
+ { \
+ RLOGD("to call SET_NETWORK psk ********\n"); \
+ } \
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 ) \
+ { \
RLOGE("call "#cmd_str" fail %d\n", ret); \
+ }else \
+ { \
+ RLOGE("call get or set psk fail %d\n",ret); \
+ } \
return ret; \
} \
cmd_reply[reply_len+1] = '\0'; \
@@ -395,11 +407,23 @@
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 ) \
+ { \
RLOGE("cmd "#cmd_str" return FAIL\n"); \
+ }else \
+ { \
+ RLOGE("cmd SET_NETWORK psk ******** return FAIL\n"); \
+ } \
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 ) \
+ { \
RLOGE("cmd "#cmd_str" return not OK|FAIL\n"); \
+ }else \
+ { \
+ RLOGE("cmd get or set psk return not OK|FAIL\n"); \
+ } \
pthread_mutex_unlock(&s_run_cmd_func_mutex); \
return -1; \
} \
@@ -3349,7 +3373,7 @@
if(ret == 0)
{
- RLOGD("lynq_sta_ssid_password_auth_get pass return ssid :%s psw is %s",ap->ap_ssid,password);
+ //RLOGD("lynq_sta_ssid_password_auth_get pass return ssid :%s psw is %s",ap->ap_ssid,password);
free(info_buff);
return 0;
}