[PATCH 1/4] netdev: don't set CQM thresholds for fullmac cards

James Prestwood
2025-02-12T16:24:07Z

Since roaming is handled by the firmware setting CQM thresholds for
roaming is pointless.
---
src/netdev.c | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/src/netdev.c b/src/netdev.c
index ecf61823..e0a39851 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -3827,6 +3827,15 @@ static void netdev_cmd_set_cqm_cb(struct l_genl_msg *msg, void *user_data)
static int netdev_cqm_rssi_update(struct netdev *netdev)
{
struct l_genl_msg *msg;
+ struct netdev_handshake_state *nhs = l_container_of(netdev->handshake,
+ struct netdev_handshake_state, super);
+
+ /*
+ * Fullmac cards handle roaming in firmware, there is no need to set
+ * CQM thresholds
+ */
+ if (nhs->type == CONNECTION_TYPE_FULLMAC)
+ return 0;

l_debug("");

--
2.34.1