Skip to content

Conversation

@karun2796
Copy link
Contributor

Update nrf_wifi for disabling priority window for scan.

Upstream PR #: 83104

SeppoTakalo and others added 30 commits December 5, 2024 12:16
… lost

Test a scenario where Ack is received but the actual response
is not coming.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 120aabb)
(cherry picked from commit 98c71f7)
Add testcases for testing client's retry behaviour.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 5559a52)
(cherry picked from commit f2a3014)
Add testcase where sending Ack to incomming Confirmable message fails.
This should be reported to application as now the server is unaware
that transmission have succeeded, so we cannot thread it as success.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit fc51fa4)
(cherry picked from commit 4921313)
… another fails

CoAP client should be able to push data through functioning socket
while another sockets is failing or reporting poll() errors.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 237b26c)
(cherry picked from commit 0bfec6c)
Add test for ongoing observation and cancellation.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 05a6ba6)
(cherry picked from commit 09d0ed2)
When server responds with CoAP RESET, we should inform the
client and stop the request.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 107dc9b)
(cherry picked from commit f529f9f)
… on response

When response is received and handled, don't just clear the structure
but instead mark it as ongoing=false.
So if we later on receive a duplicate response for it, we can still
respond with Ack or Rst.

This is achieved by using release_internal_request() when we don't
expect any response for it and reset_internal_request() when we really
fill up a new request.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 41ee35a)
(cherry picked from commit fe6f367)
Incomming Message-ID is already parsed, use it as a parameter to
get_request_with_mid().

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 7b0cce4)
(cherry picked from commit 557277c)
If our internal structure is cleared, don't match tokens.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 934c74f)
(cherry picked from commit fbff8a9)
When response is already handled, don't forward anymore responses
to the client application.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit a1368a7)
(cherry picked from commit 134887a)
Return the -errno when zsock_sendto() or zsock_recvfrom() fails, so
rest of the code can deal with return values, instead of separately
comparing errno and return value.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 48434a3)
(cherry picked from commit bd97c51)
…esponding with Ack

Even if we receive duplicate confirmable message, we should still
respond with the Ack. Just don't deliver the second callback.

This is achieved by moving the MID deduplication to after Ack handling.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit c0eb260)
(cherry picked from commit f52d411)
…ted to callback

When the client fails when parsing the response and we stop proceeding,
we should report that to the application.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit f72d634)
(cherry picked from commit 1d030fc)
poll() only for sockets that have traffic ongoing or have some lifetime
left.
On socket failures during a poll(), stop listening for the socket.
Application can recover by reconnecting the socket.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit f0c6efe)
(cherry picked from commit bb3b737)
Add a new API to cancel just one, or mathing requests,
instead of cancelling all ongoing requests.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit b3f3bce)
(cherry picked from commit 322f1fc)
…wM2M context

The pull context LwM2M client's set_socketoptions callback is currently
unused and can't be set by a user. Add a public API to set the
pull context's client's set_socketoptions callback.

Signed-off-by: Andi Gerl <[email protected]>
(cherry picked from commit 9c24214)
(cherry picked from commit 5682cb7)
Use real-time scheduler with 100x speedup, so timeouts are
accurate enough, but still fast for tests to run.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 34a6d5a)
(cherry picked from commit 0054b8b)
Refactor tests to be a bit shorter, so its easier to read
and copy-paste for a new testcase

All idioms like "ret = somecall(); zasser.." are replaced with just
"zassert_ok(some_call());"

Commonly used structures are global and initialized once.

To avoid cross-test side-effects, suite_after-function is added
to cleanup all requests.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit d64748c)
(cherry picked from commit 142a2e7)
Add test for sending multiple non-confirmable requests.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 23345d2)
(cherry picked from commit 7ce2b50)
When waiting for response after receiving the empty Ack, client
actually used way too timeout.
CoAP timeout only holds the timeout value in ms. t0 is the starting time.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 6c16966)
(cherry picked from commit bbd0098)
Non-confirmable CoAP requests need lifetime tracking as well
so we can free the structure after a timeout.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 2066cf6)
(cherry picked from commit e102aff)
CoAP client does not modify any of the members, so
change all pointers to const.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit bc4f026)
(cherry picked from commit f995b7d)
…imeouts

Introduced few Kconfigs that allow to change default values
of MLE child timeout and child supervision timeouts.

Upstream PR #: 82209

Signed-off-by: Kamil Kasperczyk <[email protected]>
(cherry picked from commit 6e98d27)
…onnected

Allow `nrfs_backend_send` to push early requests into the message queue,
but defer sending them until a connection is established, at which point
the queue will be flushed. This benefits asynchronous code by making it
optional to call `nrfs_backend_wait_for_connection` before using the
nrfs service API, which is already non-blocking.

Signed-off-by: Grzegorz Swiderski <[email protected]>
(cherry picked from commit c120f4f)
(cherry picked from commit 4efcb15)
Extended hardware map to share a single board between variants.
To run tests for different variants on the same board
without re-configuring the hardware map file for each variant,
one can use a `platform` atribute as a list of names.

Signed-off-by: Grzegorz Chwierut <[email protected]>
(cherry picked from commit e0bd7e7)
(cherry picked from commit 6722541)
Fix the expected pattern randomly matched to coverage.json contents
ordered differently at test_coverage_basedir().

Signed-off-by: Dmitrii Golovanov <[email protected]>
(cherry picked from commit 27456ed)
(cherry picked from commit 2149857)
No need to pull babblesim and nrf_hw_models when doing twister testing.

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit cfd5469)
(cherry picked from commit b476270)
Add an option for platforms or forks to provide their own hostap
compatible crypto implementation. This may include proprietary or
platform specific stuff that may or may not be upstreamed to Zephyr.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit bbfb546)
(cherry picked from commit 53f5e6d)
The CONFIG_ prefix should be removed when passing to OSAL code.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 4ae6520)
(cherry picked from commit 7eda046)
Pass passive scan and offloaded raw tx feature flags to OSAL.

Signed-off-by: Kapil Bhatt <[email protected]>
(cherry picked from commit 62e06a5)
(cherry picked from commit a4ca4d7)
aescolar and others added 27 commits December 18, 2024 10:13
Enable this test by providing an overlay for the nrf5340bsim
Both for the app and net core.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit da01758)
…rted

Include in the list of supported peripherals the GPIO
and GPIOT for both the nrf5340 and nrf54l15

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 3418305)
…bsim

The HW models now support this peripheral for these targets.
Let's enable them.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit a7abf80)
Enable this test in the simulated nrf5340 by providing
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit dd13fa0)
Enable this test in the simulated nrf5340 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 51053cc)
Enable this test in the simulated nrf5340 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 5321941)
… nrf5340

Include in the list of supported peripherals the UARTE for the
simulated nrf5340

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 7065b46)
…5bsim

The HW models now support this peripheral for this target.
Let's enable it.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit ca46c7c)
… nrf54l15

Include in the list of supported peripherals the UARTE for the
simulated nrf54l15

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 890f134)
Enable this test in the simulated nrf54l15 by providing
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit dd2f411)
Enable this test in the simulated nrf54l15 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit eec7363)
Enable this test in the simulated nrf5340 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 9c386ca)
… nrf54l15

To increase coverage.

Note that we call twister separatedly for this target, due to the 54l15
overlays using UARTE20 which is indexed in simulation as "2", but as
the nrf52833 does not have 3 instances. So "-uart2_loopback" is not
a valid option for a 52833 executable.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 4558056)
Add 128 MHz clock source and use it for uart00. Baudrate setting
must be adjusted based on uart clock source so without this
change there is wrong baudrate on uart00.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit 923d313)
Do not delete clocks for the bsim target. Clocks are referenced
by peripherals and it can be used to get frequency that clocks
the peripheral.

Upstream PR #: 82901

Signed-off-by: Krzysztof Chruściński <[email protected]>
Add clock source to timers which indicates maximum frequency of
the timer instance.

Upstream PR #: 82901

Signed-off-by: Krzysztof Chruściński <[email protected]>
nrf-squash! [nrf noup] hostap: Avoid double-definition of base64 AP

This reverts commit 4bbe53c.

The file definitions have been modified to include "hostap" namespace,
so, this file is must for build.

Signed-off-by: Chaitanya Tata <[email protected]>
With recent SDSC bundles, 54H fails the app core boot in case of a
unsupported GPIO in the UICR.

As Wi-Fi SR co-existence on nRF54H20DK is not yet supported, remove this
GPIO for 54H. This will be fixed properly once co-existence is
revisited.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
The GPIOs will vary depending on the platform.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
Helps in understanding this switch usage better.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
Add the feature flag and required GPIO in DTS as dependencies to avoid
build failures.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
Commit adds `diag transmit` used for transmission IEEE802154 packets
in specific amount and interval.

Signed-off-by: Przemyslaw Bida <[email protected]>
(cherry picked from commit 1512ed2)
… APIs

Add zero latency interrupt safe APIs to allow requesting and
releasing HFXO. These will be used from components running
in zero latency interrupt context, like the bluetooth stack.

Co-authored-by: Piotr Pryga <[email protected]>

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Signed-off-by: Piotr Pryga <[email protected]>
(cherry picked from commit 2aec438)
Signed-off-by: Piotr Pryga <[email protected]>
…sr API

Implement the zero latency interrupt safe APIs to the HFXO clock
commonly used by the bluetooth stach from zero latency interrupt
context.

Co-authored-by: Piotr Pryga <[email protected]>

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Signed-off-by: Piotr Pryga <[email protected]>
(cherry picked from commit 73a45a7)
Signed-off-by: Piotr Pryga <[email protected]>
There were redundant code in full_irq_lock(), full_irq_unlock()
functions that supposed to be used when ZLI IRQs are disabled.
These functions are compiled in only when CONFIG_ZERO_LATENCY_IRQS
is set, hence the non-ZLI execution path was never included
in final binaries.

Signed-off-by: Piotr Pryga <[email protected]>
(cherry picked from commit 233095c)
Signed-off-by: Piotr Pryga <[email protected]>
Update nrf_wifi for disabling priority window for scan.

Upstream PR #: 83104

Signed-off-by: Karun Kumar Eagalapati <[email protected]>
…ty window

Add Kconfig option to disabling priority window for scan.

Upstream PR #: 83104

Signed-off-by: Kapil Bhatt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.