sta_info.c (3b17fbf87d5dadf123d328ab072334da285748c1) | sta_info.c (4fdbc67a25ce577b79b3af595e874e9ef921329f) |
---|---|
1/* 2 * Copyright 2002-2005, Instant802 Networks, Inc. 3 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 4 * Copyright 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015 - 2016 Intel Deutschland GmbH 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 2287 unchanged lines hidden (view full) --- 2296 2297 if (test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) 2298 ref = local->rate_ctrl; 2299 2300 /* check if the driver has a SW RC implementation */ 2301 if (ref && ref->ops->get_expected_throughput) 2302 thr = ref->ops->get_expected_throughput(sta->rate_ctrl_priv); 2303 else | 1/* 2 * Copyright 2002-2005, Instant802 Networks, Inc. 3 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 4 * Copyright 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015 - 2016 Intel Deutschland GmbH 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 2287 unchanged lines hidden (view full) --- 2296 2297 if (test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) 2298 ref = local->rate_ctrl; 2299 2300 /* check if the driver has a SW RC implementation */ 2301 if (ref && ref->ops->get_expected_throughput) 2302 thr = ref->ops->get_expected_throughput(sta->rate_ctrl_priv); 2303 else |
2304 thr = drv_get_expected_throughput(local, &sta->sta); | 2304 thr = drv_get_expected_throughput(local, sta); |
2305 2306 return thr; 2307} 2308 2309unsigned long ieee80211_sta_last_active(struct sta_info *sta) 2310{ 2311 struct ieee80211_sta_rx_stats *stats = sta_get_last_rx_stats(sta); 2312 2313 if (time_after(stats->last_rx, sta->status_stats.last_ack)) 2314 return stats->last_rx; 2315 return sta->status_stats.last_ack; 2316} | 2305 2306 return thr; 2307} 2308 2309unsigned long ieee80211_sta_last_active(struct sta_info *sta) 2310{ 2311 struct ieee80211_sta_rx_stats *stats = sta_get_last_rx_stats(sta); 2312 2313 if (time_after(stats->last_rx, sta->status_stats.last_ack)) 2314 return stats->last_rx; 2315 return sta->status_stats.last_ack; 2316} |