How do I configure wpa_supplicant.conf for WPS push-button?
Clash Royale CLAN TAG#URR8PPP
I'm building an IOT device, powered by headless Debain on a CHIP (https://getchip.com/), and will have connectivity to a customer's wifi. I'm trying to build in functionality for wifi connectivity to the customer's router in a way that wouldn't require the customer to ever need to input a password and username. Basically, I'd like to have WPS push-button functionality in Unix.
I've installed wpa_cli
, and have been tinkering around with wpa_supplicant.conf. However I'm very confused. The example .conf
document located here , states that we'd need to input all the parameters of the router ahead of time. Why would that ever need to be the case? Doesn't that defeat the purpose of WPS (i.e. WPS should be blind to any access points and should handshake with the nearest router that has its WPS window open)?
wifi wpa-supplicant wpa-cli
add a comment |
I'm building an IOT device, powered by headless Debain on a CHIP (https://getchip.com/), and will have connectivity to a customer's wifi. I'm trying to build in functionality for wifi connectivity to the customer's router in a way that wouldn't require the customer to ever need to input a password and username. Basically, I'd like to have WPS push-button functionality in Unix.
I've installed wpa_cli
, and have been tinkering around with wpa_supplicant.conf. However I'm very confused. The example .conf
document located here , states that we'd need to input all the parameters of the router ahead of time. Why would that ever need to be the case? Doesn't that defeat the purpose of WPS (i.e. WPS should be blind to any access points and should handshake with the nearest router that has its WPS window open)?
wifi wpa-supplicant wpa-cli
add a comment |
I'm building an IOT device, powered by headless Debain on a CHIP (https://getchip.com/), and will have connectivity to a customer's wifi. I'm trying to build in functionality for wifi connectivity to the customer's router in a way that wouldn't require the customer to ever need to input a password and username. Basically, I'd like to have WPS push-button functionality in Unix.
I've installed wpa_cli
, and have been tinkering around with wpa_supplicant.conf. However I'm very confused. The example .conf
document located here , states that we'd need to input all the parameters of the router ahead of time. Why would that ever need to be the case? Doesn't that defeat the purpose of WPS (i.e. WPS should be blind to any access points and should handshake with the nearest router that has its WPS window open)?
wifi wpa-supplicant wpa-cli
I'm building an IOT device, powered by headless Debain on a CHIP (https://getchip.com/), and will have connectivity to a customer's wifi. I'm trying to build in functionality for wifi connectivity to the customer's router in a way that wouldn't require the customer to ever need to input a password and username. Basically, I'd like to have WPS push-button functionality in Unix.
I've installed wpa_cli
, and have been tinkering around with wpa_supplicant.conf. However I'm very confused. The example .conf
document located here , states that we'd need to input all the parameters of the router ahead of time. Why would that ever need to be the case? Doesn't that defeat the purpose of WPS (i.e. WPS should be blind to any access points and should handshake with the nearest router that has its WPS window open)?
wifi wpa-supplicant wpa-cli
wifi wpa-supplicant wpa-cli
edited Jan 14 at 0:47
Rui F Ribeiro
39.7k1479132
39.7k1479132
asked Sep 19 '16 at 4:13
CAPGuyCAPGuy
1824
1824
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Edit your /etc/wpa_supplicant.conf
configuration file as follow:
At least you need to add the following line :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
You can enable some others support:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_ER=y
CONFIG_WPS_NFC=y
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Get the uuid
through status
command from wpa_cli
To connect
- run
wpa_cli
- From the Interactive mode, run
wps_pbc
and push thewps
button. - Once connected run
dhclient wlan0
(changewlan0
with your interface wifi)
2
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
See the documentation at w1.fi/cgit/hostap/plain/wpa_supplicant/README-WPS.
The documentation you were looking at shows all the possible options in wpa_supplicant.conf
, which includes options for static configuration.
You also need to write a script so that when the WPS button on your device is pressed then you execute wpa_cli wps_pbc
to alert wpa_supplicant. It's also a good idea to capture a multisecond key-press and use that to reset wpa_supplicant's configuration (allowing the user to move your device).
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f310752%2fhow-do-i-configure-wpa-supplicant-conf-for-wps-push-button%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Edit your /etc/wpa_supplicant.conf
configuration file as follow:
At least you need to add the following line :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
You can enable some others support:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_ER=y
CONFIG_WPS_NFC=y
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Get the uuid
through status
command from wpa_cli
To connect
- run
wpa_cli
- From the Interactive mode, run
wps_pbc
and push thewps
button. - Once connected run
dhclient wlan0
(changewlan0
with your interface wifi)
2
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
Edit your /etc/wpa_supplicant.conf
configuration file as follow:
At least you need to add the following line :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
You can enable some others support:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_ER=y
CONFIG_WPS_NFC=y
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Get the uuid
through status
command from wpa_cli
To connect
- run
wpa_cli
- From the Interactive mode, run
wps_pbc
and push thewps
button. - Once connected run
dhclient wlan0
(changewlan0
with your interface wifi)
2
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
Edit your /etc/wpa_supplicant.conf
configuration file as follow:
At least you need to add the following line :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
You can enable some others support:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_ER=y
CONFIG_WPS_NFC=y
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Get the uuid
through status
command from wpa_cli
To connect
- run
wpa_cli
- From the Interactive mode, run
wps_pbc
and push thewps
button. - Once connected run
dhclient wlan0
(changewlan0
with your interface wifi)
Edit your /etc/wpa_supplicant.conf
configuration file as follow:
At least you need to add the following line :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
You can enable some others support:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
CONFIG_DRIVER_NL80211=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_ER=y
CONFIG_WPS_NFC=y
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Get the uuid
through status
command from wpa_cli
To connect
- run
wpa_cli
- From the Interactive mode, run
wps_pbc
and push thewps
button. - Once connected run
dhclient wlan0
(changewlan0
with your interface wifi)
answered Sep 19 '16 at 11:15
GAD3RGAD3R
26.3k1753109
26.3k1753109
2
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
2
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
2
2
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
Sorry it took me so long to come back to this; urgent things came up. This worked perfectly! You showed me the final step that I was missing: the dhclient. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
See the documentation at w1.fi/cgit/hostap/plain/wpa_supplicant/README-WPS.
The documentation you were looking at shows all the possible options in wpa_supplicant.conf
, which includes options for static configuration.
You also need to write a script so that when the WPS button on your device is pressed then you execute wpa_cli wps_pbc
to alert wpa_supplicant. It's also a good idea to capture a multisecond key-press and use that to reset wpa_supplicant's configuration (allowing the user to move your device).
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
See the documentation at w1.fi/cgit/hostap/plain/wpa_supplicant/README-WPS.
The documentation you were looking at shows all the possible options in wpa_supplicant.conf
, which includes options for static configuration.
You also need to write a script so that when the WPS button on your device is pressed then you execute wpa_cli wps_pbc
to alert wpa_supplicant. It's also a good idea to capture a multisecond key-press and use that to reset wpa_supplicant's configuration (allowing the user to move your device).
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
See the documentation at w1.fi/cgit/hostap/plain/wpa_supplicant/README-WPS.
The documentation you were looking at shows all the possible options in wpa_supplicant.conf
, which includes options for static configuration.
You also need to write a script so that when the WPS button on your device is pressed then you execute wpa_cli wps_pbc
to alert wpa_supplicant. It's also a good idea to capture a multisecond key-press and use that to reset wpa_supplicant's configuration (allowing the user to move your device).
See the documentation at w1.fi/cgit/hostap/plain/wpa_supplicant/README-WPS.
The documentation you were looking at shows all the possible options in wpa_supplicant.conf
, which includes options for static configuration.
You also need to write a script so that when the WPS button on your device is pressed then you execute wpa_cli wps_pbc
to alert wpa_supplicant. It's also a good idea to capture a multisecond key-press and use that to reset wpa_supplicant's configuration (allowing the user to move your device).
answered Sep 19 '16 at 6:57
vk5tuvk5tu
88478
88478
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
That's a great piece of advice about the button to reset the supplicant. Thanks!
– CAPGuy
Oct 2 '16 at 2:22
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f310752%2fhow-do-i-configure-wpa-supplicant-conf-for-wps-push-button%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown