How do I activate Wi-Fi Protected Setup (WPS) on the Deskjet 2540?

Press and hold the Wireless button for more than three seconds until the light blinks to start Wi-Fi Protected Setup (WPS) push button mode. This allows you to connect the printer to a WPS-compatible router without manually entering a network password. (Page 2)

From the official HP Deskjet 2540 All-in-One Printer manual, page 2

Have a follow-up question?

Answers from the official manual.

Common questions