All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/52] ath: Synchronize regd mappings with qcacld-2.0 4.0.11.181
@ 2018-03-01 14:18 Sven Eckelmann
  2018-03-01 14:18 ` [PATCH 01/52] ath: Add regulatory mapping for Bahamas Sven Eckelmann
                   ` (52 more replies)
  0 siblings, 53 replies; 56+ messages in thread
From: Sven Eckelmann @ 2018-03-01 14:18 UTC (permalink / raw)
  To: linux-wireless; +Cc: Kalle Valo, Luis R. Rodriguez, Sven Eckelmann

The mappings from ath was not synced with the QCA driver since 2009. Only
two minor fixes were integrated in 2011. Since then, a lot of regd changes
were integrated in the close source QCA driver which are now used but not
supported by the Open Source driver. This either prevents the use of the
OSS driver on such devices or the wrong conformance test limits (CTLs) may
be used.

To get the integrated we would first get access to the closed source QCA
driver and a special OSS-NDA with QCA. This doesn't seem to be possible at
the moment and thus other sources for the changes have to be found. One of
them is the qcacld-2.0 source repository [1] which contains the QCA
regdomain.h and regdomain_common.h which was relicensed by QCA as ISC. It
isn't the newest version from the QCA driver but at least received some
updates which are not present in ath's regd.

This repository [1] (commit 48f9ab5d5c161549be098997fa0e3602c1547213 to be
more precise) was now used to find differences and ad some missing
mappings.

The title of the mappings describe what exactly was changed. The "Add
regulatory mapping for" patches introduce new country codes/mappings and
thus don't change old mappings. The "Add regulatory mapping for" patches
are similar but for regulatory code mappings instead of country code
mappings.

More interesting might be the "Map XXXX to YYYY" patches because they
modify already existing mappings. The result are following changes to the
selected CTLs:

* CTRY_ALBANIA:             5GHz: NO_CTL -> ETSI
* CTRY_ALGERIA:             5GHz: NO_CTL -> ETSI
* CTRY_BANGLADESH:          5GHz: NO_CTL -> FCC
* CTRY_BRUNEI_DARUSSALAM:   5GHz: FCC -> ETSI
* CTRY_HONDURAS:            5GHz: NO_CTL -> FCC
* CTRY_INDONESIA:           5GHz: NO_CTL -> FCC
* CTRY_ISRAEL:              5GHz: NO_CTL -> ETSI
* CTRY_KOREA_NORTH:       2.4GHz: ETSI -> MKK
* CTRY_KOREA_ROC:         2.4GHz: ETSI -> MKK
* CTRY_KOREA_ROC3:        2.4GHz: ETSI -> MKK
* CTRY_LEBANON:             5GHz: NO_CTL -> FCC
* CTRY_MACEDONIA:           5GHz: NO_CTL -> ETSI
* CTRY_MALAYSIA:            5GHz: ETSI -> FCC
* CTRY_MEXICO:            2.4GHz: FCC-> ETSI
* CTRY_PAKISTAN:            5GHz: NO_CTL -> FCC
* CTRY_ROMANIA:             5GHz: NO_CTL -> ETSI
* CTRY_RUSSIA:              5GHz: NO_CTL -> ETSI
* CTRY_SAUDI_ARABIA:        5GHz: NO_CTL -> FCC
* CTRY_SINGAPORE:           5GHz: ETSI -> FCC
* CTRY_UKRAINE:             5GHz: NO_CTL -> ETSI
* CTRY_UAE:                 5GHz: NO_CTL -> ETSI
* CTRY_VIET_NAM:            5GHz: NO_CTL -> ETSI
* CTRY_ZIMBABWE:            5GHz: NO_CTL -> ETSI


Btw. I have not removed CTRY_SERBIA_MONTENEGRO, CTRY_KOREA_ROC2 or
APL2_APLD because this might break devices which have these programmed in
the EEPROM. And I have not added APL11_FCCA, APL12_WORLD and CTRY_MALDIVES
because only the code was in the qcacld-2.0 source code but not the actual
mapping.

I am relative confident that QCA also has following extra countries:

* Afghanistan
* American Samoa
* Anguilla
* Bhutan
* Burkina Faso
* Cayman Islands
* Central Africa Republic
* Chad
* Christmas Islands
* Dominica
* Ethiopia
* French Guiana
* French Polynesia
* Ghana
* Guadeloupe
* Guyana
* Cote d'Ivoire
* Lesotho
* Malawi
* Maldives
* Marshall Islands
* Martinique
* Mauitania
* Mayotte
* Micronesia
* Moldova
* Mongolia
* Namibia
* Nigeria
* Northern Mariana Islands
* Palau
* Reunion
* St Barthelemy
* St Kitts Nevis
* St Lucia
* St Martin
* St Pierre Miquelon
* St Vincent Grenadiens
* Samoa
* Senegal
* Suriname
* Togo
* Turks Caicos
* Vanuatu
* Virgin Islands
* Wallis Futuna

+ a lot of extra regdomain codes (0x15, 0x16, 0x17, 0x18, 0x19, 0x3c, 0x4f,
0x51, 0x57, 0x59) and the corresponding mappings.

There might be even a lot more. But we will miss out on them unless QCA
somehow opensources their current:

* regdomain_common.h or at least:

  - enum EnumRd
  - ahCmnRegDomainPairs
  - ahCmnAllCountries
  - ahCmnRegDomains

* regdomain.h or at least:

  - enum CountryCode

Kind regards,
	Sven

[1] https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-2.0

Sven Eckelmann (52):
  ath: Add regulatory mapping for Bahamas
  ath: Add regulatory mapping for Bermuda
  ath: Add regulatory mapping for Japan (J56)
  ath: Add regulatory mapping for Japan KDDI
  ath: Add regulatory mapping for Kenya
  ath: Add regulatory mapping for Mauritius
  ath: Add regulatory mapping for Montenegro
  ath: Add regulatory mapping for Nicaragua
  ath: Add regulatory mapping for Paraguya
  ath: Add regulatory mapping for Rwanda
  ath: Add regulatory mapping for Serbia
  ath: Add regulatory mapping for Tanzania
  ath: Add regulatory mapping for Uganda
  ath: Add regulatory mapping for United States for AP
  ath: Add regulatory mapping for APL2_FCCA
  ath: Add regulatory mapping for APL10_MKKC
  ath: Add regulatory mapping for APL13_WORLD
  ath: Add regulatory mapping for ETSI8_WORLD
  ath: Add regulatory mapping for ETSI9_WORLD
  ath: Add regulatory mapping for FCC3_ETSIC
  ath: Switch APL9_WORLD to 2.4GHz MKK CTL
  ath: Map Albania to ETSI1_WORLD
  ath: Map Algeria to APL13_WORLD
  ath: Map Australia to FCC3_WORLD
  ath: Map Bangladesh to APL1_WORLD
  ath: Map Brunei Darussalam to APL6_WORLD
  ath: Map Bulgaria to ETSI1_WORLD
  ath: Map Colombia to FCC1_FCCA
  ath: Map Czech to ETSI1_WORLD
  ath: Map Honduras to FCC3_WORLD
  ath: Map Indonesia to APL2_WORLD
  ath: Map Isreal to ETSI3_WORLD
  ath: Map Japan to MKK5_MKKA2
  ath: Map South Korea to APL10_MKKC
  ath: Map Lebanon to APL1_WORLD
  ath: Map Macedonia to ETSI1_WORLD
  ath: Map Malasia to FCC1_WORLD
  ath: Map Mexico to FCC1_WORLD
  ath: Map New Zealand to FCC3_ETSIC
  ath: Map Pakistan to APL1_WORLD
  ath: Map Peru to APL1_WORLD
  ath: Map Philippines to FCC3_WORLD
  ath: Map Romania to ETSI1_WORLD
  ath: Map Russia to ETSI8_WORLD
  ath: Map Saudi Arabia to FCC2_WORLD
  ath: Map Singapore to FCC3_WORLD
  ath: Map Taiwan to APL7_FCCA
  ath: Map Ukraine to ETSI9_WORLD
  ath: Map U.A.E. to ETSI1_WORLD
  ath: Map Venezuela to FCC1_WORLD
  ath: Map Vietnam to ETSI3_WORLD
  ath: Map Zimbabwe to ETSI1_WORLD

 drivers/net/wireless/ath/regd.h        | 10 ++++
 drivers/net/wireless/ath/regd_common.h | 98 ++++++++++++++++++++++------------
 2 files changed, 73 insertions(+), 35 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2018-05-25 10:02 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01 14:18 [PATCH 00/52] ath: Synchronize regd mappings with qcacld-2.0 4.0.11.181 Sven Eckelmann
2018-03-01 14:18 ` [PATCH 01/52] ath: Add regulatory mapping for Bahamas Sven Eckelmann
2018-05-25 10:02   ` [01/52] " Kalle Valo
2018-03-01 14:18 ` [PATCH 02/52] ath: Add regulatory mapping for Bermuda Sven Eckelmann
2018-03-01 14:18 ` [PATCH 03/52] ath: Add regulatory mapping for Japan (J56) Sven Eckelmann
2018-03-01 14:18 ` [PATCH 04/52] ath: Add regulatory mapping for Japan KDDI Sven Eckelmann
2018-03-01 14:18 ` [PATCH 05/52] ath: Add regulatory mapping for Kenya Sven Eckelmann
2018-03-01 14:18 ` [PATCH 06/52] ath: Add regulatory mapping for Mauritius Sven Eckelmann
2018-03-01 14:18 ` [PATCH 07/52] ath: Add regulatory mapping for Montenegro Sven Eckelmann
2018-03-01 14:18 ` [PATCH 08/52] ath: Add regulatory mapping for Nicaragua Sven Eckelmann
2018-03-01 14:18 ` [PATCH 09/52] ath: Add regulatory mapping for Paraguya Sven Eckelmann
2018-03-01 14:18 ` [PATCH 10/52] ath: Add regulatory mapping for Rwanda Sven Eckelmann
2018-03-01 14:18 ` [PATCH 11/52] ath: Add regulatory mapping for Serbia Sven Eckelmann
2018-03-01 14:18 ` [PATCH 12/52] ath: Add regulatory mapping for Tanzania Sven Eckelmann
2018-03-01 14:18 ` [PATCH 13/52] ath: Add regulatory mapping for Uganda Sven Eckelmann
2018-03-01 14:18 ` [PATCH 14/52] ath: Add regulatory mapping for United States for AP Sven Eckelmann
2018-03-01 14:18 ` [PATCH 15/52] ath: Add regulatory mapping for APL2_FCCA Sven Eckelmann
2018-03-01 14:18 ` [PATCH 16/52] ath: Add regulatory mapping for APL10_MKKC Sven Eckelmann
2018-03-01 14:18 ` [PATCH 17/52] ath: Add regulatory mapping for APL13_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 18/52] ath: Add regulatory mapping for ETSI8_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 19/52] ath: Add regulatory mapping for ETSI9_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 20/52] ath: Add regulatory mapping for FCC3_ETSIC Sven Eckelmann
2018-03-01 14:18 ` [PATCH 21/52] ath: Switch APL9_WORLD to 2.4GHz MKK CTL Sven Eckelmann
2018-03-01 14:18 ` [PATCH 22/52] ath: Map Albania to ETSI1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 23/52] ath: Map Algeria to APL13_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 24/52] ath: Map Australia to FCC3_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 25/52] ath: Map Bangladesh to APL1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 26/52] ath: Map Brunei Darussalam to APL6_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 27/52] ath: Map Bulgaria to ETSI1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 28/52] ath: Map Colombia to FCC1_FCCA Sven Eckelmann
2018-03-01 14:18 ` [PATCH 29/52] ath: Map Czech to ETSI1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 30/52] ath: Map Honduras to FCC3_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 31/52] ath: Map Indonesia to APL2_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 32/52] ath: Map Isreal to ETSI3_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 33/52] ath: Map Japan to MKK5_MKKA2 Sven Eckelmann
2018-03-01 14:18 ` [PATCH 34/52] ath: Map South Korea to APL10_MKKC Sven Eckelmann
2018-03-01 14:18 ` [PATCH 35/52] ath: Map Lebanon to APL1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 36/52] ath: Map Macedonia to ETSI1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 37/52] ath: Map Malasia to FCC1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 38/52] ath: Map Mexico " Sven Eckelmann
2018-03-01 14:18 ` [PATCH 39/52] ath: Map New Zealand to FCC3_ETSIC Sven Eckelmann
2018-03-01 14:18 ` [PATCH 40/52] ath: Map Pakistan to APL1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 41/52] ath: Map Peru " Sven Eckelmann
2018-03-01 14:18 ` [PATCH 42/52] ath: Map Philippines to FCC3_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 43/52] ath: Map Romania to ETSI1_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 44/52] ath: Map Russia to ETSI8_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 45/52] ath: Map Saudi Arabia to FCC2_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 46/52] ath: Map Singapore to FCC3_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 47/52] ath: Map Taiwan to APL7_FCCA Sven Eckelmann
2018-03-01 14:18 ` [PATCH 48/52] ath: Map Ukraine to ETSI9_WORLD Sven Eckelmann
2018-03-01 14:18 ` [PATCH 49/52] ath: Map U.A.E. to ETSI1_WORLD Sven Eckelmann
2018-03-01 14:19 ` [PATCH 50/52] ath: Map Venezuela to FCC1_WORLD Sven Eckelmann
2018-03-01 14:19 ` [PATCH 51/52] ath: Map Vietnam to ETSI3_WORLD Sven Eckelmann
2018-03-01 14:19 ` [PATCH 52/52] ath: Map Zimbabwe to ETSI1_WORLD Sven Eckelmann
2018-05-24 14:10 ` [PATCH 00/52] ath: Synchronize regd mappings with qcacld-2.0 4.0.11.181 Kalle Valo
2018-05-24 18:43   ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.