so I'm brand new to Linux and I just installed it as the single OS on my macbook pro. I'm having a problem where I can't connect to my home wifi network and I'm not sure what's wrong.

Just to tell you exactly what happens, I add a new 'hidden wifi network' via network settings, type the correct name and password (security is WPA/WPA2 personal), and hit connect. The little signal icon in the top right pulsates as if it's trying to connect, and after a while of that I get the 'disconnected' notification. If I go to network settings and look at the network name it says 'out of range' which is definitely not the case as I'm sitting right next to my router.

I've already done things suggested at No Wireless When Install 14.04 on Macbook Pro and How to get Wifi working on Ubuntu 14.04 (Macbook Pro Retina 15 inch - 2014), so I'm not sure what else to do. Could it be something to do with settings on my router? Any help is appreciated.