Re: [PATCH v2 01/11] vendor_quirks: initial skeleton

Denis Kenzior <[email protected]> Wed, 27 Aug 2025 12:42:42 -0500
Newsgroups dev.linux.lists.iwd
Message-ID <[email protected]>
Hi James,

On 8/27/25 7:54 AM, James Prestwood wrote:
> This module will provide a database for known issues or quirks with
> wireless vendors.
> 
> The vendor_quirks_append_for_oui() API is intended to be called from
> scan.c when parsing vendor attributes. This will lookup any quirks
> associated with the OUI provided and combine them into an existing
> vendor_quirk structure. This can be repeated against all the vendor
> OUI's seen in the scan then referenced later to alter IWD behavior.
> 
> In the future more critera could be added such as MAC address prefix
> or more generalized IE matches e.g.
> 
> vendor_quirks_append_for_mac()
> vendor_quirks_append_for_ie()
> etc.
> ---
>   Makefile.am         |  2 ++
>   src/vendor_quirks.c | 67 +++++++++++++++++++++++++++++++++++++++++++++
>   src/vendor_quirks.h | 39 ++++++++++++++++++++++++++
>   3 files changed, 108 insertions(+)
>   create mode 100644 src/vendor_quirks.c
>   create mode 100644 src/vendor_quirks.h
> 
> v2:
>   * Use a bitfield structure rather than enums/masks
>   * Rename API to be specific to OUI matches. Potentially to extend
>     in the future to match MAC/IE's
> 

All applied, thanks.

Regards,
-Denis