mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-22 01:55:05 +03:00
libusbgx: Add interface name for NCM Feature Descriptors
In commit: abf422bffc
[
Author: Stefan Agner <stefan.agner@toradex.com>
Date: Tue Jan 24 14:22:25 2017 -0800
libusbgx: Add interface name for Feature Descriptors
This adds interface name required for "Feature Descriptors". If
specified, we can assume that a Feature Descriptor with the
interface name of the specified string is understood by the
kernel (e.g. interface.rndis).
]
it only added Feature Descriptors for RNDIS, NCM also needs that, or
else it could not be recognized by Windows systems.
Add Feature Descriptors interface name for NCM.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
This commit is contained in:
parent
bbdaad24fc
commit
4f3f2ad08e
1 changed files with 6 additions and 0 deletions
|
@ -184,8 +184,14 @@ struct usbg_function_type usbg_f_type_subset = {
|
|||
ETHER_FUNCTION_OPTS
|
||||
};
|
||||
|
||||
static char *ncm_os_desc_ifnames[] = {
|
||||
"ncm",
|
||||
NULL
|
||||
};
|
||||
|
||||
struct usbg_function_type usbg_f_type_ncm = {
|
||||
.name = "ncm",
|
||||
.os_desc_iname = ncm_os_desc_ifnames,
|
||||
ETHER_FUNCTION_OPTS
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue