I want to install wpad hostapd-utils according to this post but I have some conflict.
opkg install wpad hostapd-utils
Installing wpad (2022-01-16-cff80b4f-13.1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.2/packages/mips_24kc/base/wpad_2022-01-16-cff80b4f-13.1_mips_24kc.ipk
Package hostapd-utils (2022-01-16-cff80b4f-13.1) installed in root is up to date.
Collected errors:
* check_data_file_clashes: Package wpad wants to install file /usr/sbin/hostapd
But that file is already provided by package * wpad-basic-wolfssl
* check_data_file_clashes: Package wpad wants to install file /usr/sbin/wpa_supplicant
But that file is already provided by package * wpad-basic-wolfssl
* check_data_file_clashes: Package wpad wants to install file /usr/sbin/wpad
But that file is already provided by package * wpad-basic-wolfssl
* opkg_install_cmd: Cannot install package wpad.
root@OpenWrt:~# wps_get_status
-ash: wps_get_status: not found
Should I overwrite or remove wpad-basic-wolfssl package?
OpenWrt WPS connection step by step
Here concluded result from many posts.
Warning: Some connection properties can be changed after following configuration. So I recommend backup your wireless configuration in case.
- Connect your router
ssh root@192.168.1.1
- Add
wps_pushbutton '1' option to the /etc/config/wireless
opkg update
- Remove dependencies
opkg remove wpad-basic wpad-basic-wolfssl
- Install wpad
opkg install wpad hostapd-utils
- Restart services
service network restart or reboot
- Check service status whether active
hostapd_cli -i wlan1 wps_get_status
- Enable connection order from router
hostapd_cli wps_pbc without pressing button
- Enable connection order to desired device
Check the result with hostapd_cli -i wlan1 wps_get_status
PBC Status: Disabled
Last WPS result: Success
Peer Address: xx:xx:xx:xx:xx:xx
Your connection paired and established. You don't have to any additional setting, no longer. It will connect automatically after restarting these two devices.
Troubleshot
-
You can not isolate clients in this network, If you do, you do not find your device! So make sure your connection setting don't have option isolate '1' line in your configuration or setting.
-
Sample configuration
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/ahb/18100000.wmac'
option band '2g'
option htmode 'HT20'
option channel 'auto'
option txpower '25'
option cell_density '0'
config wifi-iface 'wifinet2'
option device 'radio1'
option mode 'ap'
option ssid 'desired netwirk ssid'
option encryption 'psk-mixed'
option key 'desired netwirk password'
option network 'lan'
option wps_pushbutton '1'