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: Pull nRF70 upstream support #1939

Open
wants to merge 51 commits into
base: main
Choose a base branch
from

Commits on Aug 21, 2024

  1. [nrf fromtree] manifest: update hal_nordic revision to integrate nrfx…

    … 3.6.0
    
    New nrfx version contains support
    for nRF54L20 Eng A and nRF9230 Eng B devices.
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit 8c9ac0038e17bfb9d63e724eb59af3c7338609b9)
    nika-nordic authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    a61c4ef View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] dts: bindings: wifi: Add nRF70 Wi-Fi support

    Add necessary bindings for the nRF70 Wi-Fi chips from Nordic
    semiconductors ASA.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 1d18144)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    7817e9a View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] manifest: hal_nordic: Pull nRF70 OSAL driver

    This pulls in OS agnostic parts of the nRF70 Wi-Fi driver.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit d1f2e7d)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    4157281 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] drivers: wifi: Add nRF70 Wi-Fi driver

    Driver for Nordic nRF70 Wi-Fi6 companion chipset, depends on
    hal_nordic/nrf_wifi for OS agnostic part of the driver.
    
    This supports (Q)SPI interface to communicate from host to chip.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 638ce2f)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    a6e446a View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] boards: shields: Add nRF70 series EKs (Evaluation kits)

    These shields in the Arduino form factor can be mounted on supported
    boards and can provide Wi-Fi6 capability.
    
    Base shield is nRF7002, with variants as nRF7001 (2.4GHz only) and
    nRF7000 (dual band scan only).
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 051c63f)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    e9014e7 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] samples: net: wifi: Fix scan results dropping

    Wi-Fi shell prints scan results to the console taking time and this puts
    pressure on net_mgmt Queue, so, increase both timeout and Queue depth to
    handle crowded Wi-Fi channel (~200 APs).
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit bf4f51a)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    16f997c View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] samples: net: wifi: Fix stack sizes

    Wi-Fi sample is stack heavy, so, by default increase the stack sizes to
    work with any driver, esp. those use WPA supplicant like nRF Wi-Fi.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 65bdf65)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    11788c6 View commit details
    Browse the repository at this point in the history
  8. Revert "[nrf noup] samples: net: Add support for nRF700x"

    This reverts commit a1d4d7b.
    
    Now that nRF70 is upstream, this can be reverted.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    ace4cdd View commit details
    Browse the repository at this point in the history
  9. [nrf noup] samples: lwm2m_client: Remve nRF70 selection

    nrf-squash! [nrf noup] samples: lwm2m_client: Add support for nRF91x and nRF700x
    
    This is now automated based on board.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    c5108d1 View commit details
    Browse the repository at this point in the history
  10. [nrf noup] drivers: wifi: nrfwifi: Workaround for build

    External flash support is still WIP, so, to get sysbuild working add
    dummy Kconfig options.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    c1d8dc0 View commit details
    Browse the repository at this point in the history
  11. [nrf noup] net: conn_mgr: Rename WPA supplicant

    nrf-squash! [nrf noup] net: Increase connection manager stack size
    
    Migrate to use Zephyr upstream WPA supplicant.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    d2ead5c View commit details
    Browse the repository at this point in the history
  12. [nrf fromtree] hostap: add crypto backend alt for enterprise and DPP

    Add kconfig CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT to get more mbedtls
    functionality for enterprise and DPP.
    Split cmake sources related to hostap SME and crypto backend.
    Default backend CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO use internal crypto
    and some mbedtls apis.
    Backend CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT use most mbedtls apis
    and PSA apis, except some apis no longer supported in mbedtls 3.x,
    or called in the middle of hostap and mbedtls.
    
    Signed-off-by: Fengming Ye <[email protected]>
    (cherry picked from commit 6f0c836)
    fengming-ye authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    86adbd9 View commit details
    Browse the repository at this point in the history
  13. [nrf fromtree] hostap: add PSA apis support for mbedtls 3.x

    Add Platform Secure Architecture support support to use
    HW acceleration, which needs to be called under PSA driver wrapper
    in mbedtls 3.x.
    
    Signed-off-by: Fengming Ye <[email protected]>
    (cherry picked from commit d3b3aa1)
    fengming-ye authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    0d93643 View commit details
    Browse the repository at this point in the history
  14. [nrf fromtree] hostap: add DPP support

    Add kconfig and cmake to support DPP (Easy Connect).
    
    Signed-off-by: Fengming Ye <[email protected]>
    (cherry picked from commit 271d708)
    fengming-ye authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    095467f View commit details
    Browse the repository at this point in the history
  15. [nrf noup] modules: hostap: Use nRF security

    In NCS to leverage HW acceleration, use nRF security.
    
    Also, fix Kconfig warnings in NCS compliance for CRYPTO_ALT.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    d44eff8 View commit details
    Browse the repository at this point in the history
  16. [nrf fromtree] net: wifi: split wifi interface into STA and uAP

    Split wifi interface into station mode and soft-AP mode, as there may be
    station and soft-AP two interfaces that work concurrently.
    
    Signed-off-by: Maochen Wang <[email protected]>
    (cherry picked from commit 7621690)
    MaochenWang1 authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    0064f3a View commit details
    Browse the repository at this point in the history
  17. [nrf fromtree] modules: hostap: Fix check for iface up

    We only need the interface to be administratively up, the operationl
    status is managed by the WPA supplicant.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 650227d)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    7700c73 View commit details
    Browse the repository at this point in the history
  18. [nrf fromtree] modules: hostap: Fix interface addition

    WPA supplicant as a network manager monitors interface events and
    registers to the Wi-Fi NM module, so, adding a check for NM type before
    registering the interface is wrong.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 0e6db9c)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    03e19c0 View commit details
    Browse the repository at this point in the history
  19. [nrf fromtree] modules: hostap: Fix SoF

    Due to recent changes to hostap, the stack usage is increased, so,
    increase the stack size to fix SoF.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 176a47c)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    9a0955a View commit details
    Browse the repository at this point in the history
  20. [nrf fromtree] hostap: remove CONFIG_NO_PBKDF2 and CONFIG_NO_CONFIG_B…

    …LOBS in cmake
    
    Remove CONFIG_NO_PBKDF2 and CONFIG_NO_CONFIG_BLOBS definition
    and let them be decided in kconfig.
    CONFIG_NO_PBKDF2 is default y when crypto backend is
    WIFI_NM_WPA_SUPPLICANT_CRYPTO_NONE.
    CONFIG_NO_CONFIG_BLOBS is default y when both DPP and enterprise disable.
    
    Signed-off-by: Fengming Ye <[email protected]>
    (cherry picked from commit bdb0768)
    fengming-ye authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    ac55876 View commit details
    Browse the repository at this point in the history
  21. [nrf fromtree] dts: arm: nordic: nrf5340: instantiate regulators

    Instantiate all available regulators: VREGMAIN, VREGRADIO and VREGH.
    
    Signed-off-by: Gerard Marull-Paretas <[email protected]>
    (cherry picked from commit 7feacc6)
    gmarull authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    e0a8a94 View commit details
    Browse the repository at this point in the history
  22. [nrf fromtree] dts: bindings: regulator: add nordic,nrf5[2]x-regulato…

    …r[-hv]
    
    Some Nordic SoCs, like nRF52 contain an internal regulator for the main
    SoC supply. Depending on the SoC, the regulator can have multiple
    configurations (e.g. single/double stage), which mainly depends on
    supporting "high-voltage" mode or not (VDDH pin supply). This patch adds
    bindings for nRF5X regulator and nRF52X HV regulator.
    
    Signed-off-by: Gerard Marull-Paretas <[email protected]>
    (cherry picked from commit 02a30c1)
    gmarull authored and krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    01f4bb7 View commit details
    Browse the repository at this point in the history
  23. [nrf noup] nrf54: Disable Wi-Fi tests

    nRF70 Wi-Fi upstream doesn't yet support these boards.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    b914537 View commit details
    Browse the repository at this point in the history
  24. [nrf fromtree] drivers: wifi: nrf: Fix include path for version

    The version header is generated during build and generated path included
    already has "zephyr" directory.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 8c3f1cf)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    edeb34f View commit details
    Browse the repository at this point in the history
  25. [nrf fromtree] drivers: wifi: nrf: Fix build error in utils

    When Wi-Fi utils is enabled it causes build error due to missing rename
    in a couple of places.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit bf4d8cc)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    54f403a View commit details
    Browse the repository at this point in the history
  26. [nrf fromtree] modules: hostap: Fix interface registration to NM

    Wi-Fi shell now uses _sta/_ap APIs to getch specific inteface types, so,
    by default register as a Station.
    
    This needs more work to handle multiple modes and mode switching.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 3409f16)
    krish2718 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    b413939 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. [nrf noup] drivers: wifi: Add kconfig option to disable WMM feature

    [SHEL-2054] Adding a kconfig option for WMM.
    By default it will be enabled. If user needs
    to disable it, set it as n.
    
    Tagged as "noup" because I had to fix a conflict because of another
    "noup".
    
    Upstream PR: zephyrproject-rtos/zephyr#76754
    
    Signed-off-by: Kapil Bhatt <[email protected]>
    kapbh authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    b2ee8e8 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] modules: hostap: fix hostap compile error and support …

    …enterprise
    
    Fix compile error when enable enterprise security mode.
    
    Signed-off-by: Maochen Wang <[email protected]>
    (cherry picked from commit 001ac39)
    MaochenWang1 authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    534b193 View commit details
    Browse the repository at this point in the history
  3. [nrf noup] modules: hostap: Fix build errors

    Include paths all the way down to the file with common header filenames
    cause compilation errors, e.g., "common.h" can be present and used by
    multiple modules, temporarily remove this as this is mainly for
    CYRPTO_ALT, need to fix this properly.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    d76dcb3 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] modules: hostap: Fix MbedTLS TLS

    TLS is only for Enterprise, so, move to enterprise macro.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 515f1fe)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    e51c372 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] west: hostap: update hostap revision

    Update hostap revision for bug fixes.
    
    Signed-off-by: Fengming Ye <[email protected]>
    (cherry picked from commit 24773a1)
    fengming-ye authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    13df384 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] drivers: serial: nrf: add default value for frame time…

    …out cfg
    
    This is needed to avoid warnings about uninitialized
    structure member, which was added in nrfx 3.6.
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit 4312805)
    nika-nordic authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    584d24c View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] boards: nordic: add nrf7002dk

    Add nrf7002dk board.
    
    Signed-off-by: Bjarki Arge Andreasen <[email protected]>
    (cherry picked from commit 12559fe)
    bjarki-andreasen authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    4f255cd View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] boards: nordic: nrf7002dk: add docs

    Add documentation to nrf7002dk board
    
    Signed-off-by: Bjarki Arge Andreasen <[email protected]>
    (cherry picked from commit e8f37c7)
    bjarki-andreasen authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    d4cd761 View commit details
    Browse the repository at this point in the history
  9. [nrf noup] nrf70_NS: Disable all tests

    nRF70 Wi-Fi upstream doesn't yet support NS variants.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit edd656012c076f6fffaaf615dcc7d2d075f38fd0)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    dc51064 View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] modules: hostap: Convert WPA cli to selectable option

    This should be configurable by applications in case a full CLI interface
    to the WPA supplicant is needed.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 6b79e34)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    ea833c2 View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] manifest: Update hostap to remove els_pkc header file

    Remove wpa_supp_els_pkc_mbedtls_config.h, as this header file
    contains PSA_CRYPTO_DRIVER_ELS_PKC, and ELS-PKC is a proprietary
    component of nxp to provides HW acceleration for psa-apis.
    
    Signed-off-by: Maochen Wang <[email protected]>
    (cherry picked from commit 6d01073)
    MaochenWang1 authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    4b9969d View commit details
    Browse the repository at this point in the history
  12. [nrf fromtree] manifest: hostap: Pull fix for SAP

    SAP build fails due to missing WPA supplicant driver OP.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 69ad893)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    9840187 View commit details
    Browse the repository at this point in the history
  13. [nrf fromtree] manifest: Update hal_nordic with nonsecure PPIB fix

    Secure PPIB instances were accessed even when building for nonsecure
    
    Signed-off-by: Herman Berget <[email protected]>
    (cherry picked from commit af31464)
    hermabe authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    cc21627 View commit details
    Browse the repository at this point in the history
  14. [nrf fromtree] manifest: hal_nordic: Pull latest Wi-Fi OSAL

    Pull latest OSAL code including FW.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 2ec8bfd)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    ab1b947 View commit details
    Browse the repository at this point in the history
  15. [nrf fromtree] drivers: wifi: Add kconfig option to disable WMM feature

    [SHEL-2054] Adding a kconfig option for WMM.
    By default it will be enabled. If user needs
    to disable it, set it as n.
    
    Signed-off-by: Kapil Bhatt <[email protected]>
    (cherry picked from commit 37a98bf)
    kapbh authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    c3a54bd View commit details
    Browse the repository at this point in the history
  16. [nrf fromtree] drivers: wifi: Reset interface statistics data

    [SHEL-2542] When reset command is called this will
    reset all statistics including firmware and host.
    
    Signed-off-by: Kapil Bhatt <[email protected]>
    (cherry picked from commit e085d44)
    kapbh authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    6181cc1 View commit details
    Browse the repository at this point in the history
  17. [nrf fromtree] nrf_wifi: Remove dependency on OSAL layer handle

    Removes the requirement for the different layers in the OS agnostic
    parts of the driver having to maintain a handle to the OS interface
    layer in order to call the OS interface calls. The OS interface layer
    now maitains the handle to OS-specific ops internally and invokes the
    appropriate functions.
    
    Fixes SHEL-2639
    
    Signed-off-by: Sachin D Kulkarni <[email protected]>
    (cherry picked from commit 1f49438)
    sachinthegreen authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    77ee238 View commit details
    Browse the repository at this point in the history
  18. [nrf fromtree] drivers: wifi: Option for PS data retrieval

    SHEL-2947] Option to set either PS-poll or QoS null frame based
    power save data retrieval mechanism.
    
    Signed-off-by: Ajay Parida <[email protected]>
    (cherry picked from commit 41e29c6)
    ajayparida authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    985a031 View commit details
    Browse the repository at this point in the history
  19. [nrf fromtree] drivers: wifi: Add tx packets drop count calculation

    [SHEL-1063] Add calculation of drop packets in tx due to
    lack of buffer memory.
    
    Signed-off-by: Kapil Bhatt <[email protected]>
    (cherry picked from commit e5a665d)
    kapbh authored and krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    55c9e13 View commit details
    Browse the repository at this point in the history
  20. [nrf fromtree] drivers: wifi: Fix QSPI clock dividers

    For less than 32MHz using HFCLK192M, /2 divider should be used and only
    for Anamoly159 /1 divider should be used.
    
    Without this fix 8MHz clock in DTS uses 16MHz clock.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit ed58af2)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    0385e01 View commit details
    Browse the repository at this point in the history
  21. [nrf fromtree] drivers: wifi: Wait for clock divider to take effect

    This is a fix from QSPI-NOR driver to wait for clock divider change to
    be applied and take effect.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit eea8f67)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    5d76676 View commit details
    Browse the repository at this point in the history
  22. [nrf fromtree] maintainers: Add colloborators for nRF Wi-Fi

    Colloborators for both Wi-Fi native driver and Wi-Fi driver in
    hal_nordic.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit aef70cb)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    b287462 View commit details
    Browse the repository at this point in the history
  23. [nrf fromtree] drivers: wifi: Fix duplicate file inclusion

    If Wi-Fi management is enabled, then independent of modes scan
    functionality is always included.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 464cc9e)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    12762de View commit details
    Browse the repository at this point in the history
  24. [nrf fromtree] drivers: wifi: Fix monitor mode handling

    Monitor mode relies on core Wi-Fi management functions, so, the file
    should be included for both system and system with raw modes.
    
    Fix this by adding a hidden symbol.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 56055ac)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    085a078 View commit details
    Browse the repository at this point in the history
  25. [nrf fromtree] drivers: wifi: Fix AP mode build

    Pass the AP mode configuration based on Zephyr's Kconfig to the OS
    agnostic code.
    
    Signed-off-by: Chaitanya Tata <[email protected]>
    (cherry picked from commit 22a1846)
    krish2718 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    19c9628 View commit details
    Browse the repository at this point in the history