mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
cfg80211: add request id to cfg80211_sched_scan_*() api
Have proper request id filled in the SCHED_SCAN_RESULTS and SCHED_SCAN_STOPPED notifications toward user-space by having the driver provide it through the api. Reviewed-by: Hante Meuleman <[email protected]> Reviewed-by: Pieter-Paul Giesberts <[email protected]> Reviewed-by: Franky Lin <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
e38a017bf0
commit
b34939b983
16 changed files with 77 additions and 59 deletions
|
|
@ -10,7 +10,7 @@ static void ieee80211_sched_scan_cancel(struct ieee80211_local *local)
|
|||
{
|
||||
if (ieee80211_request_sched_scan_stop(local))
|
||||
return;
|
||||
cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy);
|
||||
cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy, 0);
|
||||
}
|
||||
|
||||
int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
|
||||
|
|
|
|||
|
|
@ -1219,7 +1219,7 @@ void ieee80211_sched_scan_results(struct ieee80211_hw *hw)
|
|||
|
||||
trace_api_sched_scan_results(local);
|
||||
|
||||
cfg80211_sched_scan_results(hw->wiphy);
|
||||
cfg80211_sched_scan_results(hw->wiphy, 0);
|
||||
}
|
||||
EXPORT_SYMBOL(ieee80211_sched_scan_results);
|
||||
|
||||
|
|
@ -1239,7 +1239,7 @@ void ieee80211_sched_scan_end(struct ieee80211_local *local)
|
|||
|
||||
mutex_unlock(&local->mtx);
|
||||
|
||||
cfg80211_sched_scan_stopped(local->hw.wiphy);
|
||||
cfg80211_sched_scan_stopped(local->hw.wiphy, 0);
|
||||
}
|
||||
|
||||
void ieee80211_sched_scan_stopped_work(struct work_struct *work)
|
||||
|
|
|
|||
|
|
@ -2112,7 +2112,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
|||
mutex_unlock(&local->mtx);
|
||||
|
||||
if (sched_scan_stopped)
|
||||
cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy);
|
||||
cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy, 0);
|
||||
|
||||
wake_up:
|
||||
if (local->in_reconfig) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue