Can I increase the maximum number of scans in iwlist?











up vote
0
down vote

favorite












There are very many APs.

In my opinion, there are at least 200 APs in this field.



Scanning with iwlist will only scan up to 128 scans.

The debug information of wpa_supplicant is limited to a maximum of 128 scans.

I think the kernel limits the number of scans to 128.



Is there a way to increase this list being scanned?

I would like to see all of the APs in the field without limit.










share|improve this question


























    up vote
    0
    down vote

    favorite












    There are very many APs.

    In my opinion, there are at least 200 APs in this field.



    Scanning with iwlist will only scan up to 128 scans.

    The debug information of wpa_supplicant is limited to a maximum of 128 scans.

    I think the kernel limits the number of scans to 128.



    Is there a way to increase this list being scanned?

    I would like to see all of the APs in the field without limit.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      There are very many APs.

      In my opinion, there are at least 200 APs in this field.



      Scanning with iwlist will only scan up to 128 scans.

      The debug information of wpa_supplicant is limited to a maximum of 128 scans.

      I think the kernel limits the number of scans to 128.



      Is there a way to increase this list being scanned?

      I would like to see all of the APs in the field without limit.










      share|improve this question













      There are very many APs.

      In my opinion, there are at least 200 APs in this field.



      Scanning with iwlist will only scan up to 128 scans.

      The debug information of wpa_supplicant is limited to a maximum of 128 scans.

      I think the kernel limits the number of scans to 128.



      Is there a way to increase this list being scanned?

      I would like to see all of the APs in the field without limit.







      kernel wifi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 3 at 4:49









      DonBit

      3541215




      3541215






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          I am using wifi as a realtek chip.

          The maximum number of ssids at scan time is affected by MAX_BSS_CNT.



          The bss_max_count option of wpa_supplicant is only a memory option for wpa_supplicant.



          In my realtek kernel device driver, MAX_BSS_CNT was set to 128.

          I set MAX_BSS_CNT to 4 and confirmed that only up to 4 scans can be done.






          share|improve this answer






























            up vote
            0
            down vote













            Maximum number of BSS entries to keep in memory
            Default: 200
            This can be used to limit memory use on the BSS entries (cached scan
            results). A larger value may be needed in environments that have huge number
            of APs when using ap_scan=1 mode.
            bss_max_count=200


            source: Example wpa_supplicant configuration file





            Also, check section ap_scan=n in wpa_supplicant.conf



            ap_scan=0 - driver scans the access point.



            ap_scan=1 - wpa_supplicant scans the access point, used by default.



            ap_scan=2 - like 0, but also takes into account sec. policies and SSID, works with NDISwrapper.





            tl;dr



            ap_scan — AP scanning/selection



            By default, wpa_supplicant requests driver to perform AP scanning and then uses the scan results to select a suitable AP. Another alternative is to allow the driver to take care of AP scanning and selection and use wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association information from the driver.



            1: wpa_supplicant initiates scanning and AP selection (default).
            0: Driver takes care of scanning, AP selection, and IEEE 802.11 association parameters (e.g., WPA IE generation); this mode can also be used with non-WPA drivers when using IEEE 802.1X mode;
            do not try to associate with APs (i.e., external program needs to control association). This mode must also be used when using wired Ethernet drivers.



            2: like 0, but associate with APs using security policy and SSID (but not BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to enable operation with hidden SSIDs and optimized roaming;
            in this mode, the network blocks in the configuration are tried one by one until the driver reports successful association; each network block should have explicit security policy (i.e., only one
            option in the lists) for key_mgmt, pairwise, group, proto variables.



            Note: ap_scan=2 should not be used with the nl80211 driver interface (the current Linux interface). ap_scan=1 is optimized work working with nl80211. For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.






            share|improve this answer























              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',
              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%2f485607%2fcan-i-increase-the-maximum-number-of-scans-in-iwlist%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








              up vote
              2
              down vote













              I am using wifi as a realtek chip.

              The maximum number of ssids at scan time is affected by MAX_BSS_CNT.



              The bss_max_count option of wpa_supplicant is only a memory option for wpa_supplicant.



              In my realtek kernel device driver, MAX_BSS_CNT was set to 128.

              I set MAX_BSS_CNT to 4 and confirmed that only up to 4 scans can be done.






              share|improve this answer



























                up vote
                2
                down vote













                I am using wifi as a realtek chip.

                The maximum number of ssids at scan time is affected by MAX_BSS_CNT.



                The bss_max_count option of wpa_supplicant is only a memory option for wpa_supplicant.



                In my realtek kernel device driver, MAX_BSS_CNT was set to 128.

                I set MAX_BSS_CNT to 4 and confirmed that only up to 4 scans can be done.






                share|improve this answer

























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  I am using wifi as a realtek chip.

                  The maximum number of ssids at scan time is affected by MAX_BSS_CNT.



                  The bss_max_count option of wpa_supplicant is only a memory option for wpa_supplicant.



                  In my realtek kernel device driver, MAX_BSS_CNT was set to 128.

                  I set MAX_BSS_CNT to 4 and confirmed that only up to 4 scans can be done.






                  share|improve this answer














                  I am using wifi as a realtek chip.

                  The maximum number of ssids at scan time is affected by MAX_BSS_CNT.



                  The bss_max_count option of wpa_supplicant is only a memory option for wpa_supplicant.



                  In my realtek kernel device driver, MAX_BSS_CNT was set to 128.

                  I set MAX_BSS_CNT to 4 and confirmed that only up to 4 scans can be done.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 3 at 8:29









                  Stephen Kitt

                  160k24357432




                  160k24357432










                  answered Dec 3 at 7:12









                  DonBit

                  3541215




                  3541215
























                      up vote
                      0
                      down vote













                      Maximum number of BSS entries to keep in memory
                      Default: 200
                      This can be used to limit memory use on the BSS entries (cached scan
                      results). A larger value may be needed in environments that have huge number
                      of APs when using ap_scan=1 mode.
                      bss_max_count=200


                      source: Example wpa_supplicant configuration file





                      Also, check section ap_scan=n in wpa_supplicant.conf



                      ap_scan=0 - driver scans the access point.



                      ap_scan=1 - wpa_supplicant scans the access point, used by default.



                      ap_scan=2 - like 0, but also takes into account sec. policies and SSID, works with NDISwrapper.





                      tl;dr



                      ap_scan — AP scanning/selection



                      By default, wpa_supplicant requests driver to perform AP scanning and then uses the scan results to select a suitable AP. Another alternative is to allow the driver to take care of AP scanning and selection and use wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association information from the driver.



                      1: wpa_supplicant initiates scanning and AP selection (default).
                      0: Driver takes care of scanning, AP selection, and IEEE 802.11 association parameters (e.g., WPA IE generation); this mode can also be used with non-WPA drivers when using IEEE 802.1X mode;
                      do not try to associate with APs (i.e., external program needs to control association). This mode must also be used when using wired Ethernet drivers.



                      2: like 0, but associate with APs using security policy and SSID (but not BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to enable operation with hidden SSIDs and optimized roaming;
                      in this mode, the network blocks in the configuration are tried one by one until the driver reports successful association; each network block should have explicit security policy (i.e., only one
                      option in the lists) for key_mgmt, pairwise, group, proto variables.



                      Note: ap_scan=2 should not be used with the nl80211 driver interface (the current Linux interface). ap_scan=1 is optimized work working with nl80211. For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.






                      share|improve this answer



























                        up vote
                        0
                        down vote













                        Maximum number of BSS entries to keep in memory
                        Default: 200
                        This can be used to limit memory use on the BSS entries (cached scan
                        results). A larger value may be needed in environments that have huge number
                        of APs when using ap_scan=1 mode.
                        bss_max_count=200


                        source: Example wpa_supplicant configuration file





                        Also, check section ap_scan=n in wpa_supplicant.conf



                        ap_scan=0 - driver scans the access point.



                        ap_scan=1 - wpa_supplicant scans the access point, used by default.



                        ap_scan=2 - like 0, but also takes into account sec. policies and SSID, works with NDISwrapper.





                        tl;dr



                        ap_scan — AP scanning/selection



                        By default, wpa_supplicant requests driver to perform AP scanning and then uses the scan results to select a suitable AP. Another alternative is to allow the driver to take care of AP scanning and selection and use wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association information from the driver.



                        1: wpa_supplicant initiates scanning and AP selection (default).
                        0: Driver takes care of scanning, AP selection, and IEEE 802.11 association parameters (e.g., WPA IE generation); this mode can also be used with non-WPA drivers when using IEEE 802.1X mode;
                        do not try to associate with APs (i.e., external program needs to control association). This mode must also be used when using wired Ethernet drivers.



                        2: like 0, but associate with APs using security policy and SSID (but not BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to enable operation with hidden SSIDs and optimized roaming;
                        in this mode, the network blocks in the configuration are tried one by one until the driver reports successful association; each network block should have explicit security policy (i.e., only one
                        option in the lists) for key_mgmt, pairwise, group, proto variables.



                        Note: ap_scan=2 should not be used with the nl80211 driver interface (the current Linux interface). ap_scan=1 is optimized work working with nl80211. For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.






                        share|improve this answer

























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Maximum number of BSS entries to keep in memory
                          Default: 200
                          This can be used to limit memory use on the BSS entries (cached scan
                          results). A larger value may be needed in environments that have huge number
                          of APs when using ap_scan=1 mode.
                          bss_max_count=200


                          source: Example wpa_supplicant configuration file





                          Also, check section ap_scan=n in wpa_supplicant.conf



                          ap_scan=0 - driver scans the access point.



                          ap_scan=1 - wpa_supplicant scans the access point, used by default.



                          ap_scan=2 - like 0, but also takes into account sec. policies and SSID, works with NDISwrapper.





                          tl;dr



                          ap_scan — AP scanning/selection



                          By default, wpa_supplicant requests driver to perform AP scanning and then uses the scan results to select a suitable AP. Another alternative is to allow the driver to take care of AP scanning and selection and use wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association information from the driver.



                          1: wpa_supplicant initiates scanning and AP selection (default).
                          0: Driver takes care of scanning, AP selection, and IEEE 802.11 association parameters (e.g., WPA IE generation); this mode can also be used with non-WPA drivers when using IEEE 802.1X mode;
                          do not try to associate with APs (i.e., external program needs to control association). This mode must also be used when using wired Ethernet drivers.



                          2: like 0, but associate with APs using security policy and SSID (but not BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to enable operation with hidden SSIDs and optimized roaming;
                          in this mode, the network blocks in the configuration are tried one by one until the driver reports successful association; each network block should have explicit security policy (i.e., only one
                          option in the lists) for key_mgmt, pairwise, group, proto variables.



                          Note: ap_scan=2 should not be used with the nl80211 driver interface (the current Linux interface). ap_scan=1 is optimized work working with nl80211. For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.






                          share|improve this answer














                          Maximum number of BSS entries to keep in memory
                          Default: 200
                          This can be used to limit memory use on the BSS entries (cached scan
                          results). A larger value may be needed in environments that have huge number
                          of APs when using ap_scan=1 mode.
                          bss_max_count=200


                          source: Example wpa_supplicant configuration file





                          Also, check section ap_scan=n in wpa_supplicant.conf



                          ap_scan=0 - driver scans the access point.



                          ap_scan=1 - wpa_supplicant scans the access point, used by default.



                          ap_scan=2 - like 0, but also takes into account sec. policies and SSID, works with NDISwrapper.





                          tl;dr



                          ap_scan — AP scanning/selection



                          By default, wpa_supplicant requests driver to perform AP scanning and then uses the scan results to select a suitable AP. Another alternative is to allow the driver to take care of AP scanning and selection and use wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association information from the driver.



                          1: wpa_supplicant initiates scanning and AP selection (default).
                          0: Driver takes care of scanning, AP selection, and IEEE 802.11 association parameters (e.g., WPA IE generation); this mode can also be used with non-WPA drivers when using IEEE 802.1X mode;
                          do not try to associate with APs (i.e., external program needs to control association). This mode must also be used when using wired Ethernet drivers.



                          2: like 0, but associate with APs using security policy and SSID (but not BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to enable operation with hidden SSIDs and optimized roaming;
                          in this mode, the network blocks in the configuration are tried one by one until the driver reports successful association; each network block should have explicit security policy (i.e., only one
                          option in the lists) for key_mgmt, pairwise, group, proto variables.



                          Note: ap_scan=2 should not be used with the nl80211 driver interface (the current Linux interface). ap_scan=1 is optimized work working with nl80211. For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 3 at 6:21

























                          answered Dec 3 at 6:12









                          1st Sentinel 31 Year Perl Hist

                          22513




                          22513






























                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2f485607%2fcan-i-increase-the-maximum-number-of-scans-in-iwlist%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

                              Entries order in /etc/network/interfaces

                              新発田市

                              Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)