qca-nss-ecm: move MLO check internally

`is_mlo_device` is a check for whether a device is multi-link operation
capable, it is also geared towards WiFi 7 which is only supported on
IPQ95xx/53xx platforms with SFE. Since these patches are only focused on NSS,
rather than unecessarily patching the kernel, don't check if device is MLO capable.
This commit is contained in:
Qosmio 2024-03-24 21:59:48 -04:00
parent 7e0e5abd8c
commit 78aedd1916

View File

@ -0,0 +1,14 @@
--- a/ecm_interface.c
+++ b/ecm_interface.c
@@ -4033,7 +4033,11 @@ static uint32_t ecm_interface_multicast_
* For MLO bond netdevice, destination for multicast is bond netdevice itself
* Therefore, slave lookup is not needed.
*/
+#ifdef ECM_FRONT_END_SFE_ENABLE
if (ecm_front_end_is_lag_master(dest_dev) && !bond_is_mlo_device(dest_dev)) {
+#else
+ if (ecm_front_end_is_lag_master(dest_dev)) {
+#endif
/*
* Link aggregation
* Figure out which slave device of the link aggregation will be used to reach the destination.