ath6kl: Fix off by one error in scan completion
authorKyle Roeschley <kyle.roeschley@ni.com>
Wed, 5 Dec 2018 07:43:13 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:44 +0000 (15:34 +0100)
commit94a5e819da6b8fd73d3464d23bd979b748e184b8
tree3dceaab21cbfe54faee267947042f3969e65f01f
parent6a535e91abe0e7113cfc11dcc1dd5523b2f91dde
ath6kl: Fix off by one error in scan completion

[ Upstream commit 5803c12816c43bd09e5f4247dd9313c2d9a2c41b ]

When ath6kl was reworked to share code between regular and scheduled scans
in commit 3b8ffc6a22ba ("ath6kl: Configure probed SSID list consistently"),
probed SSID entry changed from 1-index to 0-indexed. However,
ath6kl_cfg80211_scan_complete_event() was missed in that change. Fix its
indexing so that we correctly clear out the probed SSID list.

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath6kl/cfg80211.c