diff --git a/setting/setting/src/main/cpp/wpa_work.c b/setting/setting/src/main/cpp/wpa_work.c index e6f5723f01542d541186c009ecf58cf61aed438f..002cfced0ad333ab6c76c2d66b406d5fc9ba08ae 100755 --- a/setting/setting/src/main/cpp/wpa_work.c +++ b/setting/setting/src/main/cpp/wpa_work.c @@ -50,18 +50,6 @@ static pthread_t g_scanThreadId = 0; static int g_scanAvailable = 0; static int g_Connect = 0; -static void DumpString(const char *buf, int len, const char *tag) -{ - SAMPLE_INFO("%s dump start.", tag); - for (int i = 0; i < len; i++) { - printf("%c", buf[i]); - } - printf("\n"); - - printf("\n"); - SAMPLE_INFO("%s dump end.", tag); -} - static int StrMatch(const char *a, const char *b) { return strncmp(a, b, strlen(b)) == 0; @@ -71,7 +59,6 @@ static int SendCtrlCommand(const char *cmd, char *reply, size_t *replyLen) { size_t len = *replyLen - 1; wpa_ctrl_request(g_ctrlConn, cmd, strlen(cmd), reply, &len, 0); - DumpString(reply, len, "SendCtrlCommand raw return"); if (len != 0 && !StrMatch(reply, WPA_CTRL_REQUEST_FAIL)) { *replyLen = len; return 0; @@ -131,7 +118,6 @@ int GetCurrentConnInfo(char *ssid, int len) printf("[ERROR]GetCurrentConnInfo Command(STATUS) Error \n"); return -1; } - DumpString(connInfo, infoLen, "connInfo"); printf("[LOG]end the DumpStrint\n"); char *pos = strstr(connInfo, "ssid="); if (pos == NULL) { @@ -292,7 +278,6 @@ static void CliRecvPending(void) size_t len = sizeof(buf) - 1; if (wpa_ctrl_recv(g_monitorConn, buf, &len) == 0) { buf[len] = '\0'; - SAMPLE_INFO("event received %s", buf); WifiEventHandler(buf, len); } else { SAMPLE_INFO("could not read pending message.");