diff options
author | Javier Cardona <javier@cozybit.com> | 2012-06-08 13:30:24 -0700 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-09 10:38:37 +0200 |
commit | e3f5d16120f5118e2f86f1f88deaa69e6843b31f (patch) | |
tree | c4795d2ef15ecc1e71e2696ae3b27cb1a4680d1f /net/mac80211/mesh_hwmp.c | |
parent | 934b9d1ed71cca5a220ec13e3f76d6aebf5183da (diff) |
mac80211: Remove unused variable
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Jason Abele <jason@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index fa7c5803524..acbd1ad8eb3 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -323,7 +323,6 @@ void ieee80211s_update_metric(struct ieee80211_local *local, static u32 airtime_link_metric_get(struct ieee80211_local *local, struct sta_info *sta) { - struct ieee80211_supported_band *sband; struct rate_info rinfo; /* This should be adjusted for each device */ int device_constant = 1 << ARITH_SHIFT; @@ -333,8 +332,6 @@ static u32 airtime_link_metric_get(struct ieee80211_local *local, u32 tx_time, estimated_retx; u64 result; - sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; - if (sta->fail_avg >= 100) return MAX_METRIC; |