kernel/eka/drivers/usbcc/descriptors.cpp
changeset 273 6a75fa55495f
parent 253 d37db4dcc88d
--- a/kernel/eka/drivers/usbcc/descriptors.cpp	Wed Sep 22 10:53:45 2010 +0100
+++ b/kernel/eka/drivers/usbcc/descriptors.cpp	Mon Sep 27 10:52:00 2010 +0100
@@ -603,8 +603,11 @@
 	SetBufferPointer(iBuf);
 	iBuf[0] = iBuf.Size();									// bLength
 	iBuf[1] = KUsbDescType_Otg;								// bDescriptorType
-	iBuf[2] = (aHnpSupport ? KUsbOtgAttr_HnpSupp : 0) |
-		(aSrpSupport ? KUsbOtgAttr_SrpSupp : 0);			// bmAttributes
+  // B HNP not supported which is temporarily hard coded here. 
+	iBuf[2] = ( aHnpSupport ? 0 : 0 ) | ( aSrpSupport ? KUsbOtgAttr_SrpSupp : 0 );			// bmAttributes			
+	iBuf[3] = KUsbOtgDesc_bcdOTG & 0x00ff;
+  iBuf[4] = ( KUsbOtgDesc_bcdOTG >> 8 ) & 0x00ff;
+		
 	return KErrNone;
     }