LEFT | RIGHT |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # | 3 # |
4 # Copyright (c) 2017 Orange Labs | 4 # Copyright (c) 2017 Orange Labs |
5 # | 5 # |
6 # This program is free software; you can redistribute it and/or modify | 6 # This program is free software; you can redistribute it and/or modify |
7 # it under the terms of the GNU General Public License version 2 as | 7 # it under the terms of the GNU General Public License version 2 as |
8 # published by the Free Software Foundation; | 8 # published by the Free Software Foundation; |
9 # | 9 # |
10 # This program is distributed in the hope that it will be useful, | 10 # This program is distributed in the hope that it will be useful, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 fi | 114 fi |
115 done | 115 done |
116 done | 116 done |
117 | 117 |
118 #11ac/11ax combinations | 118 #11ac/11ax combinations |
119 for std in "${std_ac_ax[@]}" | 119 for std in "${std_ac_ax[@]}" |
120 do | 120 do |
121 for bw in "${bw_ac_ax[@]}" | 121 for bw in "${bw_ac_ax[@]}" |
122 do | 122 do |
123 #160 MHz not available in 2.4 GHz | 123 #160 MHz not available in 2.4 GHz |
124 [ ${std} = "11ax_2_4GHZ" ] && [ ${bw} = "160" ] && continue | 124 [ ${std} = "11ax_2_4GHZ" ] && ([ ${bw} = "80" ] || [ ${bw} = "160" ]) && con
tinue |
125 #for all other combinations continue | 125 #for all other combinations continue |
126 echo "===============================================" | 126 echo "===============================================" |
127 echo "Run for wifi-trans-example for ${std} and ${bw} MHz" | 127 echo "Run for wifi-trans-example for ${std} and ${bw} MHz" |
128 cd $wafDir | 128 cd $wafDir |
129 ./waf --run "wifi-trans-example --standard=$std --bw=$bw" | 129 ./waf --run "wifi-trans-example --standard=$std --bw=$bw" |
130 echo "Generate PSD using ${file}.tr" | 130 echo "Generate PSD using ${file}.tr" |
131 file="${pre}${std}-${bw}MHz${suf}" | 131 file="${pre}${std}-${bw}MHz${suf}" |
132 gnuplot ${file}.plt | 132 gnuplot ${file}.plt |
133 if test ! -f ${file}.png ; then | 133 if test ! -f ${file}.png ; then |
134 echo "PNG file (${file}.png) was not generated, something went wrong!" | 134 echo "PNG file (${file}.png) was not generated, something went wrong!" |
135 exit 1 | 135 exit 1 |
136 else | 136 else |
137 echo "PNG file (${file}.png) generated, remove .tr and .plt files" | 137 echo "PNG file (${file}.png) generated, remove .tr and .plt files" |
138 mv ${file}.png $outputDir | 138 mv ${file}.png $outputDir |
139 rm -f ${file}.* | 139 rm -f ${file}.* |
140 echo "" | 140 echo "" |
141 fi | 141 fi |
142 done | 142 done |
143 done | 143 done |
144 | 144 |
145 echo "Finished" | 145 echo "Finished" |
LEFT | RIGHT |