]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - genl.c
iw: fix some scan code indentation
[thirdparty/iw.git] / genl.c
diff --git a/genl.c b/genl.c
index 6091b977184f6e1dbd22dca9b3eaae79987a9425..7dc27f78c735668393f452cc5dbce970668f4d67 100644 (file)
--- a/genl.c
+++ b/genl.c
@@ -5,9 +5,10 @@
 #include <asm/errno.h>
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
-#include <netlink/genl/ctrl.h>  
+#include <netlink/genl/ctrl.h>
 #include <netlink/msg.h>
 #include <netlink/attr.h>
+#include <linux/genetlink.h>
 
 #include "iw.h"
 
@@ -42,7 +43,7 @@ static int family_handler(struct nl_msg *msg, void *arg)
        nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
                  genlmsg_attrlen(gnlh, 0), NULL);
 
-        if (!tb[CTRL_ATTR_MCAST_GROUPS])
+       if (!tb[CTRL_ATTR_MCAST_GROUPS])
                return NL_SKIP;
 
        nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], rem_mcgrp) {
@@ -60,7 +61,7 @@ static int family_handler(struct nl_msg *msg, void *arg)
                grp->id = nla_get_u32(tb_mcgrp[CTRL_ATTR_MCAST_GRP_ID]);
                break;
        }
-       
+
        return NL_SKIP;
 }
 
@@ -86,7 +87,7 @@ int nl_get_multicast_id(struct nl_sock *sock, const char *family, const char *gr
 
        ctrlid = genl_ctrl_resolve(sock, "nlctrl");
 
-        genlmsg_put(msg, 0, 0, ctrlid, 0,
+       genlmsg_put(msg, 0, 0, ctrlid, 0,
                    0, CTRL_CMD_GETFAMILY, 0);
 
        ret = -ENOBUFS;