Skip to content

Feature/wfx200 wifi driver #5

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

Open
wants to merge 7 commits into
base: v2.6.0-rc1-ncs1-qwx43-changes
Choose a base branch
from

Conversation

andreas-chmielewski-gcx

No description provided.

rvoell-gcx and others added 7 commits September 22, 2021 15:32
This driver currently presents itself as a ethernet device. Joining a
WiFi hotspot is possible by configuring SSID and PSK in Kconfig.
Currently only SPI is supported.

Origin: Original

Signed-off-by: Ruben Völl <[email protected]>
The wifi_mgmt device callbacks structure has been altered to allow for
non-offloaded ip stacks. This has been done in a way to be api
compatible.

This also adds a event task to interact with with theL2 stack. The
driver now supports using the hif(host interface selection) pin to
select the used interface(only SPI supported). Also sleep, but without
connection to the zephyr PM, has been implemented.

Origin: Original

Signed-off-by: Ruben Völl <[email protected]>
Changed the behavior of the driver that it acts in AP oder Station mode
depending on which mode has been selected first. Added a state
enumeration to keep track of which mode has been selected.

Origin: Original

Signed-off-by: Ruben Völl <[email protected]>
This implements the get_capabilities function to be on the safe side.
The wfx200 variant of this function just retuns 0, as it does not
provide any ethenernet capabilities.

Origin: Original

Signed-off-by: Ruben Völl <[email protected]>
Use a own heap instead of relying on the kernel heap.

Origin: Original

Signed-off-by: Ruben Völl <[email protected]>
Call directly public function from netilion application to get
the firmware. This patch should NOT BE commited to zephyr and
is used as a temporary solution to be able to use that driver.
On a later step callback mechanism has to be implemented.
@github-actions
Copy link

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_silabs rvoell-gcx/hal_silabs@be39d4e (master) rvoell-gcx/hal_silabs@add_wfx_fullmac_driver rvoell-gcx/[email protected]_wfx_fullmac_driver

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@AndreyDodonov-EH
Copy link

Also getting:

net_mgmt: Event info length 48 > max size 36

*/
sl_status_t sl_wfx_host_init(void)
{
OnFirmwareInit();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the callback structures @NilsRuf-EH created for our driver? The solution here seems to add cross dependancy. Also with OnFirmwareChunkRequested and OnFirmwareSizeRequested. It would be prefered if this driver implementation could be added into Zephyrs main repo. I doubt it will be possible in the current state.


config WIFI_WFX200_BUS_SPI
bool "SPI Bus interface"
select SPI

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think these are necessary as they should be set by the device tree.

struct net_if_api iface_api;
union {
struct net_if_api iface_api;
struct ethernet_api eth_api;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes like in PR for the Zephyr repo would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants