On AT&T or T-Mobile, the Curve 8320, Pearl 8120, and the old 8820 all have Wifi and run OS 4.5. The Pearl Flip 8220 runs OS 4.6, as well as the Bold 9000. Pretty much any GSM carrier would have some of these as part of their lineup (or did).
With CDMA carriers (Verizon, Sprint...), there wasn't a wifi option until the Storm2 or Curve2 came into being, and both of those came out with OS 5.0.