linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ath confusing log message "country IE"
@ 2018-04-18 14:46 Bernhard Gabler
  2018-04-18 14:55 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Gabler @ 2018-04-18 14:46 UTC (permalink / raw)
  To: Linux-Wireless mailing list

Dear all,

would it be possible to re-write the log message from
    "regdomain ... dynamically updated by country IE"
in a less ambiguous way, e.g. to:
    "regdomain ... dynamically updated by country-IE"
    "regdomain ... dynamically updated by country information element"
, please?

To the occasional reader, the following system log messages seem to 
convey that
  -  "DE" (Germany) was intended to be used, but
  -  "IE" (Ireland) was configured as regdomain.

     [ 2723.739071] ath: EEPROM regdomain: 0x8114
     [ 2723.739072] ath: EEPROM indicates we should expect a country code
     [ 2723.739073] ath: doing EEPROM country->regdmn map search
     [ 2723.739074] ath: country maps to regdmn code: 0x37
     [ 2723.739075] ath: Country alpha2 being used: DE
     [ 2723.739076] ath: Regpair used: 0x37
     [ 2723.739077] ath: regdomain 0x8114 dynamically updated by country IE

Only after intense googling, I now know that IE stands for "information 
element", not for Ireland. But this is not obvious at. To prevent others 
from confusion and wasting time on a non-problem, could please someone 
rewrite the log message?

Regards,
Bernhard

PS: The example log is from a machine with "Qualcomm Atheros QCA6174" 
but I fancy other drivers may show same/similar messages.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ath confusing log message "country IE"
  2018-04-18 14:46 ath confusing log message "country IE" Bernhard Gabler
@ 2018-04-18 14:55 ` Toke Høiland-Jørgensen
  2018-04-18 15:02   ` Steve deRosier
  2018-04-18 20:57   ` Johannes Berg
  0 siblings, 2 replies; 5+ messages in thread
From: Toke Høiland-Jørgensen @ 2018-04-18 14:55 UTC (permalink / raw)
  To: Bernhard Gabler, Linux-Wireless mailing list

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";

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: ath confusing log message "country IE"
  2018-04-18 14:55 ` Toke Høiland-Jørgensen
@ 2018-04-18 15:02   ` Steve deRosier
  2018-04-18 20:57   ` Johannes Berg
  1 sibling, 0 replies; 5+ messages in thread
From: Steve deRosier @ 2018-04-18 15:02 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen
  Cc: Bernhard Gabler, Linux-Wireless mailing list

On Wed, Apr 18, 2018 at 7:55 AM, Toke H=C3=B8iland-J=C3=B8rgensen <toke@tok=
e.dk> wrote:
> Bernhard Gabler <Bernhard_Gabler@web.de> writes:
>
>> Dear all,
>>
>> would it be possible to re-write the log message from
>>     "regdomain ... dynamically updated by country IE"
>> in a less ambiguous way, e.g. to:
>>     "regdomain ... dynamically updated by country-IE"
>>     "regdomain ... dynamically updated by country information element"
>> , please?
>>
>> To the occasional reader, the following system log messages seem to
>> convey that
>>   -  "DE" (Germany) was intended to be used, but
>>   -  "IE" (Ireland) was configured as regdomain.
>>
>>      [ 2723.739071] ath: EEPROM regdomain: 0x8114
>>      [ 2723.739072] ath: EEPROM indicates we should expect a country cod=
e
>>      [ 2723.739073] ath: doing EEPROM country->regdmn map search
>>      [ 2723.739074] ath: country maps to regdmn code: 0x37
>>      [ 2723.739075] ath: Country alpha2 being used: DE
>>      [ 2723.739076] ath: Regpair used: 0x37
>>      [ 2723.739077] ath: regdomain 0x8114 dynamically updated by country=
 IE
>>
>> Only after intense googling, I now know that IE stands for "information
>> element", not for Ireland. But this is not obvious at. To prevent others
>> from confusion and wasting time on a non-problem, could please someone
>> 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?
>

Instead of just rewording the message, perhaps adjusting it to show
more information would make it more clear:

    `regdomain 0x8114 dynamically updated by country I.E. to DE`

Assuming the message two lines higher is related, I know the
information is already there, but this way the line stands on its own,
is more information rich, and is also clear.

- Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ath confusing log message "country IE"
  2018-04-18 14:55 ` Toke Høiland-Jørgensen
  2018-04-18 15:02   ` Steve deRosier
@ 2018-04-18 20:57   ` Johannes Berg
  2018-04-19  9:10     ` Toke Høiland-Jørgensen
  1 sibling, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2018-04-18 20:57 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen, Bernhard Gabler,
	Linux-Wireless mailing list

On Wed, 2018-04-18 at 16:55 +0200, Toke Høiland-Jørgensen wrote:
> 
> 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?

Heh. Drop "information" entirely, the spec also did :-)

802.11-2016 just says

9.4.2 Elements
[...]
9.4.2.9 Country element

johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ath confusing log message "country IE"
  2018-04-18 20:57   ` Johannes Berg
@ 2018-04-19  9:10     ` Toke Høiland-Jørgensen
  0 siblings, 0 replies; 5+ messages in thread
From: Toke Høiland-Jørgensen @ 2018-04-19  9:10 UTC (permalink / raw)
  To: Johannes Berg, Bernhard Gabler, Linux-Wireless mailing list

Johannes Berg <johannes@sipsolutions.net> writes:

> On Wed, 2018-04-18 at 16:55 +0200, Toke H=C3=B8iland-J=C3=B8rgensen wrote:
>>=20
>> 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?
>
> Heh. Drop "information" entirely, the spec also did :-)
>
> 802.11-2016 just says
>
> 9.4.2 Elements
> [...]
> 9.4.2.9 Country element

Ah, excellent. Will send a proper patch :)

-Toke

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-19  9:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-18 14:46 ath confusing log message "country IE" Bernhard Gabler
2018-04-18 14:55 ` Toke Høiland-Jørgensen
2018-04-18 15:02   ` Steve deRosier
2018-04-18 20:57   ` Johannes Berg
2018-04-19  9:10     ` Toke Høiland-Jørgensen

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).