You can do it by router configuration.
At the first, you have to connect to your router by cable and go to the security tab then you should looking for the option that mean "Allow config the router via wireless connection". However, It's better that you just config router via cable because of security reason.
I didn't know your router model so you should find that option or such as that in user manual.