diff options
author | Maks Naumov <maksqwe1@ukr.net> | 2014-08-16 00:41:07 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-25 15:39:23 -0400 |
commit | ded3fb4cba11a678dbc44b2d70ebd95ba9684427 (patch) | |
tree | 35c569fb8f2bd8b964a5086980c6a66194dc8588 /drivers/net | |
parent | 29e20aa6c6aff35c81d4da2e2cd516dadb569061 (diff) | |
download | linux-ded3fb4cba11a678dbc44b2d70ebd95ba9684427.tar.gz linux-ded3fb4cba11a678dbc44b2d70ebd95ba9684427.tar.bz2 linux-ded3fb4cba11a678dbc44b2d70ebd95ba9684427.zip |
ath9k: fix wrong string size for strncmp in write_file_spec_scan_ctl()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/spectral.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/spectral.c b/drivers/net/wireless/ath/ath9k/spectral.c index 5fe29b9f8fa2..8f68426ca653 100644 --- a/drivers/net/wireless/ath/ath9k/spectral.c +++ b/drivers/net/wireless/ath/ath9k/spectral.c @@ -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) { |