コード例 #1
0
ファイル: events.c プロジェクト: AwaisKing/mt6577_aosp_source
static struct wpa_scan_res *
wpa_supplicant_select_bss_private(struct wpa_supplicant *wpa_s, struct wpa_ssid *group,
			  struct wpa_ssid **selected_ssid)
{
	struct wpa_scan_res *selected;

	wpa_printf(MSG_DEBUG, "Selecting BSS from priority group %d",
		   group->priority);

	/* First, try to find WPA-enabled AP */
	selected = wpa_supplicant_select_bss_wpa(wpa_s, group, selected_ssid);
	if (selected)
		return selected;

#ifdef CONFIG_WAPI_SUPPORT
	/* Second, try to find WAPI-enabled AP */
	selected = wpa_supplicant_select_bss_wapi(wpa_s, group, selected_ssid);
	if (selected)
		return selected;
#endif

	/* If no WPA-enabled AP found, try to find WEP AP, if configuration
	 * allows this. */
	return wpa_supplicant_select_bss_wep(wpa_s, group, selected_ssid);
}
コード例 #2
0
ファイル: events.c プロジェクト: AhmadTux/DragonFlyBSD
static struct wpa_scan_res *
wpa_supplicant_select_bss(struct wpa_supplicant *wpa_s, struct wpa_ssid *group,
			  struct wpa_ssid **selected_ssid)
{
	struct wpa_scan_res *selected;

	wpa_printf(MSG_DEBUG, "Selecting BSS from priority group %d",
		   group->priority);

	/* First, try to find WPA-enabled AP */
	selected = wpa_supplicant_select_bss_wpa(wpa_s, group, selected_ssid);
	if (selected)
		return selected;

	/* If no WPA-enabled AP found, try to find non-WPA AP, if configuration
	 * allows this. */
	return wpa_supplicant_select_bss_non_wpa(wpa_s, group, selected_ssid);
}