Skip to content

Commit 92b4c0d

Browse files
committed
added flag before libusb initialization
1 parent 6ab2141 commit 92b4c0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android/libbladerf/src/libusb.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@
141141
struct libusb_device_descriptor desc;
142142
libusb_context *context;
143143

144+
status = libusb_set_option(NULL, LIBUSB_OPTION_WEAK_AUTHORITY, NULL);
145+
if (status){
146+
log_error("Could not initialize libusb: %s\n",
147+
libusb_error_name(status));
148+
return error_conv(status);
149+
}
150+
144151
status = libusb_init(&context);
145152
if (status) {
146153
log_error("Could not initialize libusb: %s\n",

0 commit comments

Comments
 (0)