Fixed using wrong usb function list when usb gadget enable/disable in configfs 85/227585/4
authorINSUN PYO <insun.pyo@samsung.com>
Fri, 13 Mar 2020 03:36:32 +0000 (12:36 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 13 Mar 2020 04:33:45 +0000 (13:33 +0900)
commit25b632db82163a339c23ffafc1095be225816b25
tree79ea9a1ad0f5693754607fc8c64fb61c921f7946
parentc1ef88b5dc9a2e8014ebf290e802fb57c34fd5f0
Fixed using wrong usb function list when usb gadget enable/disable in configfs

When usb gadget is enabled/disabled in configfs,
it retrieves the list of currently used usb functions in order to run the service handler.

Before the modification, it retrieve a list of "all functions" used even once.

So if you run "ifconfig" after changing usb mode to "sdb mode" -> "rndis mode" -> "sdb mode",
even in sdb mode, the usb0 network interface appears.

Change-Id: I83564591cd899197077823fdb2fbe25d034fcf46
hw/usb_cfs_client_common.c