if wifi still work in the new firmware, may be you can just modify the settings via uci. I am not sure if luci support all. But mt7628 should not be in the config because you flashed clean openwrt firmware.

Did you reserve settings?