Commit Graph

65016 Commits

Author SHA1 Message Date
Petr Štetiar
fa7303a838
ci: testbed: stop possibly stale CDRouter jobs before testbed setup
Currently the shared .testbed before_script starts DUT bring-up
without checking whether testbed-02 still has a CDRouter package
left behind by a canceled earlier job. PPW-1640 showed job
13434548634 was canceled on March 10, 2026, but its CDRouter
package kept running for almost 20 hours and that stale state was
inherited by later LCM cram jobs on the reused testbed.

When that stale CDRouter package stays active, the DUT learns the
DHCPv6 DNS forwarders 3001:51a:cafe::2 and 3001:51a:cafe::3.
The local unbound resolver then forwards gitlab.com and
registry.gitlab.com lookups to those servers, which return
NXDOMAIN, so container pulls fail before the new job reaches its
own setup.

This change is needed to align the generic testbed jobs with the
existing CDRouter pipeline flow and reclaim the CDRouter service before
stale DNS state can leak into the next run. So lets fix the start of
before_script by running the connectivity check and package_stop cleanup
immediately.

References: PPW-1640
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/13434548634#L33
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2026-03-11 19:36:34 +01:00
Maarten De Decker
da09add0ca profiles: prpl: prplMesh: bump to v5.2.0
Integrates following changes:
- controller: agent: Connect prplMesh to the DM mapper (401d6bcfb)
- switch pwhm DM access to USP and keep ubus client for external DMs (a1701dd2d)
- agent: ap_autoconfiguration_task: make bss type similarity half-strict (3848be643)
- controller: infer wired backhaul parent from Ethernet 1905 neighbor graph (c30a468cd)

References:  PPM-3649, PPM-3914, PPM-3858, PPM-2043

Signed-off-by: Maarten De Decker <maarten.dedecker@mind.be>
2026-03-11 16:29:15 +01:00
Hela Saadani
cf210fc133 profiles: prpl-core: feed_amx: pass accepted bus context signal manager and enable usp-cli
Integrates:
- aec5ee8: ("ci: baf: update autogenerated files", 2026-02-27)
- 02388c8: ("mod-ba-cli: enable usp-cli", 2026-01-09)
- 5fbf403: ("libamxb: add support creating extended subscriptions", 2026-01-16)
- f463e4e: ("libamxb: add unit tests for DM deregistering", 2025-12-16)
- f321775: ("libamxb: remove datamodel and context cache when deregistering", 2025-12-16)
- 8018ddc: ("libamxb: add support deregistering DM in the backends", 2025-12-15)
- bf7c76d: ("amxb_accept: pass accepted bus context signal manager", 2025-12-09)

References: PPW-1250, FEAT-27
Signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-03-11 15:55:57 +01:00
Hela Saadani
8949d93f78 profiles: prpl-core: feed-prplos: fix USP translating for deferred calls and remove Device.WiFi. mapping and read() returns -1 when reading from ambiorix UPS service
Integrates:
- 8b385af: ("ci: baf: update autogenerated files", 2026-01-14)
- f112202: ("libimtp: update unit tests to align with new call in sending file descriptors", 2025-12-16)
- c68b879: ("libimtp: fix reading frames in multiple chunks with expect for file descriptors", 2025-12-16)
- 037de8b: ("libimtp: support reading messages without FD header", 2025-12-15)
- 4837f74: ("mod-amxb-usp: add support subscribing to events using dynamic model", 2026-01-16)
- f629eb9: ("amxb-usp: Add support for deregister DM method", 2025-12-15)
- 29de6e3: ("amxb-usp: add support USP translating for deferred calls", 2025-11-06)

References: PPW-1311, PCF-2184, PPW-1140, FEAT-27

Signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-03-11 14:41:41 +01:00
Artem Trokhymchuk
bba56f2bb8 ci: cram: update cram tests after prplmesh-dm-mapper
Since prplMesh moved to direct socket connection, need to align cram
tests.

References: PCF-2184, FEAT-27
Signed-off-by: Artem Trokhymchuk <a.trokhymchuk@inango-systems.com>
2026-03-11 14:37:55 +01:00
Artem Trokhymchuk
8c3e1e311b ci: cram: split wifi tests into 2 steps due to cram limitations
Currently cram tests have a limit on total length of the commands.
To overcome this issue, some tests that exceed that limit are split into
2 steps.

References: PCF-2184, FEAT-27
Signed-off-by: Artem Trokhymchuk <a.trokhymchuk@inango-systems.com>
2026-03-11 14:37:55 +01:00
Vladyslav Tupikin
58be1f48b3 ci:cram: delay prplMesh startup in pwhm tests
References: PCF-2184, FEAT-27
Signed-off-by: Vladyslav Tupikin <v.tupikin@inango-systems.com>
2026-03-11 14:37:55 +01:00
Vladyslav Tupikin
a299485ae9 ci: testbed: Increase timeout up to 64 min
References: PCF-2184, FEAT-27
Signed-off-by: Vladyslav Tupikin <v.tupikin@inango-systems.com>
2026-03-11 14:37:55 +01:00
Vladyslav Tupikin
f74cdfe876 ci: cram: Align tests with prplMesh DM Mapper app
Current CRAM tests for Freedom and MXL OSPv2 require
adoptation to the prplMesh DataModel mapper application.

Existing tests updated because some parameters will be hiden
from the TR-69 and USP frontends.

Add tests that work with datamodel through usp-cli
tool, acting like external USP controller, sending
messages through OBUSPA to the prplMesh DM Mapper.

PWHM test split due to CRAM i/o limitation in 8K per file.
WiFi related tests were updated by adding Device. prefix
because CRAM tests should emulate real usage of the datamodel,
when everything configured through USP or TR-69 using Device.
datamodel.

Split event catching lua scripts for Ubus and USP for test
both buses. Also, updated USP events lua script for usage with
different USP sockets.

Script wifi.sh also modified by adding ability to choose which
prefix in wifi_dm() func can be used and which tool to use.
Default prefix set to the Device.WiFi.
Default tool is usp-cli.

References: PCF-2184, FEAT-27
Signed-off-by: Vladyslav Tupikin <v.tupikin@inango-systems.com>
Signed-off-by: Artem Trokhymchuk <a.trokhymchuk@inango-systems.com>
2026-03-11 14:37:55 +01:00
Vladyslav Tupikin
ae97d6bbd8 profiles: prpl_core: feed-prplmesh: Add implementation for prplMesh DataModel Mapper
Integrates:
- ee91c1e: ("Add unit tests for prplMesh DM Mapper", 2025-12-16)
- 504f2f2: ("Add implementation for prplMesh DataModel Mapper app", 2025-12-09)
- f903d49a3: ("wld: use ubus connection to save context", 2026-03-08)
- 0b6068808: ("ci: baf: update autogenerated files", 2026-02-26)
- d4c837b44: ("ci: baf: update autogenerated files", 2026-02-20)
- 8ff749eb8: ("pwhm: prplmesh-dm-mapper: Connect pWHM to the prplMesh DataModel Mapper", 2025-11-13)
- bf9c74d: ("ci: baf: update autogenerated files", 2026-02-26)
- a383100: ("wifi-sensing: prplmesh-dm-mapper: Connect WiFi-Sensing to the prplMesh DataModel Mapper", 2025-11-13)

References: PCF-2184, FEAT-27
Signed-off-by: Vladyslav Tupikin <v.tupikin@inango-systems.com>
Signed-off-by: Artem Trokhymchuk <a.trokhymchuk@inango-systems.com>
signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-03-11 14:35:56 +01:00
Sathishkumar Selvam
a0fdff734f ci: cram: add 004-amx-process-deliberate-stop.t
Add the cram to test that amx monitor would stop monitor if service
is deliberately shutdown (or) stopped for any debugging

References: PCF-1353
Signed-off-by: Sathishkumar Selvam <sathishkumar.selvam@capgemini.com>
2026-03-10 12:14:12 +01:00
Sathishkumar Selvam
6d602034a3 profiles: prpl_core: feed-prplos: amx-processmonitor: handle unexpected reboot with intentional service stop
Integrates following changes:
- b4dca27: ("PPW-1353: amx-processmonitor: reboot system when tr181-firewall deliberately stops", 2026-01-30)

References: PPW-1353
Signed-off-by: Sathishkumar Selvam <sathishkumar.selvam@capgemini.com>
signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-03-10 12:14:08 +01:00
prplbot
eb79ac34f2 profiles: prpl_core.yml: feed_prplos: tr069-manager: CWMP ACS did not receive a '14 HEARTBEAT' event within 5 seconds of the existing CWMP session being closed
Integrates following changes:
- ci: disable openwrt25 based crosscompilation (382a1e68)
- Issue: PPW-560 [CWMP] ACS did not receive a '14 HEARTBEAT' event within 5 seconds of the existing CWMP session being closed (2cefa4e9)

References: PPW-560, PPW-1613
Signed-off-by: prplbot <bot@prplfoundation.org>
2026-03-10 11:13:30 +01:00
Christian Marangi
d35cfc25f0 ci: cram: Update tests for Arcadyan Mozart
Update tests for Arcadyan Mozart with latest changes for datamodel and
config options.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-03-10 08:53:55 +00:00
Christian Marangi
7a2c279f62 profiles: mtk_filogic: Bump mediatek profile to account for new WiFi nodes
Bump the mediatek profile version to support setting the WiFi MAC address from
the Factory partition similar to how it's done for the Ethernet partitions.

Fixes: PCF-2342
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-03-10 08:53:55 +00:00
Petr Štetiar
a5d9c5ce2d
ci: cdrouter: flush DNS relay cache on loopback instance as well
Since the unbound upstep from 1.22 to 1.24.1 (commit d453d848c0), DNS
resolution now also uses a loopback unbound instance. The existing DUT
init script only flushed the "lan" DNS relay cache, causing stale
negative DNS entries on the "lo" instance to persist. This led to USP
agent (obuspa) STOMP connection failures during CDRouter-Wireless tests,
as controller.cdroutertest.com could not be resolved.

Flush the "lo" DNS relay cache before "lan" to ensure both instances
have clean state before CDRouter tests start.

Fixes: PPW-1629
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2026-03-09 18:12:32 +00:00
FAOUZI YAHYA
44b2900f69 ci: cram: 025-usb: add PowerCapability and PowerStatus
Integrates following changes:
-add PowerCapability and PowerStatus to USB.Port.1

References: PCF-1942
Signed-off-by: FAOUZI YAHYA <faouzi.yahya_ext@softathome.com>
2026-03-09 16:54:37 +01:00
FAOUZI YAHYA
95f673327e ci: cram: obuspa: add update Device.USB.Port config
Integrates following changes:
-add Device.USB.Port.{i}.ChangePowerMode()
-add Device.USB.Port.{i}.ChangePowerMode() input:PowerState
-add Device.USB.Port.{i}.PowerCapability
-add Device.USB.Port.{i}.PowerStatus

References: PCF-1942
Signed-off-by: FAOUZI YAHYA <faouzi.yahya_ext@softathome.com>
2026-03-09 16:54:37 +01:00
FAOUZI YAHYA
4a0cbf2391 ci: cram: obuspa: add Device.XPON.ONU config
References: TR-181, PCF-2024, PCF-1698
Signed-off-by: FAOUZI YAHYA <faouzi.yahya_ext@softathome.com>
2026-03-09 16:54:37 +01:00
FAOUZI YAHYA
7fa513164d ci: cram: obuspa: add Device.Ethernet.Interface
References: TR-181, PCF-2024, PCF-1698
Signed-off-by: FAOUZI YAHYA <faouzi.yahya_ext@softathome.com>
2026-03-09 16:54:37 +01:00
Benamor Imene
ef0d026319 ci: cram: add test to cover tr181-cpu plugin (PCF-2064)
Problem: Cram tests should be added to cover tr181-cpu plugin

References: PCF-2064
Signed-off-by: Benamor Imene <imene.benamor_ext@softathome.com>
2026-03-09 16:54:37 +01:00
Oguzhan Kara
785a443e59 ci: cram: [powermanagement] add cram test for usb powermanagement
Add PowerManagement cram test for usb port. The cram test checks USB datamodel for PowerManagement support.

References: PCF-1942
Signed-off-by: Oguzhan Kara <oguzhan.kara@softathome.com>
(cherry picked from commit 2af5652c4ce1d042808bea9030a6fa173ef86aee)
2026-03-09 16:54:37 +01:00
Oguzhan Kara
5035ca334e ci: cram: [powermanagement] add cram test for ethernet powermanagement
Add PowerManagement cram test for ethernet interface. The cram test checks Ethernet datamodel for PowerManagement support.

References: PCF-1941
Signed-off-by: Oguzhan Kara <oguzhan.kara@softathome.com>
(cherry picked from commit 3f3a52fe6ca39d5be4ebb14b059b8942dd5f01d1)
2026-03-09 16:54:37 +01:00
prplbot
c0d31d68f5 profiles: prpl_core: feed_prplos: mod-xpon-prpl, tr181-xpon, tr181-ethernet, tr181-usb, tr181-cpu: XPON - power management support
Integrates following changes:
- baf: set SoftAtHome as copyrights holder in LICENSE file (4cbbcb0e)
- ci: baf: update autogenerated files (dcbe4e14)
- Use Ambiorix framework to query instances (a1560482)
- Log a warning if ONU HAL agent sends value for unknown parameter (3172a5a6)
- Support ONU power management (PCF-2024) (bd0eed30)
- README.md: update links to external references (c2aabc0b)

References: TR-181, PCF-2024, PCF-1698
Signed-off-by: prplbot <bot@prplfoundation.org>
2026-03-09 16:54:34 +01:00
Hela Saadani
1406a3bde8 ci: cram: 005-build-config: add gmap-mod-dnssd and gmap-mod-upnp
References: PCF-2174

Signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-03-09 16:12:54 +01:00
Hela Saadani
13d4b5f761 profiles: prpl-core: feed-prplos: Implement gmap client for SSDP service discovery
Integrates:
- e99ab49: ("gmap-mod-upnp: initial commit", 2025-11-18)
- 9f8339e: ("gmap-mod-dnssd: initial commit", 2025-11-18)

References: PCF-2173
Signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-03-09 16:11:56 +01:00
prplbot
b97af0df8d profiles: prpl_core.yml: feed_prplmesh: pwhm: build failure in wld_wpaCtrlGSock.c due to comparison of
Integrates following changes:
- pwhm: build failure in wld_wpaCtrlGSock.c due to comparison of (c418f9ed)

References: PPM-3691
Signed-off-by: prplbot <bot@prplfoundation.org>
2026-03-09 09:33:16 +01:00
Petr Štetiar
3c2ef152fe
PROVISORY: ci: wnc-freedom: make 110-prplmesh-dataelements.t pass with 2.4GHz 20MHz workaround
Currently 110-prplmesh-dataelements.t can inherit a 40MHz 2.4GHz
bandwidth from 106-pwhm-get-eht-caps.t. PCF-2420 shows that this
leaked state pushes the Freedom board into a hostapd crash loop after
AccessPointCommit(), leaving all fronthaul SSIDs Down and failing the
prplMesh dataelements assertions.

So lets reset the 2.4GHz bandwidth back to the default 20MHz during
the 110-prplmesh-dataelements.t setup. This keeps the test isolated
from earlier cram side effects and applies the Jira workaround that was
reported to make the enabled VAPs come up and stay Up.

References: PCF-2420
Root-caused-by: Iacob Juc <iacob.juc_ext@softathome.com>
Workarounded-by: Iacob Juc <iacob.juc_ext@softathome.com>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2026-03-07 04:50:00 +01:00
Petr Štetiar
a0773fdc32
PROVISORY: ci: cram: freedom: disable 5G modem tests
5G modem (Quectel RM520N-GL) is not working on Freedom with ATH13.1CS.
Qualcomm is handling the fix via a separate SF ticket.

Disable 5G modem PCI/USB checks in 015-platform.t and skip
50-cellular-offline.t on Freedom DUT board.

While at it, fix the copy&pasta in the test description and remove
OSPv1.

References: PCF-2306
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2026-03-06 16:20:08 +01:00
Houssem Dafdouf
9431c7e926
ci: cram: freedom: align pwhm-get-eht-caps.t with ath13.1 updates
Update pwhm-get-eht-caps.t script with latest ath13.1 changes.

Reference: PCF-2042
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-03-06 16:20:07 +01:00
Marvin Lu
73830982e7
profiles: qca_ipq95xx: hostapd-qca: Avoid disable MAC address filtering if WPS is enabled on the AP
Fix hostapd does not block the station in deny list if WPS is enabled.

Fixes: PPM-3303

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:20:06 +01:00
Cihangir Odabas
6787c83315
profiles: qca_ipq95xx: mac80211: fix invalid link_id
mac80211: Fix invalid-link_id-usage in ieee80211_stop_mbssid

 * Set netdev_going_down flag only when link_id it not set

Fixes: PCF-2348
Signed-off-by: Cihangir Odabas <cihangir.odabas@prplfoundation.org>
2026-03-06 16:20:05 +01:00
Marvin Lu
d8e8e55a5a
profiles: qca_ipq95xx: mac80211: set ath12k option cold_boot_cal to 0
1. Add MODPARAMS.ath12k:=cold_boot_cal=0 in ath.mk to override the
   default value (1) and disable cold boot calibration.

2. Fix ath12k_dyn_dbg_enable.sh to preserve existing module parameters
   when adding dyndbg=+p. The original implementation would overwrite
   all parameters specified via MODPARAMS in ath.mk.

The script now:
- Reads the existing first line from /etc/modules.d/ath12k
- Skips modification if dyndbg=+p is already present
- Inserts dyndbg=+p after 'ath12k' while preserving existing parameters
  like cold_boot_cal=0

Fixes: PCF-2346

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:20:04 +01:00
Marvin Lu
1aaa7a855c
profiles: qca_ipq95xx: wireless-freedom: speed up detection of wireless UCI readiness
1. Rewrite the detection logic to reduce the time spent waiting for
   wireless UCI to become ready. This improves startup time.
2. Set uci option wireless.vendor.phy_detect_timeout = 0 to skip PHY
   detection. In ATH13.1CS, the wireless UCI being ready implies the
   Wi-Fi driver is already initialized, so explicit PHY detection is
   redundant and can be safely skipped.

Fixes: PCF-2346

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:20:03 +01:00
Petr Štetiar
59ef62862b
PROVISORY: testbed: wnc-freedom: workaround longer boot times with ATH13.1CS
Changes in !1920 (c66bc572) introduced issues with longer boot times.
CI tests failed because the board was not ready within the 80 second
timeout.

  pexpect.exceptions.TIMEOUT: Timeout of 80 seconds exceeded during waiting for login

Increase login_timeout by 40 seconds (from 80s to 120s) for both
wnc-freedom-initramfs and wnc-freedom-emmc targets to accommodate
the longer boot times.

References: PCF-2346
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/12946876755#L73
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2026-03-06 16:20:02 +01:00
Marvin Lu
32dc2b10fa
profiles: qca_ipq95xx: hostapd-qca: fix wpad crashes during prplOS CI testing
Add null checks for TTLM context in MBSSID element generation and length
calculation to prevent crashes when processing mixed MLD and legacy BSS
configurations.

The code accessed TTLM structures without verifying the BSS was
configured as an MLD AP, causing null pointer dereferences with legacy
BSSes. The fix validates both mld_ap config and mld structure before
accessing TTLM fields.

Fixes hostapd_eid_mbssid_elem_len() and hostapd_eid_mbssid_elem().

Fixes: PCF-2270

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:20:01 +01:00
Marvin Lu
009feaf9cb
profiles: qca_ipq95xx: ath12k-wifi: fix the wrong wifi board data
The previous board data is not correct for ATH13.1CS. Commit the right one.

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:20:00 +01:00
Marvin Lu
300015fae5
profiles: qca_ipq95xx: ath12k-firmware: fix wifi firmwares
The previous firmwares are not correct. Commit the correct ones.

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:59 +01:00
Marvin Lu
1ed20180e5
profiles: qca_ipq95xx: hostapd-qca: Multi-AP: wpa_supplicant: added support for VLAN ID and Multi-AP profile parsing
* Add Multi-AP profile and VLAN ID tracking
Add support for tracking and reporting Multi-AP profile and primary
VLAN ID information in wpa_supplicant. This information is extracted
from the Multi-AP IE in association responses and included in the
connection event messages.

Changes:
- Store Multi-AP profile and primary VLAN ID from association response
- Add new fields to wpa_supplicant structure for tracking these values
- Include Multi-AP profile and VLAN ID in WPA_EVENT_CONNECTED messages
- Add debug logging for Multi-AP profile and VLAN ID values
- Reset values on new association attempts

This enables upper layer applications to be aware of the Multi-AP
configuration and VLAN segmentation being used, which is essential
for proper EasyMesh network management and monitoring.

Fixes: PCF-2290

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:58 +01:00
Marvin Lu
abfa35229d
profiles: qca_ipq95xx: wireless-freedom: make automatic wireless uci generation work correctly
Extend the PHY detection timeout so the automatic wireless uci
generation completes reliably.

Remove /etc/hotplug.d/ieee80211/10-wireless-freedom which was added as a
static fallback because automatic UCI generation failed on prplos
ATH13.0CS.

References: PCF-1963

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:57 +01:00
Marvin Lu
6c9588abf0
profiles: qca_ipq95xx: add package wifi-scripts and wifi-helper-scripts to support automatic wireless uci generation
Add package wifi-scripts and wifi-helper-scripts to support automatic wireless uci generation.

References: PCF-1963

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:56 +01:00
Marvin Lu
c754b5cfb9
profiles: qca_ipq95xx: mac80211: Fix ADDBA request rejection after MLO link removal
Allow BA sessions to persist across link changes by
calling drv_ampdu_action() for ADDBA updates when
SUPPORTS_REORDERING_BUFFER is set. Mark ADDBA Request/Response frames as

link-agnostic per IEEE 802.11be Draft 7.0.

Fixes: PCF-2132

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:55 +01:00
Marvin Lu
ddff2d00e5
profiles: qca_ipq95xx: hostapd-qca: Skip MFP check during WPS association
Currently, with MBO and WPS combination, during initial WPS association,
association request will not contain RSN IE and hence parsing that will
be skipped correctly. But, for MBO, management frame protection(MFP) is
mandatory. Since, RSN IE not sent during initial WPS assoc, station
flags will not have MFP set, which is leading to rejecting the assoc
request from the client.

Since, WPS association request will not have the RSN IE, skip the MFP
check when WPS IE is set and proceed with association. This will be
skipped only for the WPS association, for other request(s), usual
validations will be followed.

References: PPW-1255, PPW-1352, QCA-08265364

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:54 +01:00
Marvin Lu
622b988a0f
profiles: qca_ipq95xx: update QCOM BSP to ATH13.1CS
1. Update the QCOM BSP to ATH13.1CS
2. Add the following packages/configuration into prplos build per
   Qualcomm's ATH13.1CS release for prplos:
   kmod-qca-nss-ppe-pppoe-mgr
   kmod-qca-nss-ppe-gre-mgr
   kmod-qca-mdio
   kmod-qca-nss-ppe-ath-clients
   kmod-qca-wifi-nss-plugins
   CONFIG_BUSYBOX_CONFIG_DEVMEM=y

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:53 +01:00
Marvin Lu
aa52f6d01d
profiles: qca_ipq95xx: Fix compilation issues when CONFIG_DYNAMIC_DEBUG is disabled
When CONFIG_KERNEL_DYNAMIC_DEBUG is disabled in the build configuration,
several nss packages fail to compile due to unused variable warnings
being treated as errors.

This commit applies patches to fix compilation issues in the following
packages from feed-qca:
- qca-nss-ppe
- qca-nss-gre-mgr
- qca-nss-ppe-clients
- qca-nss-dscpstats

The patches mark debug-only variables with __maybe_unused attribute and
add missing header includes, allowing these packages to compile
successfully regardless of the CONFIG_DYNAMIC_DEBUG setting.

CONFIG_KERNEL_DYNAMIC_DEBUG is also removed from the build configuration
.

Closes: PCF-2135
Closes: PCF-2136
Closes: PCF-2137
Closes: PCF-2138

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:52 +01:00
Marvin Lu
e344f9d4ed
profiles: qca_ipq95xx: mac80211: nl80211: fix update ssid during update AP operation
Currently, the AP update operation is not correctly updating new SSID.
This issue arises because the NL80211_CMD_UPDATE_AP command does not
process its NL80211_ATTR_SSID attribute. Resolve this issue by ensuring
that the SSID is updated if it is provided with the
NL80211_CMD_UPDATE_AP command.

Fixes: PPW-1127

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:51 +01:00
Marvin Lu
6055cbf421
profiles: qca_ipq95xx: mac80211: fix missing ingress STP frames on Wi-Fi
After upgrading to latest-24.10, ingress STP frames (destination MAC
01:80:c2:00:00:00) were missing on Wi-Fi.

Root cause:
The ath12k driver reports some packets with LLC headers (length <
0x0600) as DP_RX_DECAP_TYPE_8023 in the RX descriptor. However, these
packets were not properly handled because the RX_FLAG_8023 flag was not
set. As a result, mac80211 misinterpreted these packets, leading to
dropped STP frames.

Solution:
This patch adds support for DP_RX_DECAP_TYPE_8023 by setting the
RX_FLAG_8023 flag in the RX path. This ensures STP frames and other
IEEE 802.3 packets are correctly processed and received on WiFi
interfaces.

Fixes: PPW-1125

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
2026-03-06 16:19:50 +01:00
Tim Hsu
544ed32218
profiles: qca_ipq95xx: Fix EFR32MG, LEDs, pstore and 5G modem
- add support for Quectel RM520N using MHI over PCIe
            Add a DTS property to support 16 MSIs for four-slot PCIe.
            To support four-slot PCIe, the number of MSI interrupts is changed to 16 for PCIe0 and PCIe1.

            Currently 96 MSI interrupts has been used for three slot PCI.
            To support four slot PCI, number of MSI has to be split in below order

            PCIe0 - 16,
            PCIe1 - 16,
            PCIe2 - 32,
            PCIe3 - 32

            Made changes to configure the MSI dynamically based on the DTS
    property in PCI node. Based on the number of MSI corresponding
    ring mask will be taken for DP grouping.

    - Enable CONFIG_PSTORE_RAM
            kernelfaults module will retrieve panics and oops form pstore.
            64 KiB reserved for ramoops/pstore

    - add support for EFR32MG
            Enable UART and I/O expander to support ATH13.0 for EFR32MG on the Freedom board.

    - add support for LED driver
            The I2C multiplexer TCA9548A is connected to the I2C3 bus. The I/O expander TCA6416A is connected to channel 5 of the I2C multiplexer TCA9548A and is controlled by GPIO17/18 for interrupt and reset. The LED driver LP5562 is connected to the I2C3 bus and enabled by GPIO13 of the I/O expander TCA6416A. The LED driver LP5562 controls one RGB LED and one white LED. Set up the system indicator lights.

Signed-off-by: Tim Hsu <tim.hsu@wnc.com.tw>
2026-03-06 16:19:49 +01:00
Petr Štetiar
a22ecc6f57
PROVISORY: build: Freedom: workaround build issue of mac80211 in ATH13.1ED
The builds for Freedom using ATH13.1ED BSP are currently failing with
following error:

  bash: line 1: spatch: command not found

This is happening as the mac80211 package is modifying the source code
tree another time to amend the kzalloc/kmalloc usage for memory
debugging use case.

It should be handled with existing tools, it is currently being
addressed internally, but in the meantime we're going to demand
spatch/coccinelle for the build.

References: PCF-2142
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11783721716#L9686
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2026-03-06 16:19:48 +01:00
CheWei Chien
0dbe0b50fc
profiles: qca_ipq95xx: add support for LED driver
Support led driver LP5562.

References: PCF-2059
Signed-off-by: CheWei Chien <chewei.chien@wnc.com.tw>
2026-03-06 16:19:47 +01:00