SiliconLabs/wfx-fullMAC-driver

Remove artificial limitation to one instance of the driver

rvoell-gcx opened this issue · 2 comments

Currently the driver is designed in a way, which artificial limits the amount of instances of this driver to one. This is caused by the definition of global variables:

sl_wfx_context_t *sl_wfx_context;
static uint8_t encryption_keyset;
static uint16_t sl_wfx_input_buffer_number;

It would be nice, if this could be changed, even if this will result into giving the correct context/handle to all functions of the api in sl_wfx.h. Also all functions implemented by the host api could use this context to distinguish between physical instances of the wfx200 chips.
I know, that this might result into no longer compatible api but it would make development of a more generic drivers e.g. for Zephyr much easier.

Hi,

Thank you for the input.
We will review your proposal and come back to you.

Hi,

We decided to not proceed with your request as it would mean a major driver redesign to only enable a limited number of use cases.