From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: Bernhard Gabler <Bernhard_Gabler@web.de>,
Linux-Wireless mailing list <linux-wireless@vger.kernel.org>
Subject: Re: ath confusing log message "country IE"
Date: Wed, 18 Apr 2018 16:55:55 +0200 [thread overview]
Message-ID: <87o9ig1s3o.fsf@toke.dk> (raw)
In-Reply-To: <660b1538-0ccb-8f1a-ebe0-632b0e14a46b@web.de>
Bernhard Gabler <Bernhard_Gabler@web.de> writes:
> Dear all,
>
> would it be possible to re-write the log message from
> =C2=A0=C2=A0 "regdomain ... dynamically updated by country IE"
> in a less ambiguous way, e.g. to:
> =C2=A0=C2=A0 "regdomain ... dynamically updated by country-IE"
> =C2=A0=C2=A0 "regdomain ... dynamically updated by country information e=
lement"
> , please?
>
> To the occasional reader, the following system log messages seem to=20
> convey that
> =C2=A0-=C2=A0 "DE" (Germany) was intended to be used, but
> =C2=A0-=C2=A0 "IE" (Ireland) was configured as regdomain.
>
> =C2=A0=C2=A0=C2=A0 [ 2723.739071] ath: EEPROM regdomain: 0x8114
> =C2=A0=C2=A0=C2=A0 [ 2723.739072] ath: EEPROM indicates we should expect=
a country code
> =C2=A0=C2=A0=C2=A0 [ 2723.739073] ath: doing EEPROM country->regdmn map =
search
> =C2=A0=C2=A0=C2=A0 [ 2723.739074] ath: country maps to regdmn code: 0x37
> =C2=A0=C2=A0=C2=A0 [ 2723.739075] ath: Country alpha2 being used: DE
> =C2=A0=C2=A0=C2=A0 [ 2723.739076] ath: Regpair used: 0x37
> =C2=A0=C2=A0=C2=A0 [ 2723.739077] ath: regdomain 0x8114 dynamically upda=
ted by country IE
>
> Only after intense googling, I now know that IE stands for "information=20
> element", not for Ireland. But this is not obvious at. To prevent others=
=20
> from confusion and wasting time on a non-problem, could please someone=20
> rewrite the log message?
Heh, that is a good point, I think. The patch below should fix it; but I
worry that the log lines become quite long, then? Maybe better to use
"country-IE", but that could also be confused. "country inf.elem"
perhaps?
Ah, the bike-shedding possibilities are endless! :)
-Toke
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 7b42f0bacfd8..7f432734dbe9 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1464,7 +1464,7 @@ const char *reg_initiator_name(enum nl80211_reg_initi=
ator initiator)
case NL80211_REGDOM_SET_BY_DRIVER:
return "driver";
case NL80211_REGDOM_SET_BY_COUNTRY_IE:
- return "country IE";
+ return "country information element";
default:
WARN_ON(1);
return "bug";
next prev parent reply other threads:[~2018-04-18 14:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 14:46 ath confusing log message "country IE" Bernhard Gabler
2018-04-18 14:55 ` Toke Høiland-Jørgensen [this message]
2018-04-18 15:02 ` Steve deRosier
2018-04-18 20:57 ` Johannes Berg
2018-04-19 9:10 ` Toke Høiland-Jørgensen
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=87o9ig1s3o.fsf@toke.dk \
--to=toke@toke.dk \
--cc=Bernhard_Gabler@web.de \
--cc=linux-wireless@vger.kernel.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).