]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Remove read-only last_freq/last_freq_ht
authorJouni Malinen <j@w1.fi>
Sat, 9 Nov 2013 15:02:05 +0000 (17:02 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Nov 2013 15:02:05 +0000 (17:02 +0200)
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 <j@w1.fi>

src/drivers/driver_nl80211.c

index a8055e69984b4c43196834c82b8f7c47c9adff27..7d71796214a4e2f0dfc2a695acd6aafd23a944ce 100644 (file)
@@ -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);