From: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
To: linux-wireless@vger.kernel.org
Cc: wireless-regdb@lists.infradead.org,
"Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Subject: [PATCH 2/2] cfg80211: fix parsing when db.txt ends on a rule
Date: Mon, 28 Oct 2013 03:19:46 +0100 [thread overview]
Message-ID: <1382926786-7904-3-git-send-email-mcgrof@do-not-panic.com> (raw)
In-Reply-To: <1382926786-7904-1-git-send-email-mcgrof@do-not-panic.com>
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>
---
net/wireless/genregdb.awk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk
index 95baf61..13b982d 100755
--- a/net/wireless/genregdb.awk
+++ b/net/wireless/genregdb.awk
@@ -140,6 +140,8 @@ active && /^[ \t]*$/ {
}
END {
+ if (active)
+ print_tail_country()
print regdb "};"
print ""
print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);"
--
1.8.4.rc3
next prev parent reply other threads:[~2013-10-28 2:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-28 2:19 [PATCH 0/2] cfg80211: a few genregdb.awk updates Luis R. Rodriguez
2013-10-28 2:19 ` [PATCH 1/2] cfg80211: add function helpers to genregdb.awk Luis R. Rodriguez
2013-10-28 2:19 ` Luis R. Rodriguez [this message]
2013-10-28 13:58 ` [PATCH 0/2] cfg80211: a few genregdb.awk updates Johannes Berg
2013-11-07 18:54 ` John W. Linville
2013-11-11 14:12 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382926786-7904-3-git-send-email-mcgrof@do-not-panic.com \
--to=mcgrof@do-not-panic.com \
--cc=linux-wireless@vger.kernel.org \
--cc=wireless-regdb@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).