Your laptop and your printer don't talk
directly to each other. They communicate via your router and it's beginning to sound as if the connection between your router and your printer has been lost.
You've not provided the make and model of your router, so I don't know whether it supports 'WPS' (which is a quicker way of connecting devices to it than having to mess around with passwords) or not. However you can quickly find out for yourself by looking at your router to see if there's a WPS button on it. It's often marked by a double-arrow symbol, a bit like a recycling one, as illustrated here
https://upload.wikimedia.org/wikipedia/commons/3/3d/Cisco_router_WPS_button.jpg
or here
https://thesimple.zendesk.com/hc/article_attachments/115004687072/KB24343-002_EN_v8.png
Sometimes though it uses a different symbol, as here
https://thesimple.zendesk.com/hc/article_attachments/115004687052/download.jpg
or just the letters 'WPS'.
If there IS a 'WPS' button on your router, scroll down to 'Connecting to a WPS wireless router' here
http://resources.kodak.com/support/shtml/en/manuals/urg01381/urg01381c2s1.shtml
and follow the instructions (using the 'Push Button Configuration' part of the boxed instructions when you get to that stage).
If there ISN'T a WPS button on your router, use the same link as above but referring to 'Connecting to a non-WPS wireless router' instead.