[PATCH] usb: RNDIS: add support for OID OID_802_3_MAXIMUM_LIST_SIZE and OID_802_3_MAC_OPTIONS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add support for OID OID_802_3_MAXIMUM_LIST_SIZE and
OID_802_3_MAC_OPTIONS in gen_ndis_query_resp() of rndis.c to make
RNDIS gadget pass 1c_SetMulticast subtest in Microsoft NDISTest6.

Signed-off-by: Helen Chen <helen.chen@xxxxxxxxx>

---
  drivers/usb/gadget/rndis.c        |    4 +-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index 8c26f5e..67fb17c 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -439,12 +439,14 @@ gen_ndis_query_resp (int configNr, u32 OID, u8
*buf, unsigned buf_len,
 	case OID_802_3_MAXIMUM_LIST_SIZE:
 		pr_debug("%s: OID_802_3_MAXIMUM_LIST_SIZE\n", __func__);
 		/* Multicast base address only */
-		*outbuf = __constant_cpu_to_le32 (1);
+		*outbuf = __constant_cpu_to_le32(32);
 		retval = 0;
 		break;

 	case OID_802_3_MAC_OPTIONS:
 		pr_debug("%s: OID_802_3_MAC_OPTIONS\n", __func__);
+		*outbuf = __constant_cpu_to_le32(0);
+		retval = 0;
 		break;
 		break;

 	/* ieee802.3 statistics OIDs (table 4-4) */
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux