fw/layer1: Properly set/reset ciphering parameters when needed