Merge pull request #6723 from knarrff/channel_analysis__base-channel
[project/luci.git] / modules / luci-mod-status / htdocs / luci-static / resources / view / status / channel_analysis.js
index 54e9054aa8af584f2fcfc67b39ca3f0ffe59fb84..fa6d26538c5403de51d1039b443cb2d9211df07b 100644 (file)
@@ -306,7 +306,10 @@ return view.extend({
                                                }
                                        }
 
-                               if (res.vht_operation != null) {
+                               /* if channel_width <= 40, refer to HT (above) for actual channel width,
+                                * as vht_operation.channel_width == 40 really only means that the used
+                                * bandwidth is <= 40 and could be 20 Mhz as well */
+                               if (res.vht_operation != null && res.vht_operation.channel_width > 40) {
                                        center_channels[0] = res.vht_operation.center_freq_1;
                                        if (res.vht_operation.channel_width == 80) {
                                                chan_width = 8;