Merge "USB: qc_rndis: Fix aggregation parameters settings issue"

This commit is contained in:
Linux Build Service Account 2017-02-10 06:45:58 -08:00 committed by Gerrit - the friendly Code Review server
commit 00b3ef62c0
2 changed files with 2 additions and 1 deletions

View file

@ -1257,7 +1257,7 @@ usb_function *rndis_qc_bind_config_vendor(struct usb_function_instance *fi,
static struct usb_function *qcrndis_alloc(struct usb_function_instance *fi) static struct usb_function *qcrndis_alloc(struct usb_function_instance *fi)
{ {
return rndis_qc_bind_config_vendor(fi, 0, NULL, 1, 0); return rndis_qc_bind_config_vendor(fi, 0, NULL, 0, 0);
} }
static int rndis_qc_open_dev(struct inode *ip, struct file *fp) static int rndis_qc_open_dev(struct inode *ip, struct file *fp)

View file

@ -816,6 +816,7 @@ int rndis_msg_parser(struct rndis_params *params, u8 *buf)
case RNDIS_MSG_INIT: case RNDIS_MSG_INIT:
pr_debug("%s: RNDIS_MSG_INIT\n", pr_debug("%s: RNDIS_MSG_INIT\n",
__func__); __func__);
tmp++; /* to get RequestID */
major = get_unaligned_le32(tmp++); major = get_unaligned_le32(tmp++);
minor = get_unaligned_le32(tmp++); minor = get_unaligned_le32(tmp++);
max_transfer_size = get_unaligned_le32(tmp++); max_transfer_size = get_unaligned_le32(tmp++);