One of the benefits of the open source community is getting help and learning from others. If you have borrowed the code, just give credit to the original author. Hacked\crude or just bad, someone else may be able to help improve it.

As for the dongle, info on these is not compiled in any good format anywhere. I have used and EDIMAX 7811 which works great in my laptop, but marginal in my router. My Bufflo WLI-UC-GN works much better.

I assume that you are using a second radio to avoid the WAN hang issue. You may want to review this post and related OpenWrt links. 404 Page not found - GL.iNet One of the tools, deletes the WAN. I have it working on an AR150 on the reset button, as opposed to the switch. You just need to be aware that the LAN is the wifi-iface[0], after using it, not wifi-iface[1] like default.