Skip to content

Commit

Permalink
ath9k: fix wrong string size for strncmp in write_file_spec_scan_ctl()
Browse files Browse the repository at this point in the history
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Maks Naumov authored and John W. Linville committed Aug 25, 2014
1 parent 29e20aa commit ded3fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/spectral.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ded3fb4

Please sign in to comment.