Just uncheck
the "Ask to join new networks" box under Network Prefs. That will allow you to join secured networks you've previously acquired and unsecured ones it can find. You'd have to join the secured networks you stumble upon so it knows how to log in.