The compatibility only matters when connecting the printer to the router via USB.
Typically, printers which are network-capable wirelessly are also likely able to connect to your network via a wired Ethernet connection as well. Compatibility with the router in this case wouldn't matter.
If...