QM: Add IPv6 route to allow link local address traffic
IPv6 route to allow traffic to a peer's link local address might not
have been configured by default. In such cases IPv6 traffic (e.g., IPv6
pings) sent to the peer's link local address fails.
Fix this by making sure IPv6 routing table is configured with a rule to
allow traffic with the link local address.
Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
diff --git a/sta.c b/sta.c
index a417fd0..2bf121d 100644
--- a/sta.c
+++ b/sta.c
@@ -7810,6 +7810,7 @@
const char *program = get_param(cmd, "program");
const char *dev_role = get_param(cmd, "DevRole");
char resp[20];
+ char buf[100];
int ret;
if (dut->station_ifname_2g &&
@@ -8048,8 +8049,15 @@
#endif /* ANDROID */
}
- if (dut->program == PROGRAM_QM)
+ if (dut->program == PROGRAM_QM) {
wpa_command(intf, "SET interworking 1");
+ snprintf(buf, sizeof(buf),
+ "ip -6 route replace fe80::/64 dev %s table local",
+ intf);
+ if (system(buf) != 0)
+ sigma_dut_print(dut, DUT_MSG_ERROR, "Failed to run: %s",
+ buf);
+ }
dut->akm_values = 0;
dut->sta_ft_ds = 0;