cfg80211: fix parsing when db.txt ends on a rule
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Mon, 28 Oct 2013 02:19:46 +0000 (03:19 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:50:58 +0000 (20:50 +0100)
If genregdb.awk assumes the file will end with an
extra empty line or a comment line. This is could
not be true so just address this.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Acked-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/genregdb.awk

index 42cd3fd..9a8217d 100644 (file)
@@ -143,6 +143,8 @@ active && /^[ \t]*$/ {
 }
 
 END {
+       if (active)
+               print_tail_country()
        print regdb "};"
        print ""
        print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);"