mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
P2P: Cancel extended listen on p2p_flush()
It is expected that p2p_flush() should stop any ongoing p2p operation. However, this was not the case with extended listen which was not cancelled on p2p_flush() flows. Fix this, by cancelling the extended listen in p2p_flush(). Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
876e74aa5f
commit
a3de16768b
@ -2944,7 +2944,6 @@ void p2p_deinit(struct p2p_data *p2p)
|
||||
wpabuf_free(p2p->wfd_coupled_sink_info);
|
||||
#endif /* CONFIG_WIFI_DISPLAY */
|
||||
|
||||
eloop_cancel_timeout(p2p_ext_listen_timeout, p2p, NULL);
|
||||
eloop_cancel_timeout(p2p_scan_timeout, p2p, NULL);
|
||||
eloop_cancel_timeout(p2p_go_neg_start, p2p, NULL);
|
||||
eloop_cancel_timeout(p2p_go_neg_wait_timeout, p2p, NULL);
|
||||
@ -2971,6 +2970,8 @@ void p2p_deinit(struct p2p_data *p2p)
|
||||
void p2p_flush(struct p2p_data *p2p)
|
||||
{
|
||||
struct p2p_device *dev, *prev;
|
||||
|
||||
p2p_ext_listen(p2p, 0, 0);
|
||||
p2p_stop_find(p2p);
|
||||
dl_list_for_each_safe(dev, prev, &p2p->devices, struct p2p_device,
|
||||
list) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user