diff mbox series

wireless-regdb: Update regulatory rules for Iran (IR) on both 2.4 and 5Ghz for 2019

Message ID 20250218025957.13818-1-pkshih@gmail.com
State Superseded
Headers show
Series wireless-regdb: Update regulatory rules for Iran (IR) on both 2.4 and 5Ghz for 2019 | expand

Commit Message

Ping-Ke Shih Feb. 18, 2025, 2:59 a.m. UTC
From: Ping-Ke Shih <pkshih@realtek.com>

Decision No. 4004-01DEC-CRA, 8th Edition - February 2019,
Radiocommunications and Regulatory Organization.
General radio license for the use of parts of the frequency bands
2400-2483.5 MHz, 5150-5250 MHz, 5350-5250 MHz, 5470-5725 MHz, and
5850-5725 MHz in radio access networks. [1]

* 2400 - 2483.5
  - 100 mW e.i.r.p
  - 10dBm in every 1Mhz
* 5150 - 5250
  - 200 mW e.i.r.p
  - 10dBm/MHz per 1MHz bandwidth or -6dBm/25kHz per 25kHz bandwidth
* 5250 - 5350
  - 200 mW e.i.r.p
  - 10dBm/MHz per 1MHz bandwidth
  - DFS
* 5470 - 5725
  - 1000 mW e.i.r.p
  - 17dBm/MHz per 1MHz bandwidth
  - DFS
  - If TPC is not used, the maximum radiated e.i.r.p. must be reduced
    by 3dB.
  - Outdoor use only
    (Since NO-INDOOR flag is not supported by current format, don't add
     this entry.)
* 5725 - 5850
  - 4000 mW e.i.r.p
  - 36dBm in every 500 kHz
  - DFS
  - Outdoor use only
    (Since NO-INDOOR flag is not supported by current format, don't add
     this entry.)

These information is from [4], Mobin Aydinfar shared the official link [1]
(inaccessible from outside of Iran), a mirror version [2] and translated
version [3].

[1] https://asnad.cra.ir/fa/Public/Documents/Details/73af8590-f065-eb11-968f-0050569b0899
[2] https://mobintestserver.ir/Iran-2.4Ghz-5Ghz-cra-official-doc.pdf
[3] https://mobintestserver.ir/Iran-2.4Ghz-5Ghz-cra-official-table.ods
[4] https://lore.kernel.org/linux-wireless/c9ccf5ba-c091-45c4-9283-970bfa4f1afe@mobintestserver.ir/T/#u

Cc: Mobin Aydinfar <mobin@mobintestserver.ir>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 db.txt | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Comments

Ping-Ke Shih Feb. 19, 2025, 2:39 a.m. UTC | #1
Johannes Berg <johannes@sipsolutions.net> wrote:
>
> On Tue, 2025-02-18 at 13:29 +0800, Chen-Yu Tsai wrote:
> > There are NO-INDOOR and NO-OUTDOOR flags for the database. The kernel
> > doesn't have a matching IEEE80211_CHAN_OUTDOOR_ONLY flag though.
> > Maybe that should be added?
> >
> > Johannes, what do you think?
>
> Good question. I guess we could have it, though I'm not sure we'd have
> any mechanics to actually _use_ such a thing right now? Something, say
> hostapd (?) would have to promise it's actually outdoors?
>
> More information doesn't hurt and I don't mind adding it at all, but I
> do think we'd probably not be able to use it at this time.
>
> Or we could add it to the db.txt file but ignore it in parsing now and
> skip the band for the binary for now?
>
> The thing is I don't think we have a good way to say "older kernel skips
> this range" - or perhaps we set the NO_IR flag so older kernel cannot
> use it but then allow OUTDOOR_ONLY to override that given some
> conditions?
>

Thanks for the suggestion. I have made a patch to allow NO-INDOOR flag, but
not parse into binary.

Since I'm very not familiar with Python, please review the patch carefully.
Thank you.
diff mbox series

Patch

diff --git a/db.txt b/db.txt
index d56ad32d31c9..0189355dff17 100644
--- a/db.txt
+++ b/db.txt
@@ -934,9 +934,12 @@  country IN:
 	(5470 - 5725 @ 160), (24), DFS
 	(5725 - 5875 @ 80), (30)
 
-country IR: DFS-JP
-	(2402 - 2482 @ 40), (20)
-	(5735 - 5835 @ 80), (30)
+# Source:
+# https://asnad.cra.ir/fa/Public/Documents/Details/73af8590-f065-eb11-968f-0050569b0899
+country IR: DFS-ETSI
+	(2400 - 2483.5 @ 40), (100 mW)
+	(5150 - 5250 @ 80), (200 mW)
+	(5250 - 5350 @ 80), (200 mW), DFS
 
 # IS as part of CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
 # and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)