Spintronic oscillator based on magnetic field feedback