diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-12 05:05:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:26 -0400 |
commit | c1b6cf4ee0fb8a3698c563e101a60f9ee4910de0 (patch) | |
tree | 61822116ba1da60378029ae522ed2cd4e5ad2bdf /net/mac80211/tx.c | |
parent | 62c1f95e3993480ae451c322588f7cbf5a58db28 (diff) |
mac80211: remove beacon counters
The beacon counters mac80211 keeps are only used for debugfs,
unfortunately, they are incorrect for many hardware designs,
namely any design that has a beacon template. Hence, remove the
counters so we don't create the impression they are usable.
This also allows removing the beacon MESH #ifdef again.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index c12f361d7185..d136a371e6bd 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1864,7 +1864,6 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1864 | struct rate_selection rsel; | 1864 | struct rate_selection rsel; |
1865 | struct beacon_data *beacon; | 1865 | struct beacon_data *beacon; |
1866 | struct ieee80211_supported_band *sband; | 1866 | struct ieee80211_supported_band *sband; |
1867 | int *num_beacons; | ||
1868 | enum ieee80211_band band = local->hw.conf.channel->band; | 1867 | enum ieee80211_band band = local->hw.conf.channel->band; |
1869 | 1868 | ||
1870 | sband = local->hw.wiphy->bands[band]; | 1869 | sband = local->hw.wiphy->bands[band]; |
@@ -1912,8 +1911,6 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1912 | if (beacon->tail) | 1911 | if (beacon->tail) |
1913 | memcpy(skb_put(skb, beacon->tail_len), | 1912 | memcpy(skb_put(skb, beacon->tail_len), |
1914 | beacon->tail, beacon->tail_len); | 1913 | beacon->tail, beacon->tail_len); |
1915 | |||
1916 | num_beacons = &ap->num_beacons; | ||
1917 | } else | 1914 | } else |
1918 | goto out; | 1915 | goto out; |
1919 | } else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { | 1916 | } else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { |
@@ -1931,8 +1928,6 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1931 | hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | | 1928 | hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | |
1932 | IEEE80211_STYPE_BEACON); | 1929 | IEEE80211_STYPE_BEACON); |
1933 | 1930 | ||
1934 | num_beacons = &ifsta->num_beacons; | ||
1935 | #ifdef CONFIG_MAC80211_MESH | ||
1936 | } else if (ieee80211_vif_is_mesh(&sdata->vif)) { | 1931 | } else if (ieee80211_vif_is_mesh(&sdata->vif)) { |
1937 | struct ieee80211_mgmt *mgmt; | 1932 | struct ieee80211_mgmt *mgmt; |
1938 | u8 *pos; | 1933 | u8 *pos; |
@@ -1960,9 +1955,6 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1960 | *pos++ = 0x0; | 1955 | *pos++ = 0x0; |
1961 | 1956 | ||
1962 | mesh_mgmt_ies_add(skb, sdata); | 1957 | mesh_mgmt_ies_add(skb, sdata); |
1963 | |||
1964 | num_beacons = &sdata->u.mesh.num_beacons; | ||
1965 | #endif | ||
1966 | } else { | 1958 | } else { |
1967 | WARN_ON(1); | 1959 | WARN_ON(1); |
1968 | goto out; | 1960 | goto out; |
@@ -1999,7 +1991,6 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1999 | info->antenna_sel_tx = local->hw.conf.antenna_sel_tx; | 1991 | info->antenna_sel_tx = local->hw.conf.antenna_sel_tx; |
2000 | info->control.retry_limit = 1; | 1992 | info->control.retry_limit = 1; |
2001 | 1993 | ||
2002 | (*num_beacons)++; | ||
2003 | out: | 1994 | out: |
2004 | rcu_read_unlock(); | 1995 | rcu_read_unlock(); |
2005 | return skb; | 1996 | return skb; |