scan_est_throughput: Use ie_len instead of res->ie_len
Local variable should be used. This fixes an issue where IEs are
available only from a Beacon frame.
Fixes: ad06ac0b0
("Move throughput estimation into a helper function")
Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
This commit is contained in:
parent
b2b7f8dcfa
commit
fee28410de
1 changed files with 1 additions and 1 deletions
|
@ -2347,7 +2347,7 @@ void scan_est_throughput(struct wpa_supplicant *wpa_s,
|
||||||
if (!ie_len)
|
if (!ie_len)
|
||||||
ie_len = res->beacon_ie_len;
|
ie_len = res->beacon_ie_len;
|
||||||
res->est_throughput =
|
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) */
|
/* TODO: channel utilization and AP load (e.g., from AP Beacon) */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue