]> xenbits.xensource.com Git - pvdrivers/win/xennet.git/commitdiff
Fix a warning in the NDISTest 6.0 2c_OidsNdisRequest test
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 1 Feb 2016 15:45:14 +0000 (15:45 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 1 Feb 2016 15:45:14 +0000 (15:45 +0000)
The format of the response to the OID_GEN_VENDOR_DRIVER_VERSION request was
incorrect, and also the OID_GEN_DRIVER_VERSION response has been lying since
the change to NDIS 6.1.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xennet/adapter.c

index 0f83c9ed9fa8c223553bec5d947b33b2b52a512b..4e2f7facaef8582f20aa637dceaba2903cbb9a71 100644 (file)
@@ -1889,7 +1889,8 @@ AdapterQueryInformation(
         BytesNeeded = sizeof(ULONG);
         ndisStatus = __SetUlong(Buffer,
                                 BufferLength,
-                                ((MAJOR_VERSION << 8) | MINOR_VERSION) << 8,
+                                (MAJOR_VERSION << 16) |
+                                MINOR_VERSION,
                                 &BytesWritten);
         break;
 
@@ -1897,7 +1898,8 @@ AdapterQueryInformation(
         BytesNeeded = sizeof(ULONG);
         ndisStatus = __SetUlong(Buffer,
                                 BufferLength,
-                                (6 << 8) | 0, // NDIS 6.0
+                                (NDIS_MINIPORT_MAJOR_VERSION << 8) |
+                                NDIS_MINIPORT_MINOR_VERSION,
                                 &BytesWritten);
         break;