ath6kl: don't use cfg80211_scan_request after cfg80211_scan_done()
authorKalle Valo <kvalo@qca.qualcomm.com>
Thu, 27 Oct 2011 15:47:46 +0000 (18:47 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:58:55 +0000 (12:58 +0200)
commitcb93821a9eaf53fb60addd689d3fa9f106790be1
treeb50f2f091c056ca7d82e240b35742c587aca5562
parent3101edef5cc43034cd809e7105ea2b366e9c7c00
ath6kl: don't use cfg80211_scan_request after cfg80211_scan_done()

Use of cfg80211_scan_request is not valid after calling cfg80211_scan_done()
but ath6kl_cfg80211_scan_complete_event() was doing exactly that. Change
the function to call cfg80211_scan_done() last.

This was found during code review, I didn't see any visible problems
due to this bug.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c