This was never done. Do this at the end for now but soon
this will be changed in preference for the file opening
only to be done by crda for checking which file to use
to pass on to reglib for usage.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
#include <sys/stat.h>
#include <fcntl.h>
#include <arpa/inet.h>
+#include <unistd.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/family.h>
nlmsg_free(msg);
out:
nl80211_cleanup(&nlstate);
+ close(fd);
+
return r;
}