diff options
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 fa7c58035246..acbd1ad8eb33 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, | |||
323 | static u32 airtime_link_metric_get(struct ieee80211_local *local, | 323 | static u32 airtime_link_metric_get(struct ieee80211_local *local, |
324 | struct sta_info *sta) | 324 | struct sta_info *sta) |
325 | { | 325 | { |
326 | struct ieee80211_supported_band *sband; | ||
327 | struct rate_info rinfo; | 326 | struct rate_info rinfo; |
328 | /* This should be adjusted for each device */ | 327 | /* This should be adjusted for each device */ |
329 | int device_constant = 1 << ARITH_SHIFT; | 328 | int device_constant = 1 << ARITH_SHIFT; |
@@ -333,8 +332,6 @@ static u32 airtime_link_metric_get(struct ieee80211_local *local, | |||
333 | u32 tx_time, estimated_retx; | 332 | u32 tx_time, estimated_retx; |
334 | u64 result; | 333 | u64 result; |
335 | 334 | ||
336 | sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; | ||
337 | |||
338 | if (sta->fail_avg >= 100) | 335 | if (sta->fail_avg >= 100) |
339 | return MAX_METRIC; | 336 | return MAX_METRIC; |
340 | 337 | ||