I didn't find on https://github.com/openwrt a page reguarding the usb-mode.json file used by usb-modeswitch package. This file contains the info needed to trigger the mode switching for USB devices with multiple "modes".
For example it doesn't contain the info for this USB dongle.
I added manually the following and restarted the usbmodeswitch service:
"t_product": [ 30226 ],
"msg": [ ]
This way it is beeing recognized as a WIFI dongle.
Running on: OpenWrt 19.07.9 r11405-2a3558b0de / LuCI openwrt-19.07 branch git-22.052.50988-1b6c126
I don't think the usbmode package is mirrored on the OpenWrt github account. The repo is here: https://git.openwrt.org/?p=project/usbmode.git
But there is no usb-mode.json file. This file is autogenerated by the convert-modeswitch.pl script. Most of the input comes from usb-modeswitch data. See https://git.openwrt.org/?p=project/usbmode.git;a=blob;f=convert-modeswitch.pl and https://github.com/openwrt/openwrt/blob/master/package/utils/usbmode/Makefile
It's possible to add OpenWrt changes to the convert-modeswitch.pl input as files in https://github.com/openwrt/openwrt/tree/master/package/utils/usbmode/data
But probably better to just submit new data to the usb-modeswitch project for longterm maintenance and common open source development. See https://www.draisberghof.de/usb_modeswitch/#contrib
wow I have to admit that wasn't aware of the base project that isn't limited to openwrt. Thank you.
One last thing: I found out that the json file on 20.02 does have the config for the device. It's just the 19.07 version that doesn't contain it.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.