update ap_gain.bin