Search Linux Wireless

Re: ath confusing log message "country IE"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bernhard Gabler <Bernhard_Gabler@xxxxxx> 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 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?

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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux