How do I configure wpa_supplicant.conf for WPS push-button?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















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)?










share|improve this question




























    2















    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)?










    share|improve this question


























      2












      2








      2








      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)?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 14 at 0:47









      Rui F Ribeiro

      39.7k1479132




      39.7k1479132










      asked Sep 19 '16 at 4:13









      CAPGuyCAPGuy

      1824




      1824




















          2 Answers
          2






          active

          oldest

          votes


















          1














          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



          1. run wpa_cli

          2. From the Interactive mode, run wps_pbc and push the wps button.

          3. Once connected run dhclient wlan0 (change wlan0 with your interface wifi)





          share|improve this answer


















          • 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














          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).






          share|improve this answer























          • That's a great piece of advice about the button to reset the supplicant. Thanks!

            – CAPGuy
            Oct 2 '16 at 2:22










          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
          );



          );













          draft saved

          draft discarded


















          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









          1














          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



          1. run wpa_cli

          2. From the Interactive mode, run wps_pbc and push the wps button.

          3. Once connected run dhclient wlan0 (change wlan0 with your interface wifi)





          share|improve this answer


















          • 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















          1














          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



          1. run wpa_cli

          2. From the Interactive mode, run wps_pbc and push the wps button.

          3. Once connected run dhclient wlan0 (change wlan0 with your interface wifi)





          share|improve this answer


















          • 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













          1












          1








          1







          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



          1. run wpa_cli

          2. From the Interactive mode, run wps_pbc and push the wps button.

          3. Once connected run dhclient wlan0 (change wlan0 with your interface wifi)





          share|improve this answer













          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



          1. run wpa_cli

          2. From the Interactive mode, run wps_pbc and push the wps button.

          3. Once connected run dhclient wlan0 (change wlan0 with your interface wifi)






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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












          • 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













          2














          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).






          share|improve this answer























          • That's a great piece of advice about the button to reset the supplicant. Thanks!

            – CAPGuy
            Oct 2 '16 at 2:22















          2














          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).






          share|improve this answer























          • That's a great piece of advice about the button to reset the supplicant. Thanks!

            – CAPGuy
            Oct 2 '16 at 2:22













          2












          2








          2







          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).






          share|improve this answer













          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).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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

















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?