Skip to content
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

Merged
merged 110 commits into from
Aug 1, 2023
Merged

Commits on Aug 1, 2023

  1. 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>
    2 people authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b2b1aec View commit details
    Browse the repository at this point in the history
  2. hostap: Fix build error (#4)

    The file was removed but was still included.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    123c196 View commit details
    Browse the repository at this point in the history
  3. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    4d4046b View commit details
    Browse the repository at this point in the history
  4. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    94367f0 View commit details
    Browse the repository at this point in the history
  5. 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>
    Damian-Nordic authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    596dd0b View commit details
    Browse the repository at this point in the history
  6. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    c78fb47 View commit details
    Browse the repository at this point in the history
  7. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    dd23915 View commit details
    Browse the repository at this point in the history
  8. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b831efe View commit details
    Browse the repository at this point in the history
  9. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7459df4 View commit details
    Browse the repository at this point in the history
  10. hostap: Remove display scan

    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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e77cfd9 View commit details
    Browse the repository at this point in the history
  11. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    8f75d5f View commit details
    Browse the repository at this point in the history
  12. hostap: Fix WPA CLI build

    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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7280a76 View commit details
    Browse the repository at this point in the history
  13. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    77d2633 View commit details
    Browse the repository at this point in the history
  14. hostap: Fix the WPA_SUPP help

    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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    387d012 View commit details
    Browse the repository at this point in the history
  15. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    71b7961 View commit details
    Browse the repository at this point in the history
  16. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    5eb102d View commit details
    Browse the repository at this point in the history
  17. hostap: Support signal polling

    Add support to handle signal polling requests from application.
    
    Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f4773ff View commit details
    Browse the repository at this point in the history
  18. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a2851bd View commit details
    Browse the repository at this point in the history
  19. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e2e6bb9 View commit details
    Browse the repository at this point in the history
  20. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    9c765bd View commit details
    Browse the repository at this point in the history
  21. 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>
    ajayparida authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    6ad50c1 View commit details
    Browse the repository at this point in the history
  22. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    bd554bd View commit details
    Browse the repository at this point in the history
  23. hostap: Fix mutex unlock

    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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    cc7b6c7 View commit details
    Browse the repository at this point in the history
  24. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    049fd71 View commit details
    Browse the repository at this point in the history
  25. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e440188 View commit details
    Browse the repository at this point in the history
  26. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7d25d00 View commit details
    Browse the repository at this point in the history
  27. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    01da7d9 View commit details
    Browse the repository at this point in the history
  28. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    5166f5f View commit details
    Browse the repository at this point in the history
  29. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    8af18d1 View commit details
    Browse the repository at this point in the history
  30. 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>
    sr1dh48r authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d69cff6 View commit details
    Browse the repository at this point in the history
  31. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b40ea18 View commit details
    Browse the repository at this point in the history
  32. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    48d16b1 View commit details
    Browse the repository at this point in the history
  33. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7bfb273 View commit details
    Browse the repository at this point in the history
  34. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    2db64c4 View commit details
    Browse the repository at this point in the history
  35. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    35130e1 View commit details
    Browse the repository at this point in the history
  36. 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>
    markaj-nordic authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    11e53d4 View commit details
    Browse the repository at this point in the history
  37. 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>
    Damian-Nordic authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e50037e View commit details
    Browse the repository at this point in the history
  38. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    10d785c View commit details
    Browse the repository at this point in the history
  39. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    dad540d View commit details
    Browse the repository at this point in the history
  40. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b600f8d View commit details
    Browse the repository at this point in the history
  41. 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>
    sachinthegreen authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b40bdd0 View commit details
    Browse the repository at this point in the history
  42. hostap: Mark WPA supplicant as experimental

    This is needed for automated software maturity.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    5ce68ee View commit details
    Browse the repository at this point in the history
  43. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    6d27bed View commit details
    Browse the repository at this point in the history
  44. hostap: Rename the namespace

    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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    41ab6b9 View commit details
    Browse the repository at this point in the history
  45. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3ad3be9 View commit details
    Browse the repository at this point in the history
  46. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    1f0d9fb View commit details
    Browse the repository at this point in the history
  47. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a8bfb28 View commit details
    Browse the repository at this point in the history
  48. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d985347 View commit details
    Browse the repository at this point in the history
  49. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    0a38ea4 View commit details
    Browse the repository at this point in the history
  50. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    96d486a View commit details
    Browse the repository at this point in the history
  51. hostap: Fix namespaces

    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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7cff301 View commit details
    Browse the repository at this point in the history
  52. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    702cb99 View commit details
    Browse the repository at this point in the history
  53. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    cf44c42 View commit details
    Browse the repository at this point in the history
  54. hostap: Removed unused prototype

    This was missed in cleaning up old interface.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    ad80f6b View commit details
    Browse the repository at this point in the history
  55. hostap: Check return value

    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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    0e78a7a View commit details
    Browse the repository at this point in the history
  56. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f161fe2 View commit details
    Browse the repository at this point in the history
  57. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    dc6035b View commit details
    Browse the repository at this point in the history
  58. hostap: Indent using tabs

    This was checked in by mistake.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3a514d4 View commit details
    Browse the repository at this point in the history
  59. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    30a8657 View commit details
    Browse the repository at this point in the history
  60. hostap: Mark Wi-Fi supported for nRF7002DK

    EK support is still experimental.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a98068b View commit details
    Browse the repository at this point in the history
  61. hostap: Configure maximum polling sockets

    The minimum requirement for WPA supplicant is 4.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    fa64b6b View commit details
    Browse the repository at this point in the history
  62. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a570d53 View commit details
    Browse the repository at this point in the history
  63. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    4be5c37 View commit details
    Browse the repository at this point in the history
  64. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    eb29416 View commit details
    Browse the repository at this point in the history
  65. hostap: Fix a typo

    Spelling mistake.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3ef5c7e View commit details
    Browse the repository at this point in the history
  66. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a1c3fd4 View commit details
    Browse the repository at this point in the history
  67. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f31adcf View commit details
    Browse the repository at this point in the history
  68. hostap: Decrease logs

    These are mainly for debugging, so, use DEBUG macro.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    78bf31c View commit details
    Browse the repository at this point in the history
  69. hostap: Mark nRF9160 as supported

    This is now fully supported.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    cdabb19 View commit details
    Browse the repository at this point in the history
  70. hostap: Fix unused variable warning

    Remove unused variable.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    53c208e View commit details
    Browse the repository at this point in the history
  71. hostap: Fix hidden SSID association

    Always scan for SSID's to handle hidden SSID case.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    5b86615 View commit details
    Browse the repository at this point in the history
  72. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    8520eb0 View commit details
    Browse the repository at this point in the history
  73. hostap: Clean boot log

    Remove non-essential boot log messages.
    
    Signed-off-by: Sachin D Kulkarni <sachin.kulkarni@nordicsemi.no>
    sachinthegreen authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    dd26027 View commit details
    Browse the repository at this point in the history
  74. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    2cb3ebe View commit details
    Browse the repository at this point in the history
  75. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d607c09 View commit details
    Browse the repository at this point in the history
  76. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7136401 View commit details
    Browse the repository at this point in the history
  77. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    6337565 View commit details
    Browse the repository at this point in the history
  78. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    903f817 View commit details
    Browse the repository at this point in the history
  79. 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>
    mbolivar-nordic authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    9e180ef View commit details
    Browse the repository at this point in the history
  80. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    8fa056b View commit details
    Browse the repository at this point in the history
  81. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f95b65f View commit details
    Browse the repository at this point in the history
  82. hostap: Fix MbedTLS HEAP

    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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b4ccaff View commit details
    Browse the repository at this point in the history
  83. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b6e78ef View commit details
    Browse the repository at this point in the history
  84. hostap: Enable SuiteB

    This was missed and is needed to compile with NS image.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    387ebf2 View commit details
    Browse the repository at this point in the history
  85. hostap: Fix no crypto build

    * Add TLS none
    * Enable PBKDF2 in WPA supplicant
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    add30b8 View commit details
    Browse the repository at this point in the history
  86. hostap: Switch to PSA Kconfig

    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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    766f2a4 View commit details
    Browse the repository at this point in the history
  87. hostap: hostap: Read peer TWT capability

    Update peer TWT capability from connection info.
    
    Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
    ajayparida authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    75255ab View commit details
    Browse the repository at this point in the history
  88. 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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    1999456 View commit details
    Browse the repository at this point in the history
  89. hostap: Send disconnect complete

    ACK the disconnect command with disconnect complete.
    
    Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f777f97 View commit details
    Browse the repository at this point in the history
  90. hostap: Notify connection timeout

    Raise connection timed out event to net management queue.
    
    Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    0be6df0 View commit details
    Browse the repository at this point in the history
  91. hostap: Add error logs

    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>
    Krishna T authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    0c8cfc8 View commit details
    Browse the repository at this point in the history
  92. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    26c1ca6 View commit details
    Browse the repository at this point in the history
  93. 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>
    joerchan authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    693f28c View commit details
    Browse the repository at this point in the history
  94. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    ce489f0 View commit details
    Browse the repository at this point in the history
  95. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f7d9233 View commit details
    Browse the repository at this point in the history
  96. 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>
    rado17 authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    2ce1165 View commit details
    Browse the repository at this point in the history
  97. hostap: Fix memory leak for connection info

    Free the memory once its done.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    9b6031d View commit details
    Browse the repository at this point in the history
  98. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    4053d19 View commit details
    Browse the repository at this point in the history
  99. hostap: Re-arrange functions

    Divide them cleanly in to private and public.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d462f38 View commit details
    Browse the repository at this point in the history
  100. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    a71238e View commit details
    Browse the repository at this point in the history
  101. hostap: Fix the build failure

    Add support for newly added scan parameters structure handling.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e878041 View commit details
    Browse the repository at this point in the history
  102. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3a1baf4 View commit details
    Browse the repository at this point in the history
  103. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    acaa02e View commit details
    Browse the repository at this point in the history
  104. 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>
    joerchan authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    115d76e View commit details
    Browse the repository at this point in the history
  105. 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>
    joerchan authored and krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    c906d71 View commit details
    Browse the repository at this point in the history
  106. modules: Add hostap build support

    Include hostap module files.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3124289 View commit details
    Browse the repository at this point in the history
  107. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7baefcf View commit details
    Browse the repository at this point in the history
  108. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    9dd023f View commit details
    Browse the repository at this point in the history
  109. hostap: Checkpatch fixes

    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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    9e4a37d View commit details
    Browse the repository at this point in the history
  110. 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>
    krish2718 committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    2fa4b60 View commit details
    Browse the repository at this point in the history