Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Disconnection of unrelated USB device causes RTL8187 scan to freeze #71

Open
orinem opened this issue Sep 9, 2015 · 1 comment
Open

Comments

@orinem
Copy link
Contributor

orinem commented Sep 9, 2015

If I unplug an unrelated USB device (an iPhone in my case), the scan freezes - no more packets are recorded. Stopping the scan and restarting it has no effect. You have to quit/restart KisMac2 before scan works again.

It looks like USBJack::_handleDeviceRemoval gets confused; the last message logged is "USBJack: Device removed.". I will investigate.

orinem added a commit that referenced this issue Sep 10, 2015
…cation so we only get notification for the device we are using. See Issue #71.
@orinem
Copy link
Contributor Author

orinem commented Sep 10, 2015

Commit #0331577 has test code to use IOServiceAddInterestNotification for device removal notification.

This has the advantage of only providing the notification for the specified device, rather than every USB device in the system.

I also added code for an alternative method, currently ifdef'd out that matches device departure on vid/pid. It wouldn't work correctly if you had two identical devices.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant