Think && Act
  • Welcome
  • OpenWRT系统
    • Remote Command Execution on GL.iNet's mini-routers
    • 配置DTS支持USB存储
    • OpenWRT procd启动过程
    • udhcpc如何绑定网络接口
    • 提交新平台补丁到OpenWRT社区
  • 无线WiFi技术
    • WiFi 四次握手分析
    • mac80211框架基础
    • How to get wirelss assoclist on MT7628
    • WPS on GL.iNet's OpenWRT
  • 密码学与安全
    • Feistel Cipher
    • 数据加密标准(DES)
    • Data Encryption Standard(DES)
    • Advanced Encryption Standard(AES)
  • 数据结构与算法
  • VPN技术
    • Using Tor on GL.iNet's mini-routers
    • Using Softether VPN on GL.iNet's mini-routers
    • Using ZeroTier on GL.iNet's mini-routers
  • Go语言
    • A Quick Guide for Go Modules
  • Shell脚本
    • Parameter Expansion ${}
    • User's Guide for Awk
  • Python语言
    • Python in Visual Studio Code
  • 投资理财
    • 【入门】股票入门基础
    • 【股初】找准股票入场时机
    • 【股初】合理规避风险
    • 【股初】“好公司”投资法
    • 【股初】财务三表分析
    • 【股初】“捡烟蒂”投资法
    • 【股初】构建白马组合
    • 【股进】选择好生意
    • 【股进】好公司——商业逻辑
  • 工具箱
    • A Guide of Visual Studio Code
    • hexo搭建博客
Powered by GitBook
On this page
  • Installation
  • WPS for AP
  • Enable WPS
  • Change reset Button to WPS
  • WPS for Station

Was this helpful?

  1. 无线WiFi技术

WPS on GL.iNet's OpenWRT

PreviousHow to get wirelss assoclist on MT7628Next密码学与安全

Last updated 5 years ago

Was this helpful?

Installation

Login to web UI, go to APPLICATION > Plug-ins. First, click on Update button to update the metadata for packages. Then, search and install hostapd-utils.

WPS for AP

Enable WPS

After installed the package, you should go to MORE SETTINGS > Advanced > Network -> Wireless to enable the WPS function.

Selecting the wireless interface which you want to enable WPS. Changing to Wireless Security tab, and ticked Enable WPS pushbutton, and change the encryption to WPA2-PSK.

Please note that the encryption must be WPA2-PSK, otherwise it will not work. Finally, click on "Save & Apply".

Change reset Button to WPS

Now, you can press the reset button to active WPS function.

The full reset file as below. You can new a file, and copy & paste the content into it.

#!/bin/sh

if [ "$ACTION" = "pressed" -a "$BUTTON" = "reset" ]; then
    cd /var/run/hostapd
    for socket in *; do
        [ -S "$socket" ] || continue
        hostapd_cli -i "$socket" wps_pbc
    done
fi

return 0

WPS for Station

For the sake of convenience, you should connect to an exist AP at first, because of station mode depends on some configuration files, such as firewall, network and dhcp. If you hadn't been connected a AP, you have to configure them manually.

When the AP activated WPS, you can type this command on mini-router to connect it.

wpa_cli -i wlan-sta wps_pbc

Please note that you might need to stop the gl_health process via killall gl_health && mv /usr/bin/gl_health /usr/bin/gl_health1.

Using WinSCP drag and drop the reset file to /etc/rc.button folder. If you don’t know how to use WinSCP, please refer to our instruction.

https://docs.gl-inet.com/en/3/app/ssh/#winscp
img1
img2
img3
img4
img5