diff options
| author | hathach <[email protected]> | 2013-10-27 15:42:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-10-27 15:42:31 +0700 |
| commit | eb39d88360a56fefc3d62de93ca4655ab150b174 (patch) | |
| tree | 051273e150daa26305d9572d2fab81e10fdcf194 /tests | |
| parent | f941f88549ef72b223bb9edc8f921fae3f9ea561 (diff) | |
rndis document
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lpc18xx_43xx/test/host/cdc/test_cdc_rndis_host.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lpc18xx_43xx/test/host/cdc/test_cdc_rndis_host.c b/tests/lpc18xx_43xx/test/host/cdc/test_cdc_rndis_host.c index 91070f55c..40973efe6 100644 --- a/tests/lpc18xx_43xx/test/host/cdc/test_cdc_rndis_host.c +++ b/tests/lpc18xx_43xx/test/host/cdc/test_cdc_rndis_host.c @@ -136,7 +136,7 @@ static rndis_msg_query_t msg_query_permanent_addr = .type = RNDIS_MSG_QUERY, .length = sizeof(rndis_msg_query_t)+6, .request_id = 1, - .oid = OID_802_3_PERMANENT_ADDRESS, + .oid = RNDIS_OID_802_3_PERMANENT_ADDRESS, .buffer_length = 6, .buffer_offset = 20, .oid_buffer = {0, 0, 0, 0, 0, 0} @@ -158,10 +158,10 @@ static rndis_msg_set_t msg_set_packet_filter = .type = RNDIS_MSG_SET, .length = sizeof(rndis_msg_set_t)+4, .request_id = 1, - .oid = OID_GEN_CURRENT_PACKET_FILTER, + .oid = RNDIS_OID_GEN_CURRENT_PACKET_FILTER, .buffer_length = 4, .buffer_offset = 20, - .oid_buffer = {NDIS_PACKET_TYPE_DIRECTED | NDIS_PACKET_TYPE_MULTICAST | NDIS_PACKET_TYPE_BROADCAST, 0, 0, 0} + .oid_buffer = {RNDIS_PACKET_TYPE_DIRECTED | RNDIS_PACKET_TYPE_MULTICAST | RNDIS_PACKET_TYPE_BROADCAST, 0, 0, 0} }; static rndis_msg_set_cmplt_t msg_set_packet_filter_cmplt = @@ -249,7 +249,7 @@ tusb_error_t stub_control_xfer(uint8_t addr, uint8_t bmRequestType, uint8_t bReq memcpy(data, &msg_init_cmplt, sizeof(rndis_msg_initialize_cmplt_t)); break; - // query for OID_802_3_PERMANENT_ADDRESS + // query for RNDIS_OID_802_3_PERMANENT_ADDRESS case 1*2+0: TEST_ASSERT_EQUAL(bmrequest_send, bmRequestType); TEST_ASSERT_EQUAL(SEND_ENCAPSULATED_COMMAND, bRequest); @@ -257,14 +257,14 @@ tusb_error_t stub_control_xfer(uint8_t addr, uint8_t bmRequestType, uint8_t bReq TEST_ASSERT_EQUAL_HEX8_ARRAY(&msg_query_permanent_addr, data, wLength); break; - case 1*2+1: // query complete for OID_802_3_PERMANENT_ADDRESS + case 1*2+1: // query complete for RNDIS_OID_802_3_PERMANENT_ADDRESS TEST_ASSERT_EQUAL(bmrequest_get, bmRequestType); TEST_ASSERT_EQUAL(GET_ENCAPSULATED_RESPONSE, bRequest); TEST_ASSERT( wLength >= 0x0400 ); // Microsoft Specs memcpy(data, &msg_query_permanent_addr_cmplt, sizeof(rndis_msg_query_cmplt_t) + 6); break; - // set OID_GEN_CURRENT_PACKET_FILTER to DIRECTED | MULTICAST | BROADCAST + // set RNDIS_OID_GEN_CURRENT_PACKET_FILTER to DIRECTED | MULTICAST | BROADCAST case 2*2+0: TEST_ASSERT_EQUAL(bmrequest_send, bmRequestType); TEST_ASSERT_EQUAL(SEND_ENCAPSULATED_COMMAND, bRequest); @@ -272,7 +272,7 @@ tusb_error_t stub_control_xfer(uint8_t addr, uint8_t bmRequestType, uint8_t bReq TEST_ASSERT_EQUAL_HEX8_ARRAY(&msg_set_packet_filter, data, wLength); break; - case 2*2+1: // query complete for OID_802_3_PERMANENT_ADDRESS + case 2*2+1: // query complete for RNDIS_OID_802_3_PERMANENT_ADDRESS TEST_ASSERT_EQUAL(bmrequest_get, bmRequestType); TEST_ASSERT_EQUAL(GET_ENCAPSULATED_RESPONSE, bRequest); TEST_ASSERT( wLength >= 0x0400 ); // Microsoft Specs |
