1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Scan related functions.
4 *
5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
6 * Copyright (c) 2010, ST-Ericsson
7 */
8#ifndef WFX_SCAN_H
9#define WFX_SCAN_H
10
11#include <net/mac80211.h>
12
13struct wfx_dev;
14struct wfx_vif;
15
16void wfx_hw_scan_work(struct work_struct *work);
17int wfx_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
18		struct ieee80211_scan_request *req);
19void wfx_cancel_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
20void wfx_scan_complete(struct wfx_vif *wvif, int nb_chan_done);
21
22void wfx_remain_on_channel_work(struct work_struct *work);
23int wfx_remain_on_channel(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
24			  struct ieee80211_channel *chan, int duration,
25			  enum ieee80211_roc_type type);
26int wfx_cancel_remain_on_channel(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
27
28#endif
29