]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: add aborted parameter to ath6kl_cfg80211_scan_complete_event()
authorKalle Valo <kvalo@qca.qualcomm.com>
Tue, 1 Nov 2011 06:43:56 +0000 (08:43 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:58:59 +0000 (12:58 +0200)
commit16ea2919c4546fb72cecc7d5fdb3865e47fc7cc9
treedca02bc15366017ccb9fb8a01b4d136594ed0501
parentd0ea7ca9068ed5d7bf16db6e8dc04ca4af2054a0
ath6kl: add aborted parameter to ath6kl_cfg80211_scan_complete_event()

Currently it takes an error code as status, but what we really want to
tell is if the scan was aborted or not.

Also fix a bug where we were comparing firmware scan status values
with kernel error codes, which is obviously wrong. This meant
that ath6kl didn't detect when firmware informed about failed scans. I
doubt that this fix doesn't make any difference in practise but it
still needs to be fixed. This is fixed by adding an enum for the success
status code and checking for that.

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