diff --git a/Rakefile b/Rakefile index 258e0b2..41b122f 100644 --- a/Rakefile +++ b/Rakefile @@ -18,6 +18,7 @@ def wifi(name) wlans.each do |id, wlan| wlan_config.sub!("", wlan['channel'].to_s) wlan_config.sub!("", wlan['bssid'].to_s) + wlan_config.sub!("", wlan['txpower'].to_s) end #wlan_config.gsub!("# option channel", " option channel") wlan_config.gsub!("# option macaddr", " option macaddr") diff --git a/configurations.yml b/configurations.yml index dc9613f..d00c900 100644 --- a/configurations.yml +++ b/configurations.yml @@ -12,9 +12,11 @@ configurations: 0: bssid: 0e:50:00:11:00:55 channel: 157 + txpower: 30 1: bssid: 0e:24:00:11:00:55 channel: 12 + txpower: 20 mixins: - all - archer-c5 @@ -26,9 +28,11 @@ configurations: 0: bssid: 0e:50:00:11:00:50 channel: 157 + txpower: 30 1: bssid: 0e:24:00:11:00:50 channel: 12 + txpower: 30 mixins: - all - dap2965 @@ -40,9 +44,11 @@ configurations: 0: bssid: 0e:50:00:11:00:51 channel: 60 + txpower: 30 1: bssid: 0e:24:00:11:00:51 channel: 6 + txpower: 30 mixins: - all - dap2965 @@ -55,9 +61,11 @@ configurations: 0: bssid: 0e:50:00:11:00:52 channel: 157 + txpower: 30 1: bssid: 0e:24:00:11:00:52 channel: 6 + txpower: 30 mixins: - all - linksys @@ -69,9 +77,11 @@ configurations: 0: bssid: 0e:50:00:11:00:53 channel: 44 + txpower: 30 1: bssid: 0e:24:00:11:00:53 channel: 12 + txpower: 30 mixins: - all - dap2965 @@ -83,9 +93,11 @@ configurations: 0: bssid: 0e:50:00:11:00:54 channel: 60 + txpower: 30 1: bssid: 0e:24:00:11:00:54 channel: 12 + txpower: 30 mixins: - all - archer-c5 @@ -97,9 +109,11 @@ configurations: 0: bssid: 0e:50:00:11:00:56 channel: 108 + txpower: 30 1: bssid: 0e:24:00:11:00:56 channel: 1 + txpower: 30 mixins: - all - dap2965 @@ -112,9 +126,11 @@ configurations: 0: bssid: 0e:50:00:11:00:59 channel: 108 + txpower: 30 1: bssid: 0e:24:00:11:00:59 channel: 1 + txpower: 30 mixins: - all - archer-c5 @@ -126,9 +142,11 @@ configurations: 0: bssid: 0e:50:00:11:00:58 channel: 44 + txpower: 30 1: bssid: 0e:24:00:11:00:58 channel: 12 + txpower: 30 mixins: - all - linksys @@ -141,9 +159,11 @@ configurations: 0: bssid: 0e:50:00:00:00:60 channel: 44 + txpower: 30 1: bssid: 0e:24:00:00:00:60 channel: 1 + txpower: 30 mixins: - all - linksys @@ -155,9 +175,11 @@ configurations: 0: bssid: 0e:50:00:00:00:61 channel: 157 + txpower: 30 1: bssid: 0e:24:00:00:00:61 channel: 12 + txpower: 30 mixins: - all - linksys @@ -170,9 +192,11 @@ configurations: 0: bssid: 0e:50:00:00:00:62 channel: 108 + txpower: 30 1: bssid: 0e:24:00:00:00:62 channel: 6 + txpower: 30 mixins: - all - archer-c5 diff --git a/files/archer-c5/etc/config/wireless b/files/archer-c5/etc/config/wireless index 22d4257..0f4b6d4 100644 --- a/files/archer-c5/etc/config/wireless +++ b/files/archer-c5/etc/config/wireless @@ -3,7 +3,7 @@ config wifi-device radio0 option hwmode 11a option path 'pci0000:01/0000:01:00.0' option channel - option txpower '30' + option txpower '' option htmode VHT80 option distance '20' option require_mode 'n' @@ -28,7 +28,7 @@ config wifi-device radio1 option hwmode 11g option path 'platform/qca955x_wmac' option channel - option txpower '20' + option txpower '' option htmode 'HT20' option distance '20' option require_mode 'g' diff --git a/files/dap2965/etc/config/wireless b/files/dap2965/etc/config/wireless index 2139d8c..a740188 100644 --- a/files/dap2965/etc/config/wireless +++ b/files/dap2965/etc/config/wireless @@ -3,7 +3,7 @@ config wifi-device radio0 option hwmode 11a option path 'pci0000:00/0000:00:00.0' option channel - option txpower '30' + option txpower '' option htmode VHT80 option distance '20' option require_mode 'n' @@ -28,7 +28,7 @@ config wifi-device radio1 option hwmode 11g option path 'platform/qca955x_wmac' option channel - option txpower '20' + option txpower '' option htmode 'HT20' option distance '20' option require_mode 'g' diff --git a/files/linksys/etc/config/wireless b/files/linksys/etc/config/wireless index 400048d..6d134ea 100644 --- a/files/linksys/etc/config/wireless +++ b/files/linksys/etc/config/wireless @@ -3,7 +3,7 @@ config wifi-device radio0 option hwmode 11a option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0' option channel - option txpower '30' + option txpower '' option htmode VHT80 option distance '20' option require_mode 'n' @@ -28,7 +28,7 @@ config wifi-device radio1 option hwmode 11g option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0' option channel - option txpower '20' + option txpower '' option htmode 'HT20' option distance '20' option require_mode 'g' diff --git a/files/wdr-4300/etc/config/wireless b/files/wdr-4300/etc/config/wireless index e7ac597..7d4c909 100644 --- a/files/wdr-4300/etc/config/wireless +++ b/files/wdr-4300/etc/config/wireless @@ -3,7 +3,7 @@ config wifi-device radio0 option hwmode 11g option path 'platform/ar934x_wmac' option channel - option txpower '20' + option txpower '' option htmode 'HT20' option distance '20' option require_mode 'g' @@ -28,7 +28,7 @@ config wifi-device radio1 option hwmode 11a option path 'pci0000:00/0000:00:00.0' option channel - option txpower '30' + option txpower '' option htmode HT40 option distance '20' option require_mode 'n' diff --git a/files/wr-1043nd/etc/config/wireless b/files/wr-1043nd/etc/config/wireless index 9c9a099..8db8a1b 100644 --- a/files/wr-1043nd/etc/config/wireless +++ b/files/wr-1043nd/etc/config/wireless @@ -3,7 +3,7 @@ config wifi-device radio0 option hwmode 11g option path 'platform/qca955x_wmac' option channel - option txpower '20' + option txpower '' option htmode 'HT20' option distance '20' option require_mode 'g'