Connect Wi-Fi in a WPS (Push Button) Way with OpenWRT

· 1 min read
Connect Wi-Fi in a WPS (Push Button) Way with OpenWRT

I thought it was hard to pair device by WPS with OpenWRT, but I was wrong. According to the official wiki, it could be simply configured by adding some lines and packages.

A minimal process to start WPS Push Button pairing starts with a full version of wpad and hostapd-utils package installed:

opkg update
opkg remove wpad-mini
opkg install wpad hostapd-utils
Install full version of wpad and hostapd-utils using opkg

Then edit /etc/config/wireless to ensure only your chosen wifi-iface to include a wps_pushbutton option and set the value to 1.

wifi-iface SakuragawaComm
	option wps_pushbutton '1'

Restart network service using service network restart to make sure the change takes effect. When everything is ready and the wireless is up again, get the device into WPS Push Button pairing mode, then initiate the process in OpenWRT console:

hostapd_cli wps_pbc

Or just push the WPS button if it is configured on the OpenWRT box. And that is all! The next step is to wait for the device to pick up the signal and connect to the Wi-Fi network.

Related Articles

Rancher Server on RKE Deployment
· 5 min read
Using Linux Containers (LXC) on Fedora
· 3 min read

Notes on Redis Operation

Some common problems and solution to containerized Redis deployment.

· 1 min read

Update (Renew) Certificates in OpenShift (OKD) 3

Server certificates are used to provide encrypted traffic (HTTPS) in OpenShift. When a certificate is near expiration, renewal and replacement

· 1 min read

Helm 2 on OpenShift (OKD) 3

Install the popular Kubernetes package manager and enable cluster-wide install ability. Helm 3? No Way!OpenShift 4 has built-in integration

· 1 min read