Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?] bandwidth_threshold in config is supposedly megabits but compared to kilobits from hostapd #227

Open
MGunlogson opened this issue Jun 18, 2023 · 0 comments

Comments

@MGunlogson
Copy link

Hello again!

I think DAWN is comparing megabits in configuration for bandwidth_threshold against kilobits reported by hostapd. I'm getting log messages about not kicking because bandwidth use is 1500 (impossible on my gigabit lan) when limit is at default 6 . DAWN code assumes hostapd is returning megabits, when it seems to be returning kilobits.

The relevant code is here

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);

I'm not sure if hostapd reports client bandwidth differently depending on the wireless driver? I'm running the newest stable OpenWrt (22.03.5) on some E8450's which have MediaTek drivers. With package hostapd-openssl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant