source: trunk/package/hostapd/patches/300-scan_ssid.patch @ 25094

Last change on this file since 25094 was 25094, checked in by nbd, 5 years ago

hostapd: update to 20110117

File size: 1.0 KB
  • wpa_supplicant/scan.c

    a b static void wpa_supplicant_scan(void *el 
    251251        enum wps_request_type req_type = WPS_REQ_ENROLLEE_INFO; 
    252252#endif /* CONFIG_WPS */ 
    253253        struct wpa_driver_scan_params params; 
     254        int scan_ssid_all = 1; 
    254255        size_t max_ssids; 
    255256        enum wpa_states prev_state; 
    256257 
    static void wpa_supplicant_scan(void *el 
    307308            wpa_s->wpa_state == WPA_INACTIVE) 
    308309                wpa_supplicant_set_state(wpa_s, WPA_SCANNING); 
    309310 
     311        /* check if all configured ssids should be scanned directly */ 
     312        ssid = wpa_s->conf->ssid; 
     313        while (ssid) { 
     314                if (!ssid->scan_ssid) { 
     315                        scan_ssid_all = 0; 
     316                        break; 
     317                } 
     318                ssid = ssid->next; 
     319        } 
     320 
    310321        /* Find the starting point from which to continue scanning */ 
    311322        ssid = wpa_s->conf->ssid; 
    312323        if (wpa_s->prev_scan_ssid != WILDCARD_SSID_SCAN) { 
    static void wpa_supplicant_scan(void *el 
    370381                int_array_sort_unique(params.freqs); 
    371382        } 
    372383 
     384        if (scan_ssid_all && !ssid) 
     385                ssid = wpa_s->conf->ssid; 
     386 
    373387        if (ssid) { 
    374388                wpa_s->prev_scan_ssid = ssid; 
    375389                if (max_ssids > 1) { 
Note: See TracBrowser for help on using the repository browser.