-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: v2.6.0-rc1-ncs1-qwx43-changes
Are you sure you want to change the base?
Feature/wfx200 wifi driver #5
Conversation
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.
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Also getting: net_mgmt: Event info length 48 > max size 36 |
*/ | ||
sl_status_t sl_wfx_host_init(void) | ||
{ | ||
OnFirmwareInit(); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
No description provided.