-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Remove socketpair in hostap to save memory #90317
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: main
Are you sure you want to change the base?
Remove socketpair in hostap to save memory #90317
Conversation
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
37f990d
to
15b13be
Compare
|
See information about memory savings in zephyrproject-rtos/hostap#86 |
Needs more testing and review so adding DNM label. |
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.
That's some really fantastic memory savings!
636e8df
to
ba7a5c8
Compare
ba7a5c8
to
099179d
Compare
e3f730b
to
cb11687
Compare
cb11687
to
e0805fa
Compare
@MaochenWang1 can you take a look to changes too. I have used |
Hi @jukkar thanks for your work. I also tried the image without your change, STA connection to OPEN/WPA3 AP is Okay. My build cmd: Did you verify the connection on Frdm_RW612 board? |
I could connect to WPA2 and WPA3 AP without issues using
I did not had #89294 applied. My hal_nxp is at e0b43431640a565b4500c58fc5e1aaebec2f463d |
@MaochenWang1 please review |
Remove Kconfig dependency to socketpair related options as the hostap now uses k_fifo to pass information between different threads. Signed-off-by: Jukka Rissanen <[email protected]>
Earlier we had socketpair to pass wifi event information from wpa_supplicant side to zephyr adaption layer. This is now replaced by k_fifo to save some RAM. Signed-off-by: Jukka Rissanen <[email protected]>
Make sure to use k_fifo for IPC in hostap to save memory. Signed-off-by: Jukka Rissanen <[email protected]>
hostap needs more eventfd to function so set a proper default value. Signed-off-by: Jukka Rissanen <[email protected]>
e0805fa
to
28ee112
Compare
|
|
Replace wifi event mechanism by k_fifo. Earlier we had socketpair to pass wifi event information from wpa_supplicant side to zephyr adaption layer. This is now replaced by k_fifo to save some RAM.