diff --git a/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp b/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp index 8e4e4cc6b..b826d6f27 100755 --- a/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp +++ b/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp @@ -512,7 +512,8 @@ int api_wifi_state_notify(int state,int rssi, std::string ssid, std::string mac) if(NULL != pEvtJson) { //status = api_wifi_module_cmd_send((1<busCmd != 0xa0a) - LOG_EX(LOG_Debug, "Frame module get message cmd:0x%x\r\n",pMsg->busCmd); +PDBUS_MSG_PACK DBusOnMessage(uv_loop_t *pLoop, DBusConnection *pConn,PDBUS_MSG_PACK pMsg) +{ if (!pMsg || !pLoop || !pConn) { return NULL; - } + } + if(pMsg->busCmd != 0xa0a) + { + LOG_EX(LOG_Debug, "Frame module get message cmd:0x%x\r\n",pMsg->busCmd); + LOG_EX(LOG_Debug, "Frame module get message: %s\r\n",pMsg->pMsg); + } - LOG_EX(LOG_Debug, "Frame module get message: %s\r\n",pMsg->pMsg); switch (pMsg->busCmd) { case CMD_WIFI_SCAN_RESP: mailbox->recvWifiScanResult(QByteArray(pMsg->pMsg)); @@ -21,8 +22,8 @@ PDBUS_MSG_PACK DBusOnMessage(uv_loop_t *pLoop, DBusConnection *pConn,PDBUS_MSG_P case CMD_WIFI_CONF_RESP: mailbox->recvWifiConfResult(QByteArray(pMsg->pMsg)); break; - case CMD_WIFI_STATE_NTF: - mailbox->recvWifiConfResult(QByteArray(pMsg->pMsg)); + case CMD_WIFI_STATE_RESP: + mailbox->recvWifiStatusChange(QByteArray(pMsg->pMsg)); break; case CMD_WIFI_DISCONNECT_RESP: mailbox->recvWifiDisconnectResult(QByteArray(pMsg->pMsg));