diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-10-27 22:19:46 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-11-25 14:50:58 -0500 |
commit | ae689390b09d1f5b274c83dbbd3836fedb692e31 (patch) | |
tree | f5b3845c1e233585f440edcb3857868a6d60b276 /net/wireless/genregdb.awk | |
parent | af9b223551634ce1881de258169f3a1ea686a865 (diff) |
cfg80211: fix parsing when db.txt ends on a rule
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>
Diffstat (limited to 'net/wireless/genregdb.awk')
-rw-r--r-- | net/wireless/genregdb.awk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk index 42cd3fd2aa14..9a8217d2a908 100644 --- a/net/wireless/genregdb.awk +++ b/net/wireless/genregdb.awk | |||
@@ -143,6 +143,8 @@ active && /^[ \t]*$/ { | |||
143 | } | 143 | } |
144 | 144 | ||
145 | END { | 145 | END { |
146 | if (active) | ||
147 | print_tail_country() | ||
146 | print regdb "};" | 148 | print regdb "};" |
147 | print "" | 149 | print "" |
148 | print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);" | 150 | print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);" |