wpa_supplicant에서 스캔 건너뛰기

wpa_supplicant에서 스캔 건너뛰기

wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.confAP에 연결하는 명령을 실행할 때 wpa_supplicant다음 단계를 수행하십시오.

 1. wpa_supplicant requests the kernel driver to scan neighboring BSSes 
 2. wpa_supplicant selects a BSS based on its configuration   
 3. wpa_supplicant requests the kernel driver to associate with the   
    chosen BSS

스캔 부분, 즉 1단계를 건너뛸 수 있는 방법이 있습니까? 로컬 환경에는 50개 이상의 SSID가 있으므로 검사에 몇 초가 걸리기 때문입니다.

답변1

wpa_supplicant는 AP에 대한 일부 정보(가용성, ESSID, BSSID, 주파수, 보안, 채널...)를 수집해야 하며 각 연결 요청에 대해 일부 정보를 호출합니다.기능BSS 테이블을 업데이트합니다.

BSS 테이블 업데이트가 없으면 wpa_supplicant는 AP의 변경 사항을 처리할 수 없으므로 스캔을 건너뛸 수 없습니다.

답변2

가지다 ap_scan. ~에서wpa_supplicant.conf 문서:

# 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; if no APs matching to
#    the currently enabled networks are found, a new network (IBSS or AP mode
#    operation) may be initialized (if configured) (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 (including MACsec).
# 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 file 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.
# When using IBSS or AP mode, ap_scan=2 mode can force the new network to be
# created immediately regardless of scan results. ap_scan=1 mode will first try
# to scan for existing networks and only if no matches with the enabled
# networks are found, a new IBSS or AP mode network is created.
ap_scan=1

이것이 작동하는지 여부는 WLAN 드라이버와 연결 방법에 대한 세부 사항에 따라 달라질 수 있습니다.

관련 정보