From 911c11b45312ca418b35956e750d27c65ab73687 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakob.olsson@iopsys.eu> Date: Fri, 5 Feb 2021 09:22:47 +0100 Subject: [PATCH] agent: don't send steering cmdu over loopback --- src/core/agent.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/core/agent.c b/src/core/agent.c index 68ebaeb55..fa2a4af97 100644 --- a/src/core/agent.c +++ b/src/core/agent.c @@ -1226,7 +1226,8 @@ static int wifi_send_sta_report(struct agent *a, const char *vif, return -1; //TODO use the cntl ifname and origin address - strcpy(ifname, "lo"); + strcpy(ifname, "br-lan"); + mempcy(origin, a->cntlr_almac, 6); /* Here we get need to send the steering report */ ret = send_steer_btm_report(a, origin, ifname, @@ -3335,14 +3336,8 @@ static void agent_steering_opp_timeout(struct uloop_timeout *t) char ifname[IFNAMESIZE] = { 0 }; uint8_t origin[6] = { 0 }; - //TODO here we need to fill the controller - //src and interface to which the message needs to be sent - - strcpy(ifname, "lo"); -#if 0 // TODO: needs to be enabled for proper DUT behavior strncpy(ifname, "br-lan"); mempcy(origin, a->cntlr_almac, 6); -#endif send_sta_steer_complete((void *)a, origin, ifname); } -- GitLab