Simple push-button (PBC) support

本文介绍了使用Wi-Fi保护设置(WPS)进行网络连接配置的方法,包括推送按钮(PBC)模式和个人标识号码(PIN)模式。推送按钮模式下,通过按下接入点上的按钮并使用wpa_supplicant工具发送事件来实现连接;个人标识号码模式则涉及输入PIN码以完成配对。

The most simple is push-button support, it could look like this:

WPS-mockup.png

The AP name is obtained from the WPS scan results (see new versions of iw for how to parse this).

Then once the button on the AP is pushed, wpa_supplicant sends an eventWPS-AP-AVAILABLE-PBC. At that point, the scan results are checked (akinwpa_cli scan_results) whether the selected BSS containsWPS-PBC, like this:

00:1d:7e:4a:a1:ab       2432    69      [WPA2-PSK-TKIP+CCMP][WPS-PBC]   jo

If it does, the button "Connect with WPS" becomes available. When pressed, we do the equivalent of wpa_cli wps_pbc 00:1d:7e:4a:a1:ab and wpa_supplicant does the rest, finally connecting to the network. We then obtain the network key from wpa_supplicant's network config stanza and save it. Alternatively, we could dowps_cred_processing=1 and then connect to the network once we have the credentials.

/!\ This is how I got it working, I think it's supposed to work the other way around, you dowpa_cli wps_pbc <BSSID> first, then it probes the AP until the AP enables PBC. The other way around works for me as well, but how do you discover that the AP is ready?

PIN mode

Cf. for example http://kb.netgear.com/app/answers/detail/a_id/39. The odd thing is that for instance my AP claims to support PIN (or is this not discoverable?!?) but there's nowhere in the web interface to enter the client's PIN.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值