Which firmware are you running? In the latest builds (b176 and up) we've done an overhaul of the wifi driver and the wifisetup script. You can install the latest firmware by running oupgrade --latest
Also, everyone who identifies and tests fixes for code is welcome and encouraged to fork our repos on GitHub and submit pull requests.
Here's where you can find the wifisetup script: https://github.com/OnionIoT/OpenWRT-Packages/blob/master/wifi-warp-core/bin/wifi-setup.sh