mac80211: remove assoc data "sent_assoc"
authorJohannes Berg <johannes.berg@intel.com>
Thu, 24 Jan 2013 23:44:12 +0000 (00:44 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 31 Jan 2013 13:05:33 +0000 (14:05 +0100)
The field is never used, so remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c

index 5fba867d9e2e0dc60109cc5dc006d302ad3763eb..2f50be7eea09d03929599c50cafa08147b7877d5 100644 (file)
@@ -400,7 +400,6 @@ struct ieee80211_mgd_assoc_data {
        u8 supp_rates_len;
        bool wmm, uapsd;
        bool have_beacon;
-       bool sent_assoc;
        bool synced;
 
        u8 ap_ht_param;
index 5913fb924b12e4904ad29ce61ab8d5f7a6f78ee1..d79b9cd72fc5fbe20df062752dc4ebb5e5153227 100644 (file)
@@ -2555,7 +2555,6 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
 
                ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, &elems);
                ifmgd->assoc_data->have_beacon = true;
-               ifmgd->assoc_data->sent_assoc = false;
                /* continue assoc process */
                ifmgd->assoc_data->timeout = jiffies;
                run_again(ifmgd, ifmgd->assoc_data->timeout);
@@ -3967,13 +3966,11 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
                                ifmgd->dtim_period = tim->dtim_period;
                        }
                        assoc_data->have_beacon = true;
-                       assoc_data->sent_assoc = false;
                        assoc_data->timeout = jiffies;
                }
                rcu_read_unlock();
        } else {
                assoc_data->have_beacon = true;
-               assoc_data->sent_assoc = false;
                assoc_data->timeout = jiffies;
        }
        run_again(ifmgd, assoc_data->timeout);