At REMOTE_NDIS_KEEPALIVE_MSG mode , but still can not communicate with device.
andarm opened this issue · comments
1. It seems all the process has been done but cao not callback "usbd_rndis_data_out"
2. Crruently, continoiusly work at REMOTE_NDIS_KEEPALIVE_MSG mode, but can not display ethenet at PC by "ipconfig" command. Can not ping device normally.
case REMOTE_NDIS_QUERY_MSG:
rndis_query(pdev);
break;
case REMOTE_NDIS_SET_MSG:
rndis_handle_set_msg(pdev);
break;
case REMOTE_NDIS_RESET_MSG:
{
rndis_reset_cmplt_t * m;
m = ((rndis_reset_cmplt_t *)encapsulated_buffer);
rndis_state = rndis_uninitialized;
m->MessageType = REMOTE_NDIS_RESET_CMPLT;
m->MessageLength = sizeof(rndis_reset_cmplt_t);
m->Status = RNDIS_STATUS_SUCCESS;
m->AddressingReset = 1; /* Make it look like we did something */
// m->AddressingReset = 0; //Windows halts if set to 1 for some reason
DCD_EP_Tx(pdev, RNDIS_NOTIFICATION_IN_EP, (uint8_t *)"\x01\x00\x00\x00\x00\x00\x00\x00", 8);
}
break;
case REMOTE_NDIS_KEEPALIVE_MSG: