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 <avraham.stern@intel.com>
This commit is contained in:
Avraham Stern 2014-05-19 10:05:36 +03:00 committed by Jouni Malinen
parent eb383fc48e
commit b278f323ed

View file

@ -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)