After ets_hmac_disable(), invalidating JTAG register process is ineffective. So, added call to enable hmac begore invalidating JTAG REG. And similarly disabled it after invalidation.