Help solve the problem with the width of the channels and the choice of the country

Dear OpenWrt gurus! Hello to you from Russia!

Help solve the problem with the width of the channels and the choice of the country. There is a MikroTik LHG5 device. In the stock firmware 5, 10, 20, 30, 40 MHz are available, as well as some frequencies that I cannot scan on the OpenWrt firmware. Please help with advice - in which direction to go. I am writing with the help of a translator. Sorry if with errors.

Model				MikroTik RouterBOARD LHG 5nD
Architecture			Atheros AR9344 rev 3
Firmware Version		OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch	(git-18.228.31946-f64b152)
Kernel Version		4.9.120
======================================================================================

root@OpenWrt:~# iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=25 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
br-lan    no wireless extensions.

======================================================================================

root@OpenWrt:~# iw phy0 info
Wiphy phy0
	max # scan SSIDs: 4
	max scan IEs length: 2261 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	max # scan plans: 1
	max scan plan interval: -1
	max scan plan iterations: 0
	Retry short limit: 7
	Retry long limit: 4
	Coverage class: 0 (up to 0m)
	Device supports AP-side u-APSD.
	Device supports T-DLS.
	Available Antennas: TX 0x3 RX 0x3
	Configured Antennas: TX 0x3 RX 0x3
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
		 * mesh point
		 * P2P-client
		 * P2P-GO
		 * outside context of a BSS
	Band 2:
		Capabilities: 0x11ef
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 8 usec (0x06)
		HT TX/RX MCS rate indexes supported: 0-15
		Frequencies:
			* 5180 MHz [36] (23.0 dBm)
			* 5200 MHz [40] (23.0 dBm)
			* 5220 MHz [44] (23.0 dBm)
			* 5240 MHz [48] (23.0 dBm)
			* 5260 MHz [52] (23.0 dBm) (radar detection)
			* 5280 MHz [56] (23.0 dBm) (radar detection)
			* 5300 MHz [60] (23.0 dBm) (radar detection)
			* 5320 MHz [64] (23.0 dBm) (radar detection)
			* 5500 MHz [100] (23.0 dBm) (radar detection)
			* 5520 MHz [104] (23.0 dBm) (radar detection)
			* 5540 MHz [108] (23.0 dBm) (radar detection)
			* 5560 MHz [112] (23.0 dBm) (radar detection)
			* 5580 MHz [116] (23.0 dBm) (radar detection)
			* 5600 MHz [120] (23.0 dBm) (radar detection)
			* 5620 MHz [124] (23.0 dBm) (radar detection)
			* 5640 MHz [128] (23.0 dBm) (radar detection)
			* 5660 MHz [132] (23.0 dBm) (radar detection)
			* 5680 MHz [136] (23.0 dBm) (radar detection)
			* 5700 MHz [140] (23.0 dBm) (radar detection)
			* 5745 MHz [149] (25.0 dBm)
			* 5765 MHz [153] (25.0 dBm)
			* 5785 MHz [157] (25.0 dBm)
			* 5805 MHz [161] (25.0 dBm)
			* 5825 MHz [165] (25.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,
		   total <= 2048, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz }

	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
root@OpenWrt:~# iw reg get
global
country US: DFS-FCC
	(2402 - 2472 @ 40), (N/A, 30), (N/A)
	(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
	(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
	(5735 - 5835 @ 80), (N/A, 30), (N/A)
	(57240 - 63720 @ 2160), (N/A, 40), (N/A)

phy#0
country US: DFS-FCC
	(2402 - 2472 @ 40), (N/A, 30), (N/A)
	(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
	(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
	(5735 - 5835 @ 80), (N/A, 30), (N/A)
	(57240 - 63720 @ 2160), (N/A, 40), (N/A)
File contents /etc/config/wireless
config wifi-device `radio0`
	option type `mac80211`
	option channel `36`
	option hwmode `11a`
	option path `platform/ar934x_wmac`
	option htmode `HT20`
	option disabled `1`

config wifi-device `default_radio0`
	option device `radio0`
	option network `lan`
	option mode `ap`
	option ssid `OpenWrt`
	option encryption `none`
  • I think you need to understand that OpenWrt does 20, 40, and 80/160 MHz on some devices. It doesn't do half or quarter channels by default.
  • You greeted us from Russia; but your WiFi is configured for United States
  • Regarding channels, see this chart:

Hope this helps.

This device is ath9k so it has a maximum bandwidth of 40 MHz. Only 20 and 40 are IEEE standard to interoperate with non-Atheros general wifi devices. These are accessed with htmode HT20 and HT40.

The chanbw option can select 5 or 10 and maybe 30 MHz. This is a radio-wide option so it goes under wifi-device not wifi-interface. Only other Atheros devices will be able to link with you using these non-standard bandwidths.

1 Like

US is installed by default after the firmware of the device. With the RouterOS firmware, all channels and widths are 5-10-15-20-30-40, so the hardware supports it. How to implement this support in OpenWrt? Change of region, patch, crack, etc.?

You were just told above:

See:

Screenshot%20from%202018-12-12%2011-27-11

You can easily change region (see image above). It is against the Community Guidelines to discuss patches and cracks to wireless in this manner. Anyways, they won't work for this - and aren't needed.

You will have to make the chanbw setting directly in the config file, it is not in the web interface. But there should be no need to patch or crack anything.

1 Like

It worked! Thanks for the help!

1 Like

@g00dboy If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)

You can also mark the reply that solved your problem:
grafik

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.