How to re-enable a network that has been TEMP-DISABLED in wpa_supplicant?












2















In wpa_suppicant, a network can receive a sort of temporary "blacklisting" whereby wpa_supplicant won't try to connect to it. This happens in particular if authentication to the AP fails several times (which, since wpa_supplicant retries, is almost certain).



These look like this in wpa_cli:



> list_networks 
network id / ssid / bssid / flags
0 Example any [TEMP-DISABLED]


Where Example is the SSID of the network.



Is it possible to indicate to wpa_supplicant that the problem has been corrected, and that it can attempt to re-authenticate? (None of enable_network, reassociate or reconnect work.)



(Restarting wpa_supplicant works, but I was wondering if there was a "gentler" method. Judging by the logs, it looks like it backs off, and the upper bound is a whopping 20 minutes, which is a long time between retries.)










share|improve this question



























    2















    In wpa_suppicant, a network can receive a sort of temporary "blacklisting" whereby wpa_supplicant won't try to connect to it. This happens in particular if authentication to the AP fails several times (which, since wpa_supplicant retries, is almost certain).



    These look like this in wpa_cli:



    > list_networks 
    network id / ssid / bssid / flags
    0 Example any [TEMP-DISABLED]


    Where Example is the SSID of the network.



    Is it possible to indicate to wpa_supplicant that the problem has been corrected, and that it can attempt to re-authenticate? (None of enable_network, reassociate or reconnect work.)



    (Restarting wpa_supplicant works, but I was wondering if there was a "gentler" method. Judging by the logs, it looks like it backs off, and the upper bound is a whopping 20 minutes, which is a long time between retries.)










    share|improve this question

























      2












      2








      2








      In wpa_suppicant, a network can receive a sort of temporary "blacklisting" whereby wpa_supplicant won't try to connect to it. This happens in particular if authentication to the AP fails several times (which, since wpa_supplicant retries, is almost certain).



      These look like this in wpa_cli:



      > list_networks 
      network id / ssid / bssid / flags
      0 Example any [TEMP-DISABLED]


      Where Example is the SSID of the network.



      Is it possible to indicate to wpa_supplicant that the problem has been corrected, and that it can attempt to re-authenticate? (None of enable_network, reassociate or reconnect work.)



      (Restarting wpa_supplicant works, but I was wondering if there was a "gentler" method. Judging by the logs, it looks like it backs off, and the upper bound is a whopping 20 minutes, which is a long time between retries.)










      share|improve this question














      In wpa_suppicant, a network can receive a sort of temporary "blacklisting" whereby wpa_supplicant won't try to connect to it. This happens in particular if authentication to the AP fails several times (which, since wpa_supplicant retries, is almost certain).



      These look like this in wpa_cli:



      > list_networks 
      network id / ssid / bssid / flags
      0 Example any [TEMP-DISABLED]


      Where Example is the SSID of the network.



      Is it possible to indicate to wpa_supplicant that the problem has been corrected, and that it can attempt to re-authenticate? (None of enable_network, reassociate or reconnect work.)



      (Restarting wpa_supplicant works, but I was wondering if there was a "gentler" method. Judging by the logs, it looks like it backs off, and the upper bound is a whopping 20 minutes, which is a long time between retries.)







      linux networking wireless-networking wpa-supplicant






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 30 '18 at 2:30









      ThanatosThanatos

      1,13031429




      1,13031429






















          1 Answer
          1






          active

          oldest

          votes


















          1














          When wpa_supplicant repeatedly fails to connect to a network the network is temporarily disabled, and the BSSID may be blacklisted.



          To clear TEMP-DISABLED state you can disable and re-enable the network



          disable 0
          enable 0


          The blacklist command shows if any BSSIDs are blacklisted, and they can be re-enabled with the command blacklist clear.



          Based on the wpas_auth_failed function in http://w1.fi/cgit/hostap/tree/wpa_supplicant/wpa_supplicant.c the TEMP-DISABLED state lasts 10 seconds for the first failure, and increases up to 300 seconds after more than 50 failures. There are other places where this state is set though, and when I saw this state occur it didn't appear to have failed that frequently.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fsuperuser.com%2fquestions%2f1371134%2fhow-to-re-enable-a-network-that-has-been-temp-disabled-in-wpa-supplicant%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            When wpa_supplicant repeatedly fails to connect to a network the network is temporarily disabled, and the BSSID may be blacklisted.



            To clear TEMP-DISABLED state you can disable and re-enable the network



            disable 0
            enable 0


            The blacklist command shows if any BSSIDs are blacklisted, and they can be re-enabled with the command blacklist clear.



            Based on the wpas_auth_failed function in http://w1.fi/cgit/hostap/tree/wpa_supplicant/wpa_supplicant.c the TEMP-DISABLED state lasts 10 seconds for the first failure, and increases up to 300 seconds after more than 50 failures. There are other places where this state is set though, and when I saw this state occur it didn't appear to have failed that frequently.






            share|improve this answer




























              1














              When wpa_supplicant repeatedly fails to connect to a network the network is temporarily disabled, and the BSSID may be blacklisted.



              To clear TEMP-DISABLED state you can disable and re-enable the network



              disable 0
              enable 0


              The blacklist command shows if any BSSIDs are blacklisted, and they can be re-enabled with the command blacklist clear.



              Based on the wpas_auth_failed function in http://w1.fi/cgit/hostap/tree/wpa_supplicant/wpa_supplicant.c the TEMP-DISABLED state lasts 10 seconds for the first failure, and increases up to 300 seconds after more than 50 failures. There are other places where this state is set though, and when I saw this state occur it didn't appear to have failed that frequently.






              share|improve this answer


























                1












                1








                1







                When wpa_supplicant repeatedly fails to connect to a network the network is temporarily disabled, and the BSSID may be blacklisted.



                To clear TEMP-DISABLED state you can disable and re-enable the network



                disable 0
                enable 0


                The blacklist command shows if any BSSIDs are blacklisted, and they can be re-enabled with the command blacklist clear.



                Based on the wpas_auth_failed function in http://w1.fi/cgit/hostap/tree/wpa_supplicant/wpa_supplicant.c the TEMP-DISABLED state lasts 10 seconds for the first failure, and increases up to 300 seconds after more than 50 failures. There are other places where this state is set though, and when I saw this state occur it didn't appear to have failed that frequently.






                share|improve this answer













                When wpa_supplicant repeatedly fails to connect to a network the network is temporarily disabled, and the BSSID may be blacklisted.



                To clear TEMP-DISABLED state you can disable and re-enable the network



                disable 0
                enable 0


                The blacklist command shows if any BSSIDs are blacklisted, and they can be re-enabled with the command blacklist clear.



                Based on the wpas_auth_failed function in http://w1.fi/cgit/hostap/tree/wpa_supplicant/wpa_supplicant.c the TEMP-DISABLED state lasts 10 seconds for the first failure, and increases up to 300 seconds after more than 50 failures. There are other places where this state is set though, and when I saw this state occur it didn't appear to have failed that frequently.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 10 at 22:39









                RattleRattle

                1113




                1113






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1371134%2fhow-to-re-enable-a-network-that-has-been-temp-disabled-in-wpa-supplicant%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

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix