Skip to contentSkip to conversation

batctl: Fix retrieval of meshif ap_isolation

PATCH New Sven Eckelmann 1 participant 1 message Oct 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batctl: Fix retrieval of meshif ap_isolation

The batadv command to retrieve the attributes is called BATADV_CMD_GET_MESH. The used BATADV_CMD_SET_MESH will only return the current settings via the "config" multicast group which is not evaluated by the ap_isolation command.

Fixes c56a63a5f12a ("batctl: Support generic netlink for ap_isolation command")
---
 ap_isolation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ap_isolation.c +1 -1
index df19072..c8675f5 100644
@@ -36,7 +36,7 @@ static int get_attrs_ap_isolation(struct nl_msg *msg, void *arg)
 
 static int get_ap_isolation(struct state *state)
 {
-	enum batadv_nl_commands nl_cmd = BATADV_CMD_SET_MESH;
+	enum batadv_nl_commands nl_cmd = BATADV_CMD_GET_MESH;
 
 	if (state->selector == SP_VLAN)
 		nl_cmd = BATADV_CMD_GET_VLAN;
Signature · 1 line
2.28.0