Skip to content

Commit

Permalink
res_usbradio: Add ability to specify allowed vid:pid
Browse files Browse the repository at this point in the history
This updates res_usbradio to allow users to specify USB device descriptor(s) that can be used for interface devices. There are compatible chips that are not supported in the code. This will allow users to easily add the compatible chip(s).

This adds res_usbradio.conf for configuration. A sample configuration file was added.

Reworked the supported/known USB devices lookup. The supported devices are now in an array.

This closes #359.
  • Loading branch information
KB4MDD committed Nov 27, 2024
1 parent 34fd2e8 commit 2aefa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/res_usbradio.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static int load_config(int reload)
}
device->idVendor = idVendor;
device->idProduct = idProduct;
device->idMask = 0xfff;
device->idMask = 0xffff;
/* Add it to our list */
AST_RWLIST_WRLOCK(&user_devices);
AST_LIST_INSERT_HEAD(&user_devices, device, entry);
Expand Down

0 comments on commit 2aefa31

Please sign in to comment.