Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / drivers / net / wireless / ath / ath10k / spectral.c
index 4671cfb..a0e7eeb 100644 (file)
@@ -338,7 +338,7 @@ static ssize_t write_file_spec_scan_ctl(struct file *file,
                } else {
                        res = -EINVAL;
                }
-       } else if (strncmp("background", buf, 9) == 0) {
+       } else if (strncmp("background", buf, 10) == 0) {
                res = ath10k_spectral_scan_config(ar, SPECTRAL_BACKGROUND);
        } else if (strncmp("manual", buf, 6) == 0) {
                res = ath10k_spectral_scan_config(ar, SPECTRAL_MANUAL);