lede(openwrt) iw command

2020-02-26

iw command help

Usage:	iw [options] command
Options:
	--debug		enable netlink debugging
	--version	show version (4.14)
Commands:
	dev <devname> set power_save <on|off>
	dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
	dev <devname> set monitor <flag>*
	dev <devname> set meshid <meshid>
	dev <devname> set type <type>
	dev <devname> set 4addr <on|off>
	dev <devname> set noack_map <map>
	dev <devname> set mcast_rate <rate in Mbps>
	phy <phyname> set name <new name>
	phy <phyname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
	phy <phyname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
	dev <devname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
	dev <devname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
	phy <phyname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
	dev <devname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
	phy <phyname> set frag <fragmentation threshold|off>
	phy <phyname> set rts <rts threshold|off>
	phy <phyname> set retry [short <limit>] [long <limit>]
	phy <phyname> set netns { <pid> | name <nsname> }
	phy <phyname> set coverage <coverage class>
	phy <phyname> set distance <auto|distance>
	phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
	dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
	phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
	phy <phyname> set antenna_gain <antenna gain in dBm>
	dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]
	dev <devname> get mesh_param [<param>]
	dev <devname> get power_save <param>
	help [command]
	event [-t|-r] [-f]
	phy <phyname> info
	list
	phy
	features
	phy <phyname> channels
	dev <devname> del
	phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
	dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
	dev <devname> info
	dev
	dev <devname> ibss join <SSID> <freq in MHz> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
	dev <devname> ibss leave
	dev <devname> station set <MAC address> vlan <ifindex>
	dev <devname> station get <MAC address>
	dev <devname> station del <MAC address> [subtype <subtype>] [reason-code <code>]
	dev <devname> station dump [-v]
	dev <devname> survey dump
	dev <devname> mesh join <mesh ID> [[freq <freq in MHz> <NOHT|HT20|HT40+|HT40-|80MHz>] [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>] [beacon-interval <time in TUs>] [dtim-period <value>] [vendor_sync on|off] [<param>=<value>]*
	dev <devname> mesh leave
	dev <devname> mpath get <MAC address>
	dev <devname> mpath del <MAC address>
	dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
	dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
	dev <devname> mpath dump
	dev <devname> mpp get <MAC address>
	dev <devname> mpp dump
	dev <devname> scan [-u] [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
	dev <devname> scan dump [-u]
	dev <devname> scan trigger [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
	dev <devname> scan abort
	reg set <ISO/IEC 3166-1 alpha2>
	reg get
	phy <phyname> reg get
	dev <devname> disconnect
	dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465] [mfp:req/opt/no]
	dev <devname> auth <SSID> <bssid> <type:open|shared> <freq in MHz> [key 0:abcde d:1:6162636465]
	dev <devname> link

Commands that use the netdev ('dev') can also be given the
'wdev' instead to identify the device.

You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)

Do NOT screenscrape this tool, we don't consider its output stable.

路由器为 K3

iw  wlan1  set power_save off 关闭节能模式

iw  wlan1  set power_save off
iw  wlan0  set power_save off

iw  wlan0  get mesh_param

Possible mesh parameters are:
 - mesh_retry_timeout
 - mesh_confirm_timeout
 - mesh_holding_timeout
 - mesh_max_peer_links
 - mesh_max_retries
 - mesh_ttl
 - mesh_element_ttl
 - mesh_auto_open_plinks
 - mesh_hwmp_max_preq_retries
 - mesh_path_refresh_time
 - mesh_min_discovery_timeout
 - mesh_hwmp_active_path_timeout
 - mesh_hwmp_preq_min_interval
 - mesh_hwmp_net_diameter_traversal_time
 - mesh_hwmp_rootmode
 - mesh_hwmp_rann_interval
 - mesh_gate_announcements
 - mesh_fwding
 - mesh_sync_offset_max_neighor
 - mesh_rssi_threshold
 - mesh_hwmp_active_path_to_root_timeout
 - mesh_hwmp_root_interval
 - mesh_hwmp_confirmation_interval
 - mesh_power_mode
 - mesh_awake_window
 - mesh_plink_timeout
Usage:	iw [options] dev <devname> get mesh_param [<param>]

Retrieve mesh parameter (run command without any to see available ones).

Options:
	--debug		enable netlink debuggin

iw  wlan1  get mesh_param

Possible mesh parameters are:
 - mesh_retry_timeout
 - mesh_confirm_timeout
 - mesh_holding_timeout
 - mesh_max_peer_links
 - mesh_max_retries
 - mesh_ttl
 - mesh_element_ttl
 - mesh_auto_open_plinks
 - mesh_hwmp_max_preq_retries
 - mesh_path_refresh_time
 - mesh_min_discovery_timeout
 - mesh_hwmp_active_path_timeout
 - mesh_hwmp_preq_min_interval
 - mesh_hwmp_net_diameter_traversal_time
 - mesh_hwmp_rootmode
 - mesh_hwmp_rann_interval
 - mesh_gate_announcements
 - mesh_fwding
 - mesh_sync_offset_max_neighor
 - mesh_rssi_threshold
 - mesh_hwmp_active_path_to_root_timeout
 - mesh_hwmp_root_interval
 - mesh_hwmp_confirmation_interval
 - mesh_power_mode
 - mesh_awake_window
 - mesh_plink_timeout
Usage:	iw [options] dev <devname> get mesh_param [<param>]

Retrieve mesh parameter (run command without any to see available ones).

Options:
	--debug		enable netlink debugging

iw list 

Wiphy phy1
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 2:
		Capabilities: 0x1062
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		VHT Capabilities (0x0c1b4064):
			Max MPDU length: 3895
			Supported Channel Width: 160 MHz
			short GI (80 MHz)
			short GI (160/80+80 MHz)
			MU Beamformer
			MU Beamformee
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
		Frequencies:
			* 5170 MHz [34] (disabled)
			* 5180 MHz [36] (20.0 dBm)
			* 5190 MHz [38] (20.0 dBm)
			* 5200 MHz [40] (20.0 dBm)
			* 5210 MHz [42] (20.0 dBm)
			* 5220 MHz [44] (20.0 dBm)
			* 5230 MHz [46] (20.0 dBm)
			* 5240 MHz [48] (20.0 dBm)
			* 5260 MHz [52] (20.0 dBm)
			* 5280 MHz [56] (20.0 dBm)
			* 5300 MHz [60] (20.0 dBm)
			* 5320 MHz [64] (20.0 dBm)
			* 5500 MHz [100] (20.0 dBm)
			* 5520 MHz [104] (20.0 dBm)
			* 5540 MHz [108] (20.0 dBm)
			* 5560 MHz [112] (20.0 dBm)
			* 5580 MHz [116] (20.0 dBm)
			* 5600 MHz [120] (20.0 dBm)
			* 5620 MHz [124] (20.0 dBm)
			* 5640 MHz [128] (20.0 dBm)
			* 5660 MHz [132] (20.0 dBm)
			* 5680 MHz [136] (20.0 dBm)
			* 5700 MHz [140] (20.0 dBm)
			* 5720 MHz [144] (20.0 dBm)
			* 5745 MHz [149] (20.0 dBm)
			* 5765 MHz [153] (20.0 dBm)
			* 5785 MHz [157] (20.0 dBm)
			* 5805 MHz [161] (20.0 dBm)
			* 5825 MHz [165] (20.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
Wiphy phy0
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 1:
		Capabilities: 0x1022
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (disabled)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match

iw phy

Wiphy phy1
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 2:
		Capabilities: 0x1062
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		VHT Capabilities (0x0c1b4064):
			Max MPDU length: 3895
			Supported Channel Width: 160 MHz
			short GI (80 MHz)
			short GI (160/80+80 MHz)
			MU Beamformer
			MU Beamformee
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
		Frequencies:
			* 5170 MHz [34] (disabled)
			* 5180 MHz [36] (20.0 dBm)
			* 5190 MHz [38] (20.0 dBm)
			* 5200 MHz [40] (20.0 dBm)
			* 5210 MHz [42] (20.0 dBm)
			* 5220 MHz [44] (20.0 dBm)
			* 5230 MHz [46] (20.0 dBm)
			* 5240 MHz [48] (20.0 dBm)
			* 5260 MHz [52] (20.0 dBm)
			* 5280 MHz [56] (20.0 dBm)
			* 5300 MHz [60] (20.0 dBm)
			* 5320 MHz [64] (20.0 dBm)
			* 5500 MHz [100] (20.0 dBm)
			* 5520 MHz [104] (20.0 dBm)
			* 5540 MHz [108] (20.0 dBm)
			* 5560 MHz [112] (20.0 dBm)
			* 5580 MHz [116] (20.0 dBm)
			* 5600 MHz [120] (20.0 dBm)
			* 5620 MHz [124] (20.0 dBm)
			* 5640 MHz [128] (20.0 dBm)
			* 5660 MHz [132] (20.0 dBm)
			* 5680 MHz [136] (20.0 dBm)
			* 5700 MHz [140] (20.0 dBm)
			* 5720 MHz [144] (20.0 dBm)
			* 5745 MHz [149] (20.0 dBm)
			* 5765 MHz [153] (20.0 dBm)
			* 5785 MHz [157] (20.0 dBm)
			* 5805 MHz [161] (20.0 dBm)
			* 5825 MHz [165] (20.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
Wiphy phy0
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 1:
		Capabilities: 0x1022
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (disabled)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match

set us for wifi code 

iw reg get

global
country US: DFS-FCC
	(2402 - 2472 @ 40), (N/A, 30), (N/A)
	(5170 - 5250 @ 80), (N/A, 30), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 30), (N/A), AUTO-BW
	(5490 - 5730 @ 160), (N/A, 30), (N/A)
	(5735 - 5835 @ 80), (N/A, 30), (N/A)
	(57240 - 63720 @ 2160), (N/A, 40), (N/A)

iw phy1 channels

Band 1:
	* 2412 MHz [1]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2417 MHz [2]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2422 MHz [3]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2427 MHz [4]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2432 MHz [5]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2437 MHz [6]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2442 MHz [7]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2447 MHz [8]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2452 MHz [9]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2457 MHz [10]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2462 MHz [11]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2467 MHz [12] (disabled)
	* 2472 MHz [13] (disabled)
	* 2484 MHz [14] (disabled)

iw phy0 channels

Band 2:
	* 5170 MHz [34] (disabled)
	* 5180 MHz [36]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5190 MHz [38]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5200 MHz [40]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5210 MHz [42]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5220 MHz [44]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5230 MHz [46]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80 VHT160
	* 5240 MHz [48]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5260 MHz [52]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5280 MHz [56]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5300 MHz [60]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5320 MHz [64]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80 VHT160
	* 5500 MHz [100]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5520 MHz [104]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5540 MHz [108]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5560 MHz [112]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5580 MHz [116]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5600 MHz [120]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5620 MHz [124]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5640 MHz [128]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5660 MHz [132]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5680 MHz [136]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5700 MHz [140]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5720 MHz [144]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80 VHT160
	* 5745 MHz [149]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5765 MHz [153]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5785 MHz [157]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5805 MHz [161]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5825 MHz [165]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80

各国家wifi 发射功率表

Country Code/
Country
1000 Series
Access Point Regulatory Domain
802.11 Bands Channels Allowed Maximum Transmit Power (Radio Tx + Antenna Gain = EIRP) Indoor/
Outdoor
Use
Frequency Range (GHz) Regulatory Authority
AT/
Austria
-E a 36, 40, 44, 48 60 mW EIRP In 5.15-5.25 BMV/
FSB-LD047
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
AU/
Australia
-N a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.725-5.825
ACA
b 1 - 11 200 mW EIRP Both 2.4-2.4835
BE/
Belgium
-E a 36, 40, 44, 48
52, 56, 60, 64
120 mW EIRP
120 mW EIRP
In
In
5.15-5.25 BIPT/
Annexe B3 Interface radio HIPERLAN
b/g 1 - 12
13
100 mW EIRP
100 mW EIRP
In
Out
2.4-2.4835
BR/
Brazil
-C a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
200 mW EIRP1 W EIRP InBoth 5.725-5.85 Anatel/
Resolution 305
b/g 1 - 11 1 W EIRP Both 2.4-2.4835
CA/
Canada
-A a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
Industry
Canada
RSS-210
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
CH/
Switzerland and Liechtenstein
-E a 36, 40, 44, 48
52, 56, 60, 64
200 mW EIRP
200 mW EIRP
In
In
5.15-5.25
5.25-5.35
OFCOM
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
CN/
China
-C a 149, 153, 157, 161 150 mW+6 dBi~600 mW Both 5.725-5.825 RRL/
MIC Notice 2003-13
b/g 1-13 150 mW+6 dBi~600 mW Both 2.4-2.4835
CY/
Cyprus
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
(tbd)
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
CZ/
Czech Republic
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.725-5.825
CTO
b 1 - 11 200 mW EIRP Both 2.4-2.4835
DE/
Germany
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
RegTP/
wlan35
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
DK/
Denmark
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
ITST/
Radio interface specification 00 007
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
EE/
Estonia
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
SIDEAMET
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
ES/
Spain
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
Ministry of Telecom
b/g 1 - 11 100 mW EIRP In 2.412-2.472
FI/
Finland
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
FICORA/
RLAN Notice
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
FR/
France
-E a 36, 40, 44, 48
52, 56, 60, 64
200 mW EIRP
200 mW EIRP
In
In
5.15-5.25
5.25-5.35
A.R.T./
Decision 01-441
b/g 1 - 7
8 - 11
100 mW EIRP
100 mW EIRP
Both
In
2.4-2.4835
2.4-2.454
GB/
United Kingdom
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
UKRA/
IR2006
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
GR/
Greece
-E b/g 1 - 11 100 mW EIRP In 2.4-2.4835 Ministry of Transport & Comm.
HK/
Hong Kong
-N a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
200 mW EIRP
200 mW EIRP
1 W+6 dBi=4 W
Both
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
OFTA
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
HU/
Hungary
-E a 36, 40, 44, 48
52, 56, 60, 64
200 mW EIRP In 5.15-5.25
5.25-5.35
HIF
b/g 1 - 11 1 W EIRP Both 2.4-2.4835
ID/
Indonesia
-R a N/A N/A N/A 5.725-5.875 PDT
b/g 1-13 100 mW EIRP In 2.4-2.5 
IE/
Ireland
-E a 36, 40, 44, 48
52, 56, 60, 64
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
COMREG/
ODTR 00/61, ODTR 0062
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
IL/
Israel
-I a 36, 40, 44, 48
52, 56, 60, 64
200 mW EIRP
200 mW EIRP
In
In
5.15-5.25
5.25-5.35
MOC
b/g 1 - 13 100 mW EIRP Both 2.4-2.4835
ILO/
Israel
OUTDOOR
  a 36, 40, 44, 48
52, 56, 60, 64
200 mW EIRP
200 mW EIRP
In
In
5.15-5.25
5.25-5.35
MOC
b/g 5 - 13 100 mW EIRP Both 2.4-2.4835
IN/
India
(TBD) a N/A N/A N/A N/A WPC
b/g   4 W EIRP In 2.4-2.4835
IS/
Iceland
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
PTA
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
IT/
Italy
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
Ministry of Comm
b/g 1 - 11 100 mW EIRP In 2.4-2.4835
JP/
Japan
-J a 1-3
1-4
100 mW EIRP
100 mW EIRP
Both
In
5.03-5.09
5.15-5.25
Telec/ARIB STD-T66
b 1-14 10 mW/MHz~200mW EIRP Both 2.4-2.497
g 1-13 10 mW/MHz~200mW EIRP Both 2.4-2.497
KR/
Republic of Korea
-C a 149, 153, 157, 161 150 mW+6 dBi~600 mW Both 5.725-5.825 RRL/
MIC Notice 2003-13
b/g 1-13 150 mW+6 dBi~600 mW Both 2.4-2.4835
LT/
Lithuania
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
LTR
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
LU/
Luxembourg
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
ILR
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
LV/
Latvia
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
(tbd)
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
MY/
Malaysia
-E b/g 1-13 100 mW EIRP In 2.4-2.5  CMC
NL/
Netherlands
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
Radiocom Agency
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
NO/
Norway
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
NPT
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
NZ/
New Zealand
-N a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
RSM
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
PH/
Philippines
-C a (tbd) (tbd) (tbd) 5.725-5.875 PDC
b (tbd) 100 mW EIRP (tbd) 2.4-2.4835
PL/
Poland
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
200 mW EIRP1 W EIRP InBoth 2.4-2.4835 Office of Telecom & Post
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
PT/
Portugal
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
NCA
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
SE/
Sweden
-E a 36, 40, 44, 48
52, 56, 60, 64
104, 108, 112, 116, 120, 124, 128, 132, 140
200 mW EIRP
200 mW EIRP
1 W EIRP
In
In
Both
5.15-5.25
5.25-5.35
5.47-5.725
PTS
b/g 1 - 11 100 mW EIRP Both 2.4-2.4835
SG/
Singapore
-S a 36, 40, 44, 48,
52, 56, 60, 64,
149, 153, 157, 161
200 mW EIRP
200 mW EIRP
1 W EIRP
Both
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
IDA/
TS SSS Issue 1
b/g 1 - 13 200 mW EIRP Both 2.4-2.4835
SI/
Slovenia
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
ATRP
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
SK/
Slovak Republic
-E a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
Telecom Admin.
b/g 1 - 11 1 W+Restricted Antennas Both 2.4-2.4835
TH/
Thailand
-R a N/A N/A N/A 5.725-5.875 PDT
b/g 1-13 100 mW EIRP In 2.4-2.5 
TW/
Taiwan
-T a 56, 60, 64,
100 - 140
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
5.25-5.35
5.47-5.725
5.725-5.825
PDT
b/g 1-13 1 W EIRP Both 2.4-2.4835
US/
United States of America
-A a 36, 40, 44, 48
52, 56, 60, 64
149, 153, 157, 161
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
1 W+6 dBi=4 W
In
Both
Both
5.15-5.25
5.25-5.35
5.725-5.85
FCC
Part 15
b/g 1 - 11 1 W Conducted Output Both 2.4-2.4835
USE/
United States of America
-A a 36, 40, 44, 48
52, 56, 60, 64
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
In
Both
5.15-5.25
5.25-5.35
FCC
Part 15
b/g 1 - 11 1 W Conducted Output Both 2.4-2.4835
USL/
United States of America LOW
-A a 36, 40, 44, 48
52, 56, 60, 64
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
In
Both
5.15-5.25
5.25-5.35
FCC
Part 15
b/g 1 - 11 1 W Conducted Output Both 2.4-2.4835
USX/
United States of America EXTENDED
(TBD) a 36, 40, 44, 48
52, 56, 60, 64
50 mW+6 dBi=200 mW
250 mW+6 dBi=1 W
In
Both
5.15-5.25
5.25-5.35
FCC
Part 15
b/g 1 - 11 1 W Conducted Output Both 2.4-2.4835
ZA/
South Africa
(TBD) a N/A N/A N/A 5.25-5.35
5.725-5.825
(tbd)
b/g 1-13 1 W EIRP Both 2.4-2.4835

set tw for wifi code

Wiphy phy0
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 1:
		Capabilities: 0x1022
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (20.0 dBm)
			* 2484 MHz [14] (disabled)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
Wiphy phy1
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 2:
		Capabilities: 0x1062
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		VHT Capabilities (0x0c1b4064):
			Max MPDU length: 3895
			Supported Channel Width: 160 MHz
			short GI (80 MHz)
			short GI (160/80+80 MHz)
			MU Beamformer
			MU Beamformee
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
		Frequencies:
			* 5170 MHz [34] (20.0 dBm)
			* 5180 MHz [36] (20.0 dBm)
			* 5190 MHz [38] (20.0 dBm)
			* 5200 MHz [40] (20.0 dBm)
			* 5210 MHz [42] (20.0 dBm)
			* 5220 MHz [44] (20.0 dBm)
			* 5230 MHz [46] (20.0 dBm)
			* 5240 MHz [48] (20.0 dBm)
			* 5260 MHz [52] (20.0 dBm) (radar detection)
			* 5280 MHz [56] (20.0 dBm) (radar detection)
			* 5300 MHz [60] (20.0 dBm) (radar detection)
			* 5320 MHz [64] (20.0 dBm) (radar detection)
			* 5500 MHz [100] (20.0 dBm) (radar detection)
			* 5520 MHz [104] (20.0 dBm) (radar detection)
			* 5540 MHz [108] (20.0 dBm) (radar detection)
			* 5560 MHz [112] (20.0 dBm) (radar detection)
			* 5580 MHz [116] (20.0 dBm) (radar detection)
			* 5600 MHz [120] (20.0 dBm) (radar detection)
			* 5620 MHz [124] (20.0 dBm) (radar detection)
			* 5640 MHz [128] (20.0 dBm) (radar detection)
			* 5660 MHz [132] (20.0 dBm) (radar detection)
			* 5680 MHz [136] (20.0 dBm) (radar detection)
			* 5700 MHz [140] (20.0 dBm) (radar detection)
			* 5720 MHz [144] (disabled)
			* 5745 MHz [149] (20.0 dBm)
			* 5765 MHz [153] (20.0 dBm)
			* 5785 MHz [157] (20.0 dBm)
			* 5805 MHz [161] (20.0 dBm)
			* 5825 MHz [165] (20.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
      
      
      
global
country TW: DFS-FCC
	(2400 - 2483 @ 40), (N/A, 30), (N/A)
	(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
	(5250 - 5350 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
	(5470 - 5725 @ 160), (N/A, 23), (0 ms), DFS
	(5725 - 5850 @ 80), (N/A, 30), (N/A)
	(57000 - 66000 @ 2160), (N/A, 40), (N/A)
  
root@OpenWrt:~# iw phy0  channels
Band 1:
	* 2412 MHz [1]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2417 MHz [2]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2422 MHz [3]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2427 MHz [4]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2432 MHz [5]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2437 MHz [6]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2442 MHz [7]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2447 MHz [8]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2452 MHz [9]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2457 MHz [10]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2462 MHz [11]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2467 MHz [12]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2472 MHz [13]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2484 MHz [14] (disabled)


  root@OpenWrt:~# iw phy1 channels
Band 2:
	* 5170 MHz [34]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5180 MHz [36]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5190 MHz [38]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5200 MHz [40]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5210 MHz [42]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5220 MHz [44]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5230 MHz [46]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80 VHT160
	* 5240 MHz [48]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5260 MHz [52]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5280 MHz [56]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5300 MHz [60]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5320 MHz [64]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5500 MHz [100]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5520 MHz [104]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5540 MHz [108]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5560 MHz [112]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5580 MHz [116]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5600 MHz [120]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5620 MHz [124]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5640 MHz [128]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5660 MHz [132]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5680 MHz [136]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5700 MHz [140]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80 VHT160
	  DFS state: usable (for 13383 sec)
	  DFS CAC time: 60000 ms
	* 5720 MHz [144] (disabled)
	* 5745 MHz [149]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5765 MHz [153]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5785 MHz [157]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5805 MHz [161]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5825 MHz [165]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80

set 00 for wifi code

root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~# iw phy0 channels
Band 1:
	* 2412 MHz [1]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2417 MHz [2]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2422 MHz [3]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2427 MHz [4]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2432 MHz [5]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2437 MHz [6]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2442 MHz [7]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2447 MHz [8]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2452 MHz [9]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2457 MHz [10]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2462 MHz [11]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2467 MHz [12] (disabled)
	* 2472 MHz [13] (disabled)
	* 2484 MHz [14] (disabled)
root@OpenWrt:~#
root@OpenWrt:~# iw phy1  channels
Band 2:
	* 5170 MHz [34] (disabled)
	* 5180 MHz [36]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5190 MHz [38] (disabled)
	* 5200 MHz [40]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80
	* 5210 MHz [42] (disabled)
	* 5220 MHz [44]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5230 MHz [46] (disabled)
	* 5240 MHz [48]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80
	* 5260 MHz [52]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5280 MHz [56]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5300 MHz [60]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5320 MHz [64]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5500 MHz [100]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5520 MHz [104]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5540 MHz [108]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5560 MHz [112]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5580 MHz [116]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5600 MHz [120]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5620 MHz [124]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5640 MHz [128]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5660 MHz [132]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5680 MHz [136]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5700 MHz [140]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5720 MHz [144]
	  Maximum TX power: 20.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 1335 sec)
	  DFS CAC time: 0 ms
	* 5745 MHz [149]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5765 MHz [153]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80
	* 5785 MHz [157]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5805 MHz [161]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80
	* 5825 MHz [165]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz
root@OpenWrt:~#
root@OpenWrt:~# iw list
Wiphy phy1
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 2:
		Capabilities: 0x1062
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		VHT Capabilities (0x0c1b4064):
			Max MPDU length: 3895
			Supported Channel Width: 160 MHz
			short GI (80 MHz)
			short GI (160/80+80 MHz)
			MU Beamformer
			MU Beamformee
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
		Frequencies:
			* 5170 MHz [34] (disabled)
			* 5180 MHz [36] (20.0 dBm)
			* 5190 MHz [38] (disabled)
			* 5200 MHz [40] (20.0 dBm)
			* 5210 MHz [42] (disabled)
			* 5220 MHz [44] (20.0 dBm)
			* 5230 MHz [46] (disabled)
			* 5240 MHz [48] (20.0 dBm)
			* 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
			* 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
			* 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
			* 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
			* 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
			* 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
			* 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
			* 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
			* 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
			* 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
			* 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
			* 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
			* 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
			* 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
			* 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
			* 5720 MHz [144] (20.0 dBm) (no IR, radar detection)
			* 5745 MHz [149] (20.0 dBm)
			* 5765 MHz [153] (20.0 dBm)
			* 5785 MHz [157] (20.0 dBm)
			* 5805 MHz [161] (20.0 dBm)
			* 5825 MHz [165] (20.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
Wiphy phy0
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 1:
		Capabilities: 0x1022
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (disabled)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
root@OpenWrt:~#
root@OpenWrt:~# iw reg get
global
country 00: DFS-UNSET
	(2402 - 2472 @ 40), (N/A, 20), (N/A)
	(2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
	(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
	(57240 - 63720 @ 2160), (N/A, 0), (N/A)

root@OpenWrt:~#











set SG for wifi code

root@OpenWrt:~# iw     phy0 channels
Band 1:
	* 2412 MHz [1]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2417 MHz [2]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2422 MHz [3]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2427 MHz [4]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 2432 MHz [5]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2437 MHz [6]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2442 MHz [7]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2447 MHz [8]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2452 MHz [9]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2457 MHz [10]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2462 MHz [11]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2467 MHz [12]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2472 MHz [13]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 2484 MHz [14] (disabled)
root@OpenWrt:~#
root@OpenWrt:~# iw     phy1 channels
Band 2:
	* 5170 MHz [34]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5180 MHz [36]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5190 MHz [38]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5200 MHz [40]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5210 MHz [42]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5220 MHz [44]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5230 MHz [46]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80 VHT160
	* 5240 MHz [48]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5260 MHz [52]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 2232 sec)
	  DFS CAC time: 60000 ms
	* 5280 MHz [56]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 2232 sec)
	  DFS CAC time: 60000 ms
	* 5300 MHz [60]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 2232 sec)
	  DFS CAC time: 60000 ms
	* 5320 MHz [64]
	  Maximum TX power: 20.0 dBm
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80 VHT160
	  DFS state: usable (for 2232 sec)
	  DFS CAC time: 60000 ms
	* 5500 MHz [100] (disabled)
	* 5520 MHz [104] (disabled)
	* 5540 MHz [108] (disabled)
	* 5560 MHz [112] (disabled)
	* 5580 MHz [116] (disabled)
	* 5600 MHz [120] (disabled)
	* 5620 MHz [124] (disabled)
	* 5640 MHz [128] (disabled)
	* 5660 MHz [132] (disabled)
	* 5680 MHz [136] (disabled)
	* 5700 MHz [140] (disabled)
	* 5720 MHz [144] (disabled)
	* 5745 MHz [149]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5765 MHz [153]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5785 MHz [157]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5805 MHz [161]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5825 MHz [165]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40- VHT80
root@OpenWrt:~#
root@OpenWrt:~# iw reg get
global
country SG: DFS-FCC
	(2400 - 2483 @ 40), (N/A, 23), (N/A)
	(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
	(5250 - 5350 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5725 - 5850 @ 80), (N/A, 30), (N/A)

root@OpenWrt:~#















root@OpenWrt:~# iw list
Wiphy phy1
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 2:
		Capabilities: 0x1062
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		VHT Capabilities (0x0c1b4064):
			Max MPDU length: 3895
			Supported Channel Width: 160 MHz
			short GI (80 MHz)
			short GI (160/80+80 MHz)
			MU Beamformer
			MU Beamformee
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
		Frequencies:
			* 5170 MHz [34] (20.0 dBm)
			* 5180 MHz [36] (20.0 dBm)
			* 5190 MHz [38] (20.0 dBm)
			* 5200 MHz [40] (20.0 dBm)
			* 5210 MHz [42] (20.0 dBm)
			* 5220 MHz [44] (20.0 dBm)
			* 5230 MHz [46] (20.0 dBm)
			* 5240 MHz [48] (20.0 dBm)
			* 5260 MHz [52] (20.0 dBm) (radar detection)
			* 5280 MHz [56] (20.0 dBm) (radar detection)
			* 5300 MHz [60] (20.0 dBm) (radar detection)
			* 5320 MHz [64] (20.0 dBm) (radar detection)
			* 5500 MHz [100] (disabled)
			* 5520 MHz [104] (disabled)
			* 5540 MHz [108] (disabled)
			* 5560 MHz [112] (disabled)
			* 5580 MHz [116] (disabled)
			* 5600 MHz [120] (disabled)
			* 5620 MHz [124] (disabled)
			* 5640 MHz [128] (disabled)
			* 5660 MHz [132] (disabled)
			* 5680 MHz [136] (disabled)
			* 5700 MHz [140] (disabled)
			* 5720 MHz [144] (disabled)
			* 5745 MHz [149] (20.0 dBm)
			* 5765 MHz [153] (20.0 dBm)
			* 5785 MHz [157] (20.0 dBm)
			* 5805 MHz [161] (20.0 dBm)
			* 5825 MHz [165] (20.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
Wiphy phy0
	max # scan SSIDs: 10
	max scan IEs length: 2048 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 roaming.
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
	Band 1:
		Capabilities: 0x1022
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-31
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (20.0 dBm)
			* 2484 MHz [14] (disabled)
	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 1
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ AP } <= 4,
		   total <= 4, #channels <= 1, STA/AP BI must match
root@OpenWrt:~#

my  wireless config


config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path '18000000.axi/bcma0:7/pci0000:00/0000:00:00.0/0000:01:00.0'
	option country 'US'
	option mu_beamformer '1'
	option channel '11'
	option vendor_vht '1'
	option htmode 'HT20'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'wirelessddd'
	option key '1234567890'
	option wpa_group_rekey '0'
	option wpa_pair_rekey '0'
	option wpa_master_rekey '0'
	option encryption 'psk2'
	option disassoc_low_ack '0'

config wifi-device 'radio1'
	option type 'mac80211'
	option hwmode '11a'
	option path '18000000.axi/bcma0:8/pci0001:00/0001:00:00.0/0001:01:00.0'
	option htmode 'VHT80'
	option country 'US'
	option channel '149'
	option mu_beamformer '1'
	option vendor_vht '1'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid 'wireless44'
	option key '1234567890'
	option wpa_group_rekey '0'
	option wpa_pair_rekey '0'
	option wpa_master_rekey '0'
	option encryption 'psk2'
	option disassoc_low_ack '0'