Commit 043a1f9b authored by Luis R. Rodriguez's avatar Luis R. Rodriguez

Share common routines into a reg lib, other objects will later reuse.

renamed:    regdb.c -> reglib.c
renamed:    crda.h -> reglib.h
Signed-off-by: 's avatarLuis R. Rodriguez <lrodriguez@atheros.com>
parent 08ee86e6
......@@ -41,9 +41,9 @@ keys-%.c: key2pub.py $(wildcard *.pem)
$(NQ) ' CC ' $@
$(Q)$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
crda: keys-ssl.c keys-gcrypt.c regdb.o crda.o
crda: keys-ssl.c keys-gcrypt.c reglib.o crda.o
$(NQ) ' LD ' $@
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) `pkg-config --libs libnl-1` -o $@ regdb.o crda.o
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) `pkg-config --libs libnl-1` -o $@ reglib.o crda.o
warn:
@if test ! -f key.priv.pem || diff -qNs test-key key.priv.pem >/dev/null ; then \
......@@ -59,9 +59,9 @@ key.priv.pem:
generate_key:
$(Q)openssl genrsa -out key.priv.pem 2048
dump: keys-ssl.c keys-gcrypt.c regdb.o dump.o
dump: keys-ssl.c keys-gcrypt.c reglib.o dump.o
$(NQ) ' LD ' $@
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ regdb.o dump.o
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ reglib.o dump.o
verify: regulatory.bin dump
$(NQ) ' CHK regulatory.bin'
......
......@@ -19,7 +19,7 @@
#include <linux/nl80211.h>
#include "regdb.h"
#include "crda.h"
#include "reglib.h"
struct nl80211_state {
struct nl_handle *nl_handle;
......
......@@ -7,7 +7,7 @@
#include <arpa/inet.h> /* ntohl */
#include "regdb.h"
#include "crda.h"
#include "reglib.h"
static void print_reg_rule(__u8 *db, int dblen, __be32 ruleptr)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment