提交 ae689390 编写于 作者: L Luis R. Rodriguez 提交者: 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: NLuis R. Rodriguez <mcgrof@do-not-panic.com>
Acked-by: NJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册