-
Notifications
You must be signed in to change notification settings - Fork 274
Fix setting an incorrect DTIM value #414
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
base: master
Are you sure you want to change the base?
Conversation
…in struct ieee80211_bss_conf has u8 type
|
You found the problem, that's great! |
|
I would suggest It would be worth emailing |
As I understand it, a dtim_period of 0 is normal in ad-hoc mode, since there is no central access point to manage this value as happens in AP mode. That’s why I added 0 as a separate case here.
dtim_period always has type u8, and we write it into an 8-bit register. Although passing dtim_period as an int argument doesn’t cause issues in this case, it’s not entirely correct because it relies on implicit type conversions.
How about this version? |
|
I don't like that either 😀 but it's not me you need to convince. Please send your patches to the email address I mentioned earlier. |
Thank you for your suggestions. Later I’ll try to prepare and send a patch to [email protected] |
if conf->dtim_period is 0 subtracting 1 leads to incorrect behavior and delays in broadcast traffic.
fix issue #406