scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup.

* scd/ccid-driver.c (ccid_vendor_specific_setup): Only for SPR532,
call libusb_clear_halt.

--

Backport master commit of:
	f503730272

GnuPG-bug-id: 5167
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-12-09 12:52:08 +09:00
parent 585cfca0a6
commit 3c55e15cee
1 changed files with 1 additions and 0 deletions

View File

@ -1307,6 +1307,7 @@ ccid_vendor_specific_setup (ccid_driver_t handle)
DEBUGOUT ("sending escape sequence to switch to a case 1 APDU\n");
send_escape_cmd (handle, (const unsigned char*)"\x80\x02\x00", 3,
NULL, 0, NULL);
libusb_clear_halt (handle->idev, handle->ep_intr);
}
return 0;
}