Remove artificial limitation to one instance of the driver
rvoell-gcx opened this issue · 2 comments
rvoell-gcx commented
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:
wfx-fullMAC-driver/wfx_fmac_driver/sl_wfx.c
Lines 48 to 50 in fd0c623
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.
silabs-JulienT commented
Hi,
Thank you for the input.
We will review your proposal and come back to you.
silabs-JulienT commented
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.