Commit ae689390 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Johannes Berg

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: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
Acked-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent af9b2235
...@@ -143,6 +143,8 @@ active && /^[ \t]*$/ { ...@@ -143,6 +143,8 @@ active && /^[ \t]*$/ {
} }
END { END {
if (active)
print_tail_country()
print regdb "};" print regdb "};"
print "" print ""
print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);" print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);"
......
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