提交 ded3fb4c 编写于 作者: M Maks Naumov 提交者: John W. Linville

ath9k: fix wrong string size for strncmp in write_file_spec_scan_ctl()

Signed-off-by: NMaks Naumov <maksqwe1@ukr.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 29e20aa6
......@@ -253,7 +253,7 @@ static ssize_t write_file_spec_scan_ctl(struct file *file,
if (strncmp("trigger", buf, 7) == 0) {
ath9k_spectral_scan_trigger(sc->hw);
} else if (strncmp("background", buf, 9) == 0) {
} else if (strncmp("background", buf, 10) == 0) {
ath9k_spectral_scan_config(sc->hw, SPECTRAL_BACKGROUND);
ath_dbg(common, CONFIG, "spectral scan: background mode enabled\n");
} else if (strncmp("chanscan", buf, 8) == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册