mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
cfg80211: add request id parameter to .sched_scan_stop() signature
For multiple scheduled scan support the driver needs to know which scheduled scan request is being stopped. Pass the request id in the .sched_scan_stop() callback. 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
3007e3529c
commit
3a3ecf1d59
8 changed files with 24 additions and 22 deletions
|
|
@ -820,11 +820,11 @@ rdev_sched_scan_start(struct cfg80211_registered_device *rdev,
|
|||
}
|
||||
|
||||
static inline int rdev_sched_scan_stop(struct cfg80211_registered_device *rdev,
|
||||
struct net_device *dev)
|
||||
struct net_device *dev, u64 reqid)
|
||||
{
|
||||
int ret;
|
||||
trace_rdev_sched_scan_stop(&rdev->wiphy, dev);
|
||||
ret = rdev->ops->sched_scan_stop(&rdev->wiphy, dev);
|
||||
trace_rdev_sched_scan_stop(&rdev->wiphy, dev, reqid);
|
||||
ret = rdev->ops->sched_scan_stop(&rdev->wiphy, dev, reqid);
|
||||
trace_rdev_return_int(&rdev->wiphy, ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -436,7 +436,7 @@ int cfg80211_stop_sched_scan_req(struct cfg80211_registered_device *rdev,
|
|||
ASSERT_RTNL();
|
||||
|
||||
if (!driver_initiated) {
|
||||
int err = rdev_sched_scan_stop(rdev, req->dev);
|
||||
int err = rdev_sched_scan_stop(rdev, req->dev, req->reqid);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -576,11 +576,6 @@ DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap,
|
|||
TP_ARGS(wiphy, netdev)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(wiphy_netdev_evt, rdev_sched_scan_stop,
|
||||
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
||||
TP_ARGS(wiphy, netdev)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data,
|
||||
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
||||
TP_ARGS(wiphy, netdev)
|
||||
|
|
@ -1632,6 +1627,11 @@ DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_start,
|
|||
TP_ARGS(wiphy, netdev, id)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_stop,
|
||||
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id),
|
||||
TP_ARGS(wiphy, netdev, id)
|
||||
);
|
||||
|
||||
TRACE_EVENT(rdev_tdls_mgmt,
|
||||
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
||||
u8 *peer, u8 action_code, u8 dialog_token,
|
||||
|
|
|
|||
Loading…
Reference in a new issue