]> git.karo-electronics.de Git - linux-beck.git/commit
ath10k: use the right length of "background"
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sat, 29 Oct 2016 11:17:37 +0000 (13:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:23 +0000 (11:39 +0100)
commit15e0355a1ec51e1eaf140dddeaf55d70eb91d183
tree5f4520e1f87468229b26ad36f3111e3d3c82ab13
parentac86312e0870ad6d35b97cc79964acbf58e99424
ath10k: use the right length of "background"

commit 31b239824ece321c09bdb8e61e1d14814eaba38b upstream.

The word "background" contains 10 characters so the third argument of
strncmp() need to be 10 in order to match this prefix correctly.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Fixes: 855aed1220d2 ("ath10k: add spectral scan feature")
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath10k/spectral.c