From 7b7de4cf94f950909a15559cbbc8d110039bfda5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 9 Nov 2013 17:02:05 +0200 Subject: [PATCH] nl80211: Remove read-only last_freq/last_freq_ht These variables were originally used in hostapd to clear HT channel information when exiting. However, that functionality was lost with commit f019981aee20f53d29ee1079973e609517d6d7e6 when moving to a common code for setting the channel. Taken into account that no one seems to have missed this functionality over the last four years, it seems safe to drop this rather than try to fix the old hostapd behavior. Signed-hostap: Jouni Malinen --- src/drivers/driver_nl80211.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index a8055e699..7d7179621 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -316,9 +316,6 @@ struct wpa_driver_nl80211_data { int default_if_indices[16]; int *if_indices; int num_if_indices; - - int last_freq; - int last_freq_ht; #endif /* HOSTAPD */ /* From failed authentication command */ @@ -4299,14 +4296,6 @@ static void wpa_driver_nl80211_deinit(struct i802_bss *bss) wpa_driver_nl80211_del_beacon(drv); #ifdef HOSTAPD - if (drv->last_freq_ht) { - /* Clear HT flags from the driver */ - struct hostapd_freq_params freq; - os_memset(&freq, 0, sizeof(freq)); - freq.freq = drv->last_freq; - wpa_driver_nl80211_set_freq(bss, &freq); - } - if (drv->eapol_sock >= 0) { eloop_unregister_read_sock(drv->eapol_sock); close(drv->eapol_sock);