Hi, @mjbcswitzerland
Please see below for our internal team's feedback:
Attaching new updated patch with modifications.
Root Cause Analysis
- DTIM Period: This field is optional in 802.11 association requests. The current code allocates space for it but never initializes it, resulting in random data being transmitted.
- CF Parameter Set: This is a conditional parameter that should only be included if the AP advertises CF capabilities in its beacon or probe response. The current implementation:
- Always inserts the TLV_TYPE_CF entry
- Allocates 6 bytes for cf_param_set
- Never populates the actual data
Recommendations
Based on the issue analysis and customer feedback:
For DTIM Period:
- Initialize to 0 or a sensible default value
- Since it's optional, setting it to 0 is acceptable per 802.11 standard
For CF Parameter Set:
- Conditional inclusion: Only add TLV_TYPE_CF if CF_PARAM_SET was received from AP
- Proper data copy: If CF capabilities are advertised by AP, copy the actual CF parameter data
- Remove if not needed: If AP doesn't advertise CF capabilities, don't include this TLV at all
Impact
- Protocol Compliance: Current implementation violates proper 802.11 protocol implementation
- Interoperability: Random data in association frames could affect compatibility with some APs
- Security: Sending uninitialized memory content could be a minor information disclosure
Based on the above data, it seems like both of these values are either mandatory or optional based on received from AP, and that is the reason these two parameters are not set.
Please note that, since these two parameter are optional and not creating any other issue (at other locations), these changes are not required for other chipsets and codebase, You may need to test it and keep the changes at your end.
Please let me know whether have any other concerns on this case.
If no other concerns, please do not hesitate to mark my answer as a solution, so that we can close this case.
And please do not hesitate to create new case to us if you meet any other issue during using our products.
Best regards,
Christine.