diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-06 21:45:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:30 -0400 |
commit | a7c1cfc9616ee76213a6d4fd4c17f13fdc92ddce (patch) | |
tree | 90ddc3aac3a7929479852aae8f3e89b3fa9008a8 | |
parent | 3e5d7649a64e558e4146ddfad4dfcf13fc65dd47 (diff) |
mac80211: remove dead code from mlme
The ap_capab and last_probe struct members are unused.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 3 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 4 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 2 |
3 files changed, 1 insertions, 8 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index ffe9add3ef42..4c541f0f325f 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -100,7 +100,6 @@ IEEE80211_IF_FILE(bssid, u.mgd.bssid, MAC); | |||
100 | IEEE80211_IF_FILE(prev_bssid, u.mgd.prev_bssid, MAC); | 100 | IEEE80211_IF_FILE(prev_bssid, u.mgd.prev_bssid, MAC); |
101 | IEEE80211_IF_FILE(ssid_len, u.mgd.ssid_len, SIZE); | 101 | IEEE80211_IF_FILE(ssid_len, u.mgd.ssid_len, SIZE); |
102 | IEEE80211_IF_FILE(aid, u.mgd.aid, DEC); | 102 | IEEE80211_IF_FILE(aid, u.mgd.aid, DEC); |
103 | IEEE80211_IF_FILE(ap_capab, u.mgd.ap_capab, HEX); | ||
104 | IEEE80211_IF_FILE(capab, u.mgd.capab, HEX); | 103 | IEEE80211_IF_FILE(capab, u.mgd.capab, HEX); |
105 | IEEE80211_IF_FILE(extra_ie_len, u.mgd.extra_ie_len, SIZE); | 104 | IEEE80211_IF_FILE(extra_ie_len, u.mgd.extra_ie_len, SIZE); |
106 | IEEE80211_IF_FILE(auth_tries, u.mgd.auth_tries, DEC); | 105 | IEEE80211_IF_FILE(auth_tries, u.mgd.auth_tries, DEC); |
@@ -186,7 +185,6 @@ static void add_sta_files(struct ieee80211_sub_if_data *sdata) | |||
186 | DEBUGFS_ADD(prev_bssid, sta); | 185 | DEBUGFS_ADD(prev_bssid, sta); |
187 | DEBUGFS_ADD(ssid_len, sta); | 186 | DEBUGFS_ADD(ssid_len, sta); |
188 | DEBUGFS_ADD(aid, sta); | 187 | DEBUGFS_ADD(aid, sta); |
189 | DEBUGFS_ADD(ap_capab, sta); | ||
190 | DEBUGFS_ADD(capab, sta); | 188 | DEBUGFS_ADD(capab, sta); |
191 | DEBUGFS_ADD(extra_ie_len, sta); | 189 | DEBUGFS_ADD(extra_ie_len, sta); |
192 | DEBUGFS_ADD(auth_tries, sta); | 190 | DEBUGFS_ADD(auth_tries, sta); |
@@ -318,7 +316,6 @@ static void del_sta_files(struct ieee80211_sub_if_data *sdata) | |||
318 | DEBUGFS_DEL(prev_bssid, sta); | 316 | DEBUGFS_DEL(prev_bssid, sta); |
319 | DEBUGFS_DEL(ssid_len, sta); | 317 | DEBUGFS_DEL(ssid_len, sta); |
320 | DEBUGFS_DEL(aid, sta); | 318 | DEBUGFS_DEL(aid, sta); |
321 | DEBUGFS_DEL(ap_capab, sta); | ||
322 | DEBUGFS_DEL(capab, sta); | 319 | DEBUGFS_DEL(capab, sta); |
323 | DEBUGFS_DEL(extra_ie_len, sta); | 320 | DEBUGFS_DEL(extra_ie_len, sta); |
324 | DEBUGFS_DEL(auth_tries, sta); | 321 | DEBUGFS_DEL(auth_tries, sta); |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index a550aeb85053..d0354b16d24f 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -268,7 +268,7 @@ struct ieee80211_if_managed { | |||
268 | } state; | 268 | } state; |
269 | 269 | ||
270 | u16 aid; | 270 | u16 aid; |
271 | u16 ap_capab, capab; | 271 | u16 capab; |
272 | u8 *extra_ie; /* to be added to the end of AssocReq */ | 272 | u8 *extra_ie; /* to be added to the end of AssocReq */ |
273 | size_t extra_ie_len; | 273 | size_t extra_ie_len; |
274 | 274 | ||
@@ -288,7 +288,6 @@ struct ieee80211_if_managed { | |||
288 | 288 | ||
289 | unsigned long request; | 289 | unsigned long request; |
290 | 290 | ||
291 | unsigned long last_probe; | ||
292 | unsigned long last_beacon; | 291 | unsigned long last_beacon; |
293 | 292 | ||
294 | unsigned int flags; | 293 | unsigned int flags; |
@@ -472,7 +471,6 @@ struct ieee80211_sub_if_data { | |||
472 | struct dentry *prev_bssid; | 471 | struct dentry *prev_bssid; |
473 | struct dentry *ssid_len; | 472 | struct dentry *ssid_len; |
474 | struct dentry *aid; | 473 | struct dentry *aid; |
475 | struct dentry *ap_capab; | ||
476 | struct dentry *capab; | 474 | struct dentry *capab; |
477 | struct dentry *extra_ie_len; | 475 | struct dentry *extra_ie_len; |
478 | struct dentry *auth_tries; | 476 | struct dentry *auth_tries; |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 24486455e505..29575eea3ed1 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -879,7 +879,6 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata, | |||
879 | ieee80211_rx_bss_put(local, bss); | 879 | ieee80211_rx_bss_put(local, bss); |
880 | } | 880 | } |
881 | 881 | ||
882 | ifmgd->last_probe = jiffies; | ||
883 | ieee80211_led_assoc(local, 1); | 882 | ieee80211_led_assoc(local, 1); |
884 | 883 | ||
885 | sdata->vif.bss_conf.assoc = 1; | 884 | sdata->vif.bss_conf.assoc = 1; |
@@ -1488,7 +1487,6 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1488 | 1487 | ||
1489 | printk(KERN_DEBUG "%s: associated\n", sdata->dev->name); | 1488 | printk(KERN_DEBUG "%s: associated\n", sdata->dev->name); |
1490 | ifmgd->aid = aid; | 1489 | ifmgd->aid = aid; |
1491 | ifmgd->ap_capab = capab_info; | ||
1492 | 1490 | ||
1493 | kfree(ifmgd->assocresp_ies); | 1491 | kfree(ifmgd->assocresp_ies); |
1494 | ifmgd->assocresp_ies_len = len - (pos - (u8 *) mgmt); | 1492 | ifmgd->assocresp_ies_len = len - (pos - (u8 *) mgmt); |