Make a in-kernel copy of 'cfg' parameter before passing the struct
to kernel z_impl_dai_config_set() implementation. This ensures
user-space will not have access to the object when kernel part
of the syscall is running.
Also add separate handling for the case where bespoke configuration
object is NULL. While no current driver works without a bespoke
configuration, this is not forbidden in the API and the generic syscall
handler should not assume a bespoke object is passed.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
dai_ssp_get_properties() can return NULL if there are no properties
defined for the device. Handle this case correctly in ssp driver's
dai_ssp_get_properties_copy() by returning -ENOENT in this case.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Handle the case if driver is not implementing get_properties_copy().
Document the behaviour and add a note that the method is optional and
users need to be handle the case that not all drivers will have this
method defined.
Also add documentation on error codes. Drivers should use -ENOENT if
no properties are defined for the device. This matches behaviour of
dai_get_properties() returning NULL if there are no properties.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Add test support for PWM driver of RZ/A2M-EVK
Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Add PWM support for board RZ/A2M-EVK
Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Add PWM driver support for Renesas RZ/A2M
Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
The lfclk is required for bluetooth, so enable it by default for the
radio core. Applications are only affected if they enable
CLOCK_CONTROL, in which case either only the lfclk or all clocks are
enabled, so enabling lfclk alone is the lowest common denominator.
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
Replace some manually-defined DT_COMPAT_<> Kconfig macro variables with
their automatically generated counterparts. In most cases, this is
straightforward as the manually defined macro is named identically to the
one generated by the build system.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Adds a check that snippets are correctly applied to named boards
with the correct board revision
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
For non-STA mode the vif level authorized flag is unused, simply allow
all group traffic and for unicast traffic check respective peer status.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Test automation framework fails if there are any error prints, and we
had seen issues with networking that sends packets to the driver before
the assocation is up (either not checking dormant status or in a window
where dormant status is being updated).
Add a workaround to suppress the print till the issue root cause is
fixed.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Fix pointer dereferencing by accessing the pointer only
after initialization, preventing fault exceptions.
Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
Add an identifier to P2P scan request. RPU can use this to
differentiate it from regular scan requests and suppress
11b rates.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Add cookie event callbacks to track RoC and cancel-RoC
requests and its responses from firmware.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Add per-peer authorized parameter. Port authorization command
from supplicant will set this flag and will be used by driver
to allow or nor allow data traffic.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
We now support a single MbedTLS shim for hostap, so, this extra check is
not needed, we can always use DH5 groups from Mbedtls.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Increase required heap and stack size for P2P. More stack was required
during WPS negotiation.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
For frames like Probe Requests, there is no match criterion.
Re-arrange the checks to support registering of frames without
providing any matching info.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
For frames sent down by supplicant in station mode, inform RPU
to allow off-channel transmission. This is needed for sending
P2P probe responses.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Use `ssids` instead of `filter_ssids` to set the SSID in probe
requests. `filter_ssids` are to filter scan results to include
only the specified SSIDs.
Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
Align with native_simulator's upstream main
215ee859eee5e49dc09eda8f17a956ee7318caf2
Which includes:
215ee85: native timer_model: Fix printf format specifier warnings w
debug logs
Signed-off-by: Nakul Chauhan <nakulchauhan111@gmail.com>
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
The can_nrf driver uses defines from soc.h which happened to be
included by some other header when building for cpuapp, but not
when building for cpuflpr. Include soc.h explicitly.
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
The hfxo and lfxo should only be enabled for the cpuapp and cpurad
as these cores are the only ones which have access to the clock.
Leaving it enabled will break cpuppr and cpuflpr builds if
CONFIG_CLOCK_CONTROL is enabled as the drivers are not compatible.
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>