I'm pretty sure that iCloud will sync Wi-Fi information from your iPhone to your Mac, but I've connected to a network with a "secure" password and typing it on my phone is a pain. Can I use the fact that I've connected to the network on my Mac to have the iPhone connect without wasting time entering the password on the phone?
In case it helps, it's an iPhone 6 with iOS9 and a 2009 MacBook Pro with El Capitan.