Suggesting to rebase this to be based later code from Espressif's new upstream esp-usb-bridge repository which looks to have been refactored to be more modular and contains separate broken out components , see here and please consider suggestion:
Note! At least above linked repository contains newer code than the older code usb_wireless_bridge example which has not been updated in a while (and the updated readme for example now also references the new ESP USB Bridge repo for additional features):