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 f019981aee
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 <j@w1.fi>
This commit is contained in:
parent
0c9057970b
commit
7b7de4cf94
1 changed files with 0 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue