In my experience this is generally a problem upstream (ie, your router isn't connected to the internet, but it will still allow devices to connect to it). Do you have other devices in your home that are on the same wireless connection and can they access the internet?