Modify

Opened 3 years ago

Last modified 3 years ago

#18656 new defect

hostapd auto-selects indoor channels if DFS is enabled

Reported by: andrenarchy Owned by: developers
Priority: normal Milestone:
Component: packages Version: Barrier Breaker 14.07
Keywords: Cc: nbd@…

Description

If DFS is enabled, hostapd may select an indoor channel. There should be support for pure outdoor sites since the use of indoor channels is not allowed in this setting (at least in regd DE).

The used wireless config (on barrier breaker r43770) is

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '136'
        option path 'pci0000:00/0000:00:00.0'
        option htmode 'HT20'
        option disabled '0'
        option country 'DE'
        option doth '1'
        option hwmode '11a'
        option diversity '1'

config wifi-iface          
        option ifname 'wlan1-dhcp-5'
        option network 'dhcp'
        option encryption 'none'
        option device 'radio1'
        option mode 'ap'   
        option ssid 'berlin.freifunk.net'

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by mi-la

same for region CZ:
# iw reg get
country CZ: DFS-ETSI

(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS
(5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS
(57000 - 66000 @ 2160), (N/A, 40), (N/A)

DFS is enabled also for indoor. How to choose only OUTDOOR channels - (5470 - 5725 @ 160)?

There is lot of traffic in my area, on every outdoor channel is at least a single wireless network. DFS then switches to an indoor channel. Unfortunatelly it is illegal in Czech Republic to use indoor channels for outdoor connections.

I have TP-Link WDR4300, but it is probably unrelated to this issue.

Last edited 3 years ago by mi-la (previous) (diff)

comment:2 Changed 3 years ago by mi-la

I found a temporary workaround thanks to the ticket #18211. It is possible to edit regdb.txt and disable indoor channels completely.

--- package/kernel/mac80211/files/regdb.txt	(revision 44053)
+++ package/kernel/mac80211/files/regdb.txt	(working copy)
@@ -289,11 +289,11 @@
 # implemented.
 country CZ: DFS-ETSI
 	(2400 - 2483.5 @ 40), (100 mW)
-	(5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
-	(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW
+	#(5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
+	#(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, AUTO-BW
 	(5470 - 5725 @ 160), (500 mW), DFS
 	# 60 gHz band channels 1-4, ref: Etsi En 302 567
-	(57000 - 66000 @ 2160), (40)
+	#(57000 - 66000 @ 2160), (40)

Then I have:

# iw reg get
country CZ: DFS-ETSI
        (2400 - 2483 @ 40), (N/A, 20), (N/A)
        (5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS
# iwinfo wlan1 freqlist
  5.500 GHz (Channel 100) [restricted]
  5.520 GHz (Channel 104) [restricted]
* 5.540 GHz (Channel 108) [restricted]
  5.560 GHz (Channel 112) [restricted]
  5.580 GHz (Channel 116) [restricted]
  5.600 GHz (Channel 120) [restricted]
  5.620 GHz (Channel 124) [restricted]
  5.640 GHz (Channel 128) [restricted]
  5.660 GHz (Channel 132) [restricted]
  5.680 GHz (Channel 136) [restricted]
  5.700 GHz (Channel 140) [restricted]

I've also tried just to remove DFS from line (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW but it stilled used indoor channels.

Still removing indoor channels is suitable when I need pure outdoor connection until a proper solution is found.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.