diff options
author | Avraham Stern <avraham.stern@intel.com> | 2016-02-15 14:53:13 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-02-21 15:14:51 (GMT) |
commit | ea69d9737cfdf42610ad8134b05ecbf9daf1c289 (patch) | |
tree | eb5e69462b7cc7ffa38f6e3f8106e85ed8c64c06 /wpa_supplicant/scan.c | |
parent | 75cc211d6b40b0028343bcca94c61e458445b4ec (diff) | |
download | hostap-ea69d9737cfdf42610ad8134b05ecbf9daf1c289.zip hostap-ea69d9737cfdf42610ad8134b05ecbf9daf1c289.tar.gz hostap-ea69d9737cfdf42610ad8134b05ecbf9daf1c289.tar.bz2 |
wpa_supplicant: Share a single get_mode() implementation
There is no need to duplicate this helper function in multiple files.
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'wpa_supplicant/scan.c')
-rw-r--r-- | wpa_supplicant/scan.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 3c3f9e0..f4f2c20 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -521,21 +521,6 @@ static int non_p2p_network_enabled(struct wpa_supplicant *wpa_s) #endif /* CONFIG_P2P */ -static struct hostapd_hw_modes * get_mode(struct hostapd_hw_modes *modes, - u16 num_modes, - enum hostapd_hw_mode mode) -{ - u16 i; - - for (i = 0; i < num_modes; i++) { - if (modes[i].mode == mode) - return &modes[i]; - } - - return NULL; -} - - static void wpa_setband_scan_freqs_list(struct wpa_supplicant *wpa_s, enum hostapd_hw_mode band, struct wpa_driver_scan_params *params) |