mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
don't kick if data rate is at threshold
This commit is contained in:
parent
e036905ae3
commit
734a2d6506
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ int kick_clients(struct dawn_mac bssid_mac, uint32_t id) {
|
||||||
// only use rx_rate for indicating if transmission is going on
|
// only use rx_rate for indicating if transmission is going on
|
||||||
// <= 6MBits <- probably no transmission
|
// <= 6MBits <- probably no transmission
|
||||||
// tx_rate has always some weird value so don't use ist
|
// tx_rate has always some weird value so don't use ist
|
||||||
if (have_bandwidth_iwinfo && dawn_metric.bandwidth_threshold != 0 && rx_rate > dawn_metric.bandwidth_threshold) {
|
if (have_bandwidth_iwinfo && dawn_metric.bandwidth_threshold != 0 && rx_rate >= dawn_metric.bandwidth_threshold) {
|
||||||
dawnlog_info("Client " MACSTR ": Don't kick due to active data transfer: RX rate %f exceeds %d limit\n", MAC2STR(j->client_addr.u8), rx_rate, dawn_metric.bandwidth_threshold);
|
dawnlog_info("Client " MACSTR ": Don't kick due to active data transfer: RX rate %f exceeds %d limit\n", MAC2STR(j->client_addr.u8), rx_rate, dawn_metric.bandwidth_threshold);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue