summaryrefslogtreecommitdiff
path: root/regdbdump.c
blob: 6d4cf56f2243e448efec83d66f4df6e1440ff0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <errno.h>
#include <stdio.h>

#include "regdb.h"
#include "reglib.h"

int main(int argc, char **argv)
{
	struct ieee80211_regdomain *rd = NULL;
	unsigned int idx = 0;

	if (argc != 2) {
		fprintf(stderr, "Usage: %s <filename>\n", argv[0]);
		return 2;
	}

	reglib_for_each_country(rd, idx, argv[1]) {
		print_regdom(rd);
		free(rd);
	}

	return 0;
}