commit 57a3094aa8c09bc9757ebbf9c698cb223c331995
Author: Simó Albert i Beltran <sim6@probeta.net>
Date:   Sun Jun 9 19:29:16 2013 +0200

    Add customized country codes to iwinfo. Closes #251.

diff --git a/scripts/copyregdb.script b/scripts/copyregdb.script
index 684ff7b..23236fb 100755
--- a/scripts/copyregdb.script
+++ b/scripts/copyregdb.script
@@ -5,3 +5,4 @@ TBUILD="$1"
 
 [ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] && exit 1
 cp -f scripts/files/regdb.txt build/$TBUILD/package/mac80211/files
+patch -p0 -d build/$TBUILD/ < scripts/files/copyregdb_iwinfo_iwinfo_lib.c.patch > /dev/null
diff --git a/scripts/files/copyregdb_iwinfo_iwinfo_lib.c.patch b/scripts/files/copyregdb_iwinfo_iwinfo_lib.c.patch
new file mode 100644
index 0000000..5d5f2c8
--- /dev/null
+++ b/scripts/files/copyregdb_iwinfo_iwinfo_lib.c.patch
@@ -0,0 +1,18 @@
+--- package/iwinfo/src/iwinfo_lib.c.orig	2013-06-09 20:19:35.641117148 +0200
++++ package/iwinfo/src/iwinfo_lib.c	2013-06-09 20:20:38.421119157 +0200
+@@ -114,6 +114,7 @@
+ 	{ 0x434E /* CN */, "China" },
+ 	{ 0x434F /* CO */, "Colombia" },
+ 	{ 0x4352 /* CR */, "Costa Rica" },
++	{ 0x4354 /* CT */, "Catalonia (customized)" },
+ 	{ 0x4355 /* CU */, "Cuba" },
+ 	{ 0x4356 /* CV */, "Cape Verde" },
+ 	{ 0x4358 /* CX */, "Christmas Island" },
+@@ -269,6 +270,7 @@
+ 	{ 0x534D /* SM */, "San Marino" },
+ 	{ 0x534E /* SN */, "Senegal" },
+ 	{ 0x534F /* SO */, "Somalia" },
++	{ 0x5350 /* SP */, "Spain (customized)" },
+ 	{ 0x5352 /* SR */, "Suriname" },
+ 	{ 0x5354 /* ST */, "Sao Tome and Principe" },
+ 	{ 0x5356 /* SV */, "El Salvador" },
