P2P: Remove unused code from get_shared_radio_freqs_data()
authorAvraham Stern <avraham.stern@intel.com>
Mon, 19 May 2014 07:05:36 +0000 (10:05 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Jun 2014 21:21:40 +0000 (00:21 +0300)
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>
wpa_supplicant/wpa_supplicant.c

index c4d5cb2..8116f29 100644 (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)