Bug fixed on hackrf_transfer for -w and -n options because the WAV header was not updated at exit.