diff mbox series

scan_est_throughput: use ie_len instead of res->ie_len

Message ID 20200123221817.199969-1-matthewmwang@chromium.org
State Accepted
Headers show
Series scan_est_throughput: use ie_len instead of res->ie_len | expand

Commit Message

Matthew Wang Jan. 23, 2020, 10:18 p.m. UTC
Local variable should be used.

Fixes: ad06ac0b0 ("Move throughput estimation into a helper function")
Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
---
 wpa_supplicant/scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Feb. 3, 2020, 12:24 a.m. UTC | #1
On Thu, Jan 23, 2020 at 02:18:17PM -0800, Matthew Wang wrote:
> Local variable should be used.

Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index c91517a45..17636e3b6 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -2347,7 +2347,7 @@  void scan_est_throughput(struct wpa_supplicant *wpa_s,
 	if (!ie_len)
 		ie_len = res->beacon_ie_len;
 	res->est_throughput =
-		wpas_get_est_tpt(wpa_s, ies, res->ie_len, rate, snr);
+		wpas_get_est_tpt(wpa_s, ies, ie_len, rate, snr);
 
 	/* TODO: channel utilization and AP load (e.g., from AP Beacon) */
 }