components/wpa_supplicant/src/common/wnm_sta.c
/* basic function to match candidate profile with current bss */
basic function to match candidate profile with current bss
basic function to match candidate profile with current bss
bool wpa_scan_res_match(struct wpa_supplicant *wpa_s,
			struct wpa_bss *current_bss,
			struct wpa_bss *target_bss)
{
	if (current_bss->ssid_len != target_bss->ssid_len) {
		wpa_printf(MSG_DEBUG, "WNM: ssid didn't match");
		return false;
	}
	if (os_memcmp(current_bss->ssid, target_bss->ssid, current_bss->ssid_len) != 0) {
		wpa_printf(MSG_DEBUG, "WNM: ssid didn't match");
		return false;
	}
	return true;
}
bool wpa_scan_res_match ( struct wpa_supplicant * wpa_s , struct wpa_bss * current_bss , struct wpa_bss * target_bss ) { if ( current_bss -> ssid_len != target_bss -> ssid_len ) { wpa_printf ( MSG_DEBUG , " " ) ; return false ; } if ( os_memcmp ( current_bss -> ssid , target_bss -> ssid , current_bss -> ssid_len ) != 0 ) { wpa_printf ( MSG_DEBUG , " " ) ; return false ; } return true ; }
basic function to match candidate profile with current bss
basic function to match candidate profile with current bss
/* TODO security Match */