Reducing attenuator loss using ferrite beads