-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
wifi: Hostap prepare upmerge #11899
wifi: Hostap prepare upmerge #11899
Commits on Aug 1, 2023
-
hostap: Add support for Zephyr RTOS (#1)
Modifications for building supplicant on Zephyr RTOS. Signed-off-by: Sridhar Nuvusetty <sridhar.nuvusetty@nordicsemi.no> Signed-off-by: Sachin Kulkarni <sachin.kulkarni@nordicsemi.no> Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no> Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Co-authored-by: krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b2b1aec - Browse repository at this point
Copy the full SHA b2b1aecView commit details -
The file was removed but was still included. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 123c196 - Browse repository at this point
Copy the full SHA 123c196View commit details -
hostap: Fix crash in case supplicant init fails (#5)
Remove uninitialized variable that is no longer needed, this causes crash in case supplicant thread exits. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 4d4046b - Browse repository at this point
Copy the full SHA 4d4046bView commit details -
hostap: Cleanups related to Wi-Fi shell (#6)
* Include HOSTAP_BASE to fix header file paths * Select WEP automatically through Kconfig Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 94367f0 - Browse repository at this point
Copy the full SHA 94367f0View commit details -
hostap: Compile out logs based on configured log level
1. Add WPA_SUPP_LOG_LEVEL_* Kconfig options to control the WPA supplicant log level the same way as other SDK components. 2. Add WPA_SUPP_DEBUG_LEVEL Kconfig option to be used for compile-time filtering of WPA supplicant debug messages. By default, it is aligned with WPA_SUPP_LOG_LEVEL. 3. Implement Zephyr variants of wpa_debug.h and wpa_debug.c files that use Zephyr logging subystem as the default output and apply compile-time filtering for the messages. Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 596dd0b - Browse repository at this point
Copy the full SHA 596dd0bView commit details -
hostap: Redesign the events passing to wpa_supplicant from driver
Eloop framework in wpa_supplicant uses select with minimal timeout of all registered users, but by default it is 10secs (periodic cleanup task), so, in case of no other events all registered users will be delayed by 10secs. In Linux, select exits without waiting for full 10secs as for there is a handler registered for NL80211 sockets and whenever there is a event from Kernel select exits and processes expired events immediately. In Zephyr, we don't have such mechanism as we use direction function calls between kernel and wpa_supplicant, so, add an event socket and register it with Eloop and use this to post the event, the socket handler pass the event to wpa_supplicant. For user interface we just post a dummy message only to unblock select. This solves both problems: * Unblocking select for all interesting events immediately * Terminate driver context for events as we use sockets, so, remove mbox + thread. This significantly improves the association time from 30s to 5s. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for c78fb47 - Browse repository at this point
Copy the full SHA c78fb47View commit details -
hostap: Restructure wpa_supplicant interface handle
Using first interface handle everywhere is not ideal, esp. when we add support for multi-VIF, so, query wpa_supplicant with the interface name to get the handle. The interface name itself is hard coded to "wlan0" everywhere for now. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for dd23915 - Browse repository at this point
Copy the full SHA dd23915View commit details -
hostap: Implement nRF Wi-Fi management APIs
These APIs will be used by nRF Wi-Fi management to interact with wpa_supplicant. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b831efe - Browse repository at this point
Copy the full SHA b831efeView commit details -
hostap: Migrate wpa_cli from NCS/sdk-nrf
This is now purely an internal utility, so, moved from sdk-nrf to here as it works with wpa_supplicant. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7459df4 - Browse repository at this point
Copy the full SHA 7459df4View commit details -
Now that display scan is natively supported using wifi_mgmt, remove it from WPA supplicant API and wpa_cli. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for e77cfd9 - Browse repository at this point
Copy the full SHA e77cfd9View commit details -
hostap: Use UNIX sockets instead of networking sockets
Using UDP sockets need an interface with properly configured IP address and then either IPv4/IPv6 enabled, UNIX socket don't need any of those and work perfectly well for IPC. This solves two bugs: * Matter doesn't enable IPv4, so, the events stop working, as the code doesn't support IPv6 sockets and also doesn't protect with IPv4 define. * Wi-Fi sample assigns IP address in the `prj.conf` but if an application doesn't do that, then socket send fails. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 8f75d5f - Browse repository at this point
Copy the full SHA 8f75d5fView commit details -
With recent changes, WPA CLI build is broken. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7280a76 - Browse repository at this point
Copy the full SHA 7280a76View commit details -
hostap: Enable sub-menu only if menu is selected
All options depend on WPA_SUPP, so, add a check. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 77d2633 - Browse repository at this point
Copy the full SHA 77d2633View commit details -
Don't use the same acronym in help. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 387d012 - Browse repository at this point
Copy the full SHA 387d012View commit details -
hostap: COV-175332: Fix memory leak
Free ifname before returning. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 71b7961 - Browse repository at this point
Copy the full SHA 71b7961View commit details -
hostap: Add a null check for ifname
ifname can be null if memory allocation fails. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 5eb102d - Browse repository at this point
Copy the full SHA 5eb102dView commit details -
hostap: Support signal polling
Add support to handle signal polling requests from application. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for f4773ff - Browse repository at this point
Copy the full SHA f4773ffView commit details -
hostap: Wait for WPA supplicant initialization
Before processing wifi_mgmt APIs check and wait for WPA supplicant initialization. This solves bus fault when wifi_mgmt API is called too early (before WPA supplicant populates "global" pointer). This is done using a binary semaphore with initial value as 1. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for a2851bd - Browse repository at this point
Copy the full SHA a2851bdView commit details -
hostap: Fix both API and Shell usage
When both API and Shell commands are invoked, crashes were observed due to missing locking and using stack memory to pass down to the driver. Use a lock to serialize all APIs, both when invoked from using API directly or viz shell and also calling multiple APIs, and for status use the dynamic memory to avoid passing stack memory when there is concurrent access. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for e2e6bb9 - Browse repository at this point
Copy the full SHA e2e6bb9View commit details -
hostap: Add support for channel selection
If a channel is provided pass it WPA supplicant to use that in both scan and connection. The conversion from channel to frequency without any regulatory information (country code, OP class) is tricky, but use Global with widest OP classes common to most countries (81 and 128). Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 9c765bd - Browse repository at this point
Copy the full SHA 9c765bdView commit details -
hostap: Enable support for MBO
MBO is multi-band operation, this is needed for WFA certification for Wi-Fi 6. Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 6ad50c1 - Browse repository at this point
Copy the full SHA 6ad50c1View commit details -
hostap: Increase log buffer size
* Debug logging is excessive and needs larger buffer size to avoid truncating/dropping logs * Also, in general supplicant outputs bunch of logs, so, even for non-debug case increase the buffer size Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for bd554bd - Browse repository at this point
Copy the full SHA bd554bdView commit details -
In case of failure scenarions, mutex is not unlocked causing next command to block forever (shell thread is blocked). Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for cc7b6c7 - Browse repository at this point
Copy the full SHA cc7b6c7View commit details -
hostap: Choose necessary MbedTLS Kconfig symbols by default
MbedTLS is only used by sdk-hostap, choose the necessary Kconfig options by default instead of relying on samples. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 049fd71 - Browse repository at this point
Copy the full SHA 049fd71View commit details -
hostap: Fix Zephyr includes with latest up-merge
Zephyr has deprecated including "zephyr" directory in includes, so, all references should mandatory use "zephyr" prefix. Also, reordered the include groups. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for e440188 - Browse repository at this point
Copy the full SHA e440188View commit details -
hostap: Fix deadlock during connect
If a connect has been issued before the first connect timeout/success, then there is a deadlock as connect API holds the mutex but calls the connect status worker which tries to get mutex. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7d25d00 - Browse repository at this point
Copy the full SHA 7d25d00View commit details -
hostap: (dis)connection status: Terminate gracefully
If we get a new connection request, gracefully terminate it by sending a failure event before starting tracking of the new connection status. This also avoid a case where old work is rescheduled even though its cancelled successfully. Also, return a different status for this termination. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 01da7d9 - Browse repository at this point
Copy the full SHA 01da7d9View commit details -
hostap: Fix header file prefix
This is an internal header file. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 5166f5f - Browse repository at this point
Copy the full SHA 5166f5fView commit details -
hostap: Remove nRF Wi-Fi management
Now that nRF Wi-Fi management is merged with Zephyr's Wi-Fi management, use Zephyr's Wi-Fi management. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 8af18d1 - Browse repository at this point
Copy the full SHA 8af18d1View commit details -
hostap: wifi: MBO Pre-certification bugfixes
Support for handling MLME frames. Enable RRM support in capabilities. Support for wnm_bss_query wpa_cli cmd. Signed-off-by: Sridhar Nuvusetty <sridhar.nuvusetty@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for d69cff6 - Browse repository at this point
Copy the full SHA d69cff6View commit details -
hostap: Fix link address buffer overflow
When 802.15.4 is enabled the link address is 8, but we only allocate 6 bytes on stack causing buffer overflow. Use proper macro for the link address length and also add a length check just in case. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b40ea18 - Browse repository at this point
Copy the full SHA b40ea18View commit details -
hostap: Use the PMF setting from the user
Now that Zephyr supports taking PMF setting from the user, use that instead of hard-coding to optional. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 48d16b1 - Browse repository at this point
Copy the full SHA 48d16b1View commit details -
hostap: Fix sending terminate event for first requests
Whenever a connection/disconnection is requested, a terminated event is sent first always before sending the result event. Fix to send terminate event only if a second connection/disconnection is requested. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7bfb273 - Browse repository at this point
Copy the full SHA 7bfb273View commit details -
hostap: Remove unncessary error message
If a 802.15.4 interface is present, then this is expected and not an error, so, just silently ignore. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 2db64c4 - Browse repository at this point
Copy the full SHA 2db64c4View commit details -
hostap: Explicitly enabled CBC/CTR
If we enable OpenThread then these are disabled by default, so, enable them explicitly. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 35130e1 - Browse repository at this point
Copy the full SHA 35130e1View commit details -
hostap: Fixed the connection timeout handling,
* Since the supp_shell_connect_status is called (queued) recursively the counter of connection retries (with second interval) needs to persist between consecutive calls. Without this change the supplicant retries to connect to the AP endlessly. * Also got rid of some magic numbers. Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 11e53d4 - Browse repository at this point
Copy the full SHA 11e53d4View commit details -
hostap: Fix handling connection timeout equal to 0
When the connection timeout was 0 the code would always fail the connection. Change the condition to handle the timeout only if it is positive. By the way, simplify the conditions and unlock the mutex after modifying the shared variable. Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for e50037e - Browse repository at this point
Copy the full SHA e50037eView commit details -
hostap: Display correct link mode in "wifi status" output
Add checks to read and print the link mode correctly. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 10d785c - Browse repository at this point
Copy the full SHA 10d785cView commit details -
hostap: Add support for list_networks
Useful to know the network status. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for dad540d - Browse repository at this point
Copy the full SHA dad540dView commit details -
hostap: Implement connect and disconnect events to Zephyr
These are needed for LED support for STA sample to track WPA supplicant connection state changes and blink LEDs. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b600f8d - Browse repository at this point
Copy the full SHA b600f8dView commit details -
hostap: Add interface up check for connect
Allow connect only if interface is up. Signed-off-by: Sridhar Nuvusetty <sridhar.nuvusetty@nordicsemi.no> Signed-off-by: Sachin D Kulkarni <sachin.kulkarni@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b40bdd0 - Browse repository at this point
Copy the full SHA b40bdd0View commit details -
hostap: Mark WPA supplicant as experimental
This is needed for automated software maturity. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 5ce68ee - Browse repository at this point
Copy the full SHA 5ce68eeView commit details -
hostap: Fix duplicate (dis)connection events
Now that WPA supplicant sends events to Zephyr directly to handle AP initiated (dis)connection events, remove sending the events from Wi-Fi management wrapper to avoid sending duplicate events. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 6d27bed - Browse repository at this point
Copy the full SHA 6d27bedView commit details -
Use z_wpa_supplicant as the name space instead of zephyr_supp. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 41ab6b9 - Browse repository at this point
Copy the full SHA 41ab6b9View commit details -
hostap: Add support for WPA CLI zephyr
In Linux WPA CLI is a standalone application that uses sockets to communicate with ctrl_iface (uses Eloop), in Zephyr we have replaced sockets with direct function calls, but this introduces concurrency as we don't go through Eloop which causes instability and crashes esp. in the deinitialization path. Implement Zephyr's version of WPA CLI and control interface using socketpair UNIX style sockets, here WPA CLI can be invoked as a standard function rather than an executable. To avoid code duplication move all commands processing to a separate file that can be used by wpa_cli application and also wpa_cli_zephyr library (all other changes to wpa_cli are restored). Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 3ad3be9 - Browse repository at this point
Copy the full SHA 3ad3be9View commit details -
hostap: Make WPA CLI as passthrough
Instead of exposing limited commands using wrappers add a generic pass through WPA CLI that can take any command supported by WPA CLI. Only downside is we lose the help for each command in shell, but as this is only for internal use (WFA certification) this is not a constraint. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 1f0d9fb - Browse repository at this point
Copy the full SHA 1f0d9fbView commit details -
hostap: Use WPA CLI to interact with supplicant
Directly calling WPA supplicant APIs is error prone as it introduces concurrency, so, use WPA CLI interface to serialize them using control interface and Eloop. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for a8bfb28 - Browse repository at this point
Copy the full SHA a8bfb28View commit details -
hostap: Fix WPA2-PSK-SHA256 security
This was a typo but as its in the string for WPA CLI, went undetected. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for d985347 - Browse repository at this point
Copy the full SHA d985347View commit details -
hostap: Fix data access violation
If a sample doesn't use POSIX_API then the default POSIX_MAX_FDS are 4, but Zephyr's WPA supplicant needs at least 7, so, fix this by explicitly defining it. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 0a38ea4 - Browse repository at this point
Copy the full SHA 0a38ea4View commit details -
hostap: Remove editing support
This needs CONFIG_POSIX_API and now that we have moved to use wpa_cli_zephyr this is no longer required. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 96d486a - Browse repository at this point
Copy the full SHA 96d486aView commit details -
Use "z_wpas_" as the prefix for all internal functions to disambiduate between wpa_supplicant APIs. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7cff301 - Browse repository at this point
Copy the full SHA 7cff301View commit details -
hostap: Add interfaces hotplugging support
Using the network management events from the driver dynamically add/remove interfaces to the WPA supplicant, this ensures a better integration of driver and WPA supplicant rather than WPA supplicant assuming interface is administratively up. Default behaviour now would be for the interface to be administratively up but operationally down till the WPA supplicant associates and then interface will be operationally up. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 702cb99 - Browse repository at this point
Copy the full SHA 702cb99View commit details -
hostap: Implement channel in connect command
When switching to control interface, the code to configure channel from user to WPA supplicant has been removed, use the control interface to configure the channel. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for cf44c42 - Browse repository at this point
Copy the full SHA cf44c42View commit details -
hostap: Removed unused prototype
This was missed in cleaning up old interface. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for ad80f6b - Browse repository at this point
Copy the full SHA ad80f6bView commit details -
All these WPA cli command invocations need to be checked for return value to catch issues early. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 0e78a7a - Browse repository at this point
Copy the full SHA 0e78a7aView commit details -
hostap: Improve the security check
* Check for security instead of assuming psk means security (Handy in test for switching b/w PSK and None). * Use Enums and remove comments. * Specifically check for PSK. * Throw error if not matching any. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for f161fe2 - Browse repository at this point
Copy the full SHA f161fe2View commit details -
hostap: Fix socketpair size for control interface
Now that we are using control interface as the primary communications this is applicable for all. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for dc6035b - Browse repository at this point
Copy the full SHA dc6035bView commit details -
This was checked in by mistake. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 3a514d4 - Browse repository at this point
Copy the full SHA 3a514d4View commit details -
hostap: Increase network management stack size
This is needed esp. for "wifi status" as that makes a call all the way to Driver, and if its called from network management thread then more stack is needed. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 30a8657 - Browse repository at this point
Copy the full SHA 30a8657View commit details -
hostap: Mark Wi-Fi supported for nRF7002DK
EK support is still experimental. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for a98068b - Browse repository at this point
Copy the full SHA a98068bView commit details -
hostap: Configure maximum polling sockets
The minimum requirement for WPA supplicant is 4. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for fa64b6b - Browse repository at this point
Copy the full SHA fa64b6bView commit details -
hostap: Protect events with a mutex
In case multiple threads use this to post events to WPA supplicant. Signed-off-by: Krishna T <krishna.t@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for a570d53 - Browse repository at this point
Copy the full SHA a570d53View commit details -
hostap: Remove the dummy socket
This is now obsolete as we implement full fledged control interface. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 4be5c37 - Browse repository at this point
Copy the full SHA 4be5c37View commit details -
hostap: Add global event support
For handling interface events they need to go through global control interface. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for eb29416 - Browse repository at this point
Copy the full SHA eb29416View commit details -
Spelling mistake. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 3ef5c7e - Browse repository at this point
Copy the full SHA 3ef5c7eView commit details -
hostap: Notify WPA supplicant before removing interface
This disables all further processing in the WPA supplicant before we remove the interface. Also, add a check after interface add/remove to make sure it worked before proceeding ahead. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for a1c3fd4 - Browse repository at this point
Copy the full SHA a1c3fd4View commit details -
hostap: Fix the return value check
In case of failure set return value to avoid doing further work. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for f31adcf - Browse repository at this point
Copy the full SHA f31adcfView commit details -
These are mainly for debugging, so, use DEBUG macro. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 78bf31c - Browse repository at this point
Copy the full SHA 78bf31cView commit details -
hostap: Mark nRF9160 as supported
This is now fully supported. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for cdabb19 - Browse repository at this point
Copy the full SHA cdabb19View commit details -
hostap: Fix unused variable warning
Remove unused variable. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 53c208e - Browse repository at this point
Copy the full SHA 53c208eView commit details -
hostap: Fix hidden SSID association
Always scan for SSID's to handle hidden SSID case. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 5b86615 - Browse repository at this point
Copy the full SHA 5b86615View commit details -
hostap: Remove base64 utilities
These are currently unused in hostap, but conflict with Zephyr's implementation (duplicate function), revisit when this is actually used as the function signatures b/w hostap and Zephyr are different. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 8520eb0 - Browse repository at this point
Copy the full SHA 8520eb0View commit details -
Remove non-essential boot log messages. Signed-off-by: Sachin D Kulkarni <sachin.kulkarni@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for dd26027 - Browse repository at this point
Copy the full SHA dd26027View commit details -
hostap: Fix build failure with signal API
With upstream commit [1] when CONFIG_POSIX_API is enabled then Zephyr's header are included before the `libc` headers causing issues as Zephyr doesn't support POSIX signal implementation. Resolve this by not using POSIX_API and add a negative dependency. [1] - zephyrproject-rtos/zephyr@43110dd Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 2cb3ebe - Browse repository at this point
Copy the full SHA 2cb3ebeView commit details -
hostap: Enable POSIX_CLOCK automatically
Without this the build fails, so, should be selected automatically rather than relying on the application. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for d607c09 - Browse repository at this point
Copy the full SHA d607c09View commit details -
hostap: Make EAPoL Supplicant separate
This is a common modules used by P2P, WPA3 and Enterprise, so, it needs to be enabled with a custom config to avoid re-definitions. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7136401 - Browse repository at this point
Copy the full SHA 7136401View commit details -
hostap: Fix WPA3 PMKSA caching
WPA3 also needs to enable PMKSA caching, though the file is included but the define (IEEE8021X_EAPOL) is not passed. Due to code size (text) increase when WPA_SUPP_EAPOL is enabled, this feature is not enabled by default. If required this can be enabled explicitly by application. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 6337565 - Browse repository at this point
Copy the full SHA 6337565View commit details -
hostap: hostap: Read beacon interval and DTIM period
Read beacon interval and DTIM period as part of Wi-Fi status. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 903f817 - Browse repository at this point
Copy the full SHA 903f817View commit details -
hostap: zephyr: remove unnecessary SYS_INIT()
Commit 044ed05fe11cc2e59e1e915dc6fadcdde6bf0820 ("Make WPA CLI as passthrough") made this SYS_INIT() a no-op. It's breaking the build now that SYS_INIT function signatures are 'int callback(void)'. Remove it entirely since it does nothing. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 9e180ef - Browse repository at this point
Copy the full SHA 9e180efView commit details -
hostap: Rectify error handling while fetching connection info
While fetching connection info as part of processing the interface status command, if error is returned by driver, set the params to 0 and reset the return value, so that other params are not ignored by the caller. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 8fa056b - Browse repository at this point
Copy the full SHA 8fa056bView commit details -
hostap: Fix handling of IEs in authentication
When copying event from driver and postnig to WPA supplicant, the IE's are not copied, so, if WPA supplicant takes longer to process the event the driver frees the IEs causing invalid data to be processed by WPA supplicant. This is a common issue to all events. For now Authentication events are being affected due to WPA3-SAE taking longer to process, so, fix only Authentication events for now as a generic fix needs more work and thought. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for f95b65f - Browse repository at this point
Copy the full SHA f95b65fView commit details -
Commit f13d1c9 ("nrf_security: Remove usage of HEAP in platform.c") broke Wi-Fi security as MbedTLS calloc/free are now undefined and any allocations by MbedTLS will fail resulting in crypto failures. Fix this by setting alternatives to stdlib variants. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b4ccaff - Browse repository at this point
Copy the full SHA b4ccaffView commit details -
hostap: Add missing crypto dependencies
These were added implicitly by Zephyr, but for NS build we need to explicitly add these. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for b6e78ef - Browse repository at this point
Copy the full SHA b6e78efView commit details -
This was missed and is needed to compile with NS image. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 387ebf2 - Browse repository at this point
Copy the full SHA 387ebf2View commit details -
* Add TLS none * Enable PBKDF2 in WPA supplicant Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for add30b8 - Browse repository at this point
Copy the full SHA add30b8View commit details -
In order to get nRF7002 NS build going, we need to use PSA MbedTLS template to get entropy working. Rather than having a single set of options which makes dependency management tough, have a separate entry for PSA based MbedTLS which is enabled by for NS variants only. Also, don't use MbedTLS APIs for entropy, instead use the Zephyr APIs that can work for both NS and S builds. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 766f2a4 - Browse repository at this point
Copy the full SHA 766f2a4View commit details -
hostap: hostap: Read peer TWT capability
Update peer TWT capability from connection info. Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 75255ab - Browse repository at this point
Copy the full SHA 75255abView commit details -
hostap: Impelment blocking disconnect
This is important for applications relying on WPA supplicant being disconnected after the call to disconnect. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 1999456 - Browse repository at this point
Copy the full SHA 1999456View commit details -
hostap: Send disconnect complete
ACK the disconnect command with disconnect complete. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for f777f97 - Browse repository at this point
Copy the full SHA f777f97View commit details -
hostap: Notify connection timeout
Raise connection timed out event to net management queue. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 0be6df0 - Browse repository at this point
Copy the full SHA 0be6df0View commit details -
Previously for some reason we have removed logs as they were causing issues, but that is not true anymore. So, add back all error logs. Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 0c8cfc8 - Browse repository at this point
Copy the full SHA 0c8cfc8View commit details -
hostap: Process only Wi-Fi interface events
Use the pattern matching on interface names to filter only Wi-Fi interfaces. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 26c1ca6 - Browse repository at this point
Copy the full SHA 26c1ca6View commit details -
hostap: crypto: Remove remnants of mbedtls entropy usage
Remove remnants of mbedtls entropy usage. Entropy is now accessed through zephyr APIs so enabling MBEDTLS_ENTROPY_C is no longer needed. Without MBEDTLS_ENTROPY_C option there is no reason to change the default configuration value of MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG. NCSDK-22096 Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 693f28c - Browse repository at this point
Copy the full SHA 693f28cView commit details -
hostap: Generate supplicant ready event
Generate supplicant ready event once the control connection between cli and supplicant is setup. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for ce489f0 - Browse repository at this point
Copy the full SHA ce489f0View commit details -
hostap: Add an option to disable all debugging
This significantly saves flash size that is much needed for Matter apps. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for f7d9233 - Browse repository at this point
Copy the full SHA f7d9233View commit details -
hostap: Display correct key mgmt algo
Key mgmt value being passed to wpas_key_mgmt_to_zephyr is the combination (bitwise OR) of all configured security modes for an SSID while the expected input is the security mode negotiated for the association. This results in wpas_key_mgmt_to_zephyr failing to identify correct security mode and falling through to the default case (UNKNOWN). Security mode which is being used by the current association is stored in supplicant interface structure. Refer to this(struct wpa_supplicant) instead of network configuration data (struct wpa_ssid), for reading security mode. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 2ce1165 - Browse repository at this point
Copy the full SHA 2ce1165View commit details -
hostap: Fix memory leak for connection info
Free the memory once its done. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 9b6031d - Browse repository at this point
Copy the full SHA 9b6031dView commit details -
hostap: Register as a Wi-Fi network manager
Register WPA supplicant as a Wi-Fi network manager. Also fix a memory leak while handling the error patch in remove interface. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 4053d19 - Browse repository at this point
Copy the full SHA 4053d19View commit details -
Divide them cleanly in to private and public. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for d462f38 - Browse repository at this point
Copy the full SHA d462f38View commit details -
hostap: Implement offloaded Wi-Fi management ops
These ops are not implemented by the WPA supplicant and too much of a hassle to implement a pass through all the way to the driver, so, we use the offloaded APIs registered by the driver and make direct calls. Though offloaded APIs are are registered as long as the interface is managed by the WPA supplicant, Wi-Fi management will not invoke them directly. But if WPA supplicant is disabled (Scan only mode), then Wi-Fi management invokes them directly. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for a71238e - Browse repository at this point
Copy the full SHA a71238eView commit details -
Add support for newly added scan parameters structure handling. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for e878041 - Browse repository at this point
Copy the full SHA e878041View commit details -
hostap: Fix the define for EAP WSC
This is not a user configuration option and is automatically selected by CONFIG_WPS, hence no CONFIG_ prefix. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 3a1baf4 - Browse repository at this point
Copy the full SHA 3a1baf4View commit details -
hostap: Include BSS max idle timeout in association request
As per 802.11-2020: 11.21.13 BSS max idle period management "If dot11WirelessManagementImplemented is true, dot11BSSMaxIdlePeriod is nonzero and dot11BSSMaxIdlePeriodIndicationByNonAPSTA is true, then a non-S1G non-AP STA shall include a BSS Max Idle Period element in the (Re)Association Request frame. If the BSS Max Idle Period element is present in the (Re)Association Request frame received by a non-S1G AP that has dot11BSSMaxIdlePeriodIndicationByNonAPSTA equal to true, then the non-S1G AP may choose the non-AP STA’s preferred maximum idle period. The non-S1G AP indicates its chosen value to the non-S1G STA in the (Re)Association Response frame." Add BSS max idle timeout (default 300s) in association request. Use CONFIG_BSS_MAX_IDLE_TIME to modify this timeout at build time. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no> Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for acaa02e - Browse repository at this point
Copy the full SHA acaa02eView commit details -
hostap: zephyr: Kconfig: Fix PSA dependency on random numbers
Fix PSA dependency on random number support. Random number generated is wanted, instead of a specific PRNG algorithm. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 115d76e - Browse repository at this point
Copy the full SHA 115d76eView commit details -
hostap: zephyr: kconfig: Enable AES key type for AES block cipher sup…
…port Enable the PSA key type which enables AES block cipher support. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for c906d71 - Browse repository at this point
Copy the full SHA c906d71View commit details -
modules: Add hostap build support
Include hostap module files. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 3124289 - Browse repository at this point
Copy the full SHA 3124289View commit details -
manifest: sdk-hostap: Update to snapshot tag
This snapshot tag is taken before the force push to re-write history to include nrf sauce tags as per [1], this will be over-written with the force pushed commit in subsequent commits, see [2] for details. [1] - https://nordicsemi.atlassian.net/wiki/spaces/NCS/pages/108201225/Pull+Requests [2] - https://nordicsemi.atlassian.net/wiki/spaces/NCS/pages/108233364/Synchronization#Synchronization-RebasingOSStrees Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 7baefcf - Browse repository at this point
Copy the full SHA 7baefcfView commit details -
manifest: sdk-hostap: Pull upmerge prep changes
This moves the Zephyr only code to sdk-nrf, and keeps Zephyr changes part of OSS in sdk-hostap in preparation for upmerge. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 9dd023f - Browse repository at this point
Copy the full SHA 9dd023fView commit details -
This code was never run through checkpatch, so, fix the compliance. Also, Zephyr wpa_cli relies on macro with flow control, so, add an exception to checkpatch. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 9e4a37d - Browse repository at this point
Copy the full SHA 9e4a37dView commit details -
modules: hostap: Fix missing license headers
This wasn't caught till now as there was no CI in sdk-hostap. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Configuration menu - View commit details
-
Copy full SHA for 2fa4b60 - Browse repository at this point
Copy the full SHA 2fa4b60View commit details