From: Avraham Stern Date: Mon, 19 May 2014 07:05:36 +0000 (+0300) Subject: P2P: Remove unused code from get_shared_radio_freqs_data() X-Git-Tag: hostap_2_3~285 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=b278f323edf24a7254c07bcbd7b87808eb72b4ee P2P: Remove unused code from get_shared_radio_freqs_data() Remove the check for get_radio_name support from get_shared_radio_freqs_data() since get_radio_name is no longer in use in this function. Signed-off-by: Avraham Stern --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index c4d5cb2..8116f29 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -4677,16 +4677,6 @@ int get_shared_radio_freqs(struct wpa_supplicant *wpa_s, freq_array[idx++] = wpa_s->assoc_freq; } - /* If get_radio_name is not supported, use only the local freq */ - if (!wpa_driver_get_radio_name(wpa_s)) { - freq = wpa_drv_shared_freq(wpa_s); - if (freq > 0 && idx < len && - (idx == 0 || freq_array[0] != freq)) - freq_array[idx++] = freq; - dump_freq_array(wpa_s, "No get_radio_name", freq_array, idx); - return idx; - } - dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, radio_list) { if (wpa_s == ifs)