linux/drivers/net/wireless/ti/wlcore/scan.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * This file is part of wl1271
 *
 * Copyright (C) 2009-2010 Nokia Corporation
 *
 * Contact: Luciano Coelho <[email protected]>
 */

#ifndef __SCAN_H__
#define __SCAN_H__

#include "wlcore.h"

int wlcore_scan(struct wl1271 *wl, struct ieee80211_vif *vif,
		const u8 *ssid, size_t ssid_len,
		struct cfg80211_scan_request *req);
int wl1271_scan_build_probe_req(struct wl1271 *wl,
				const u8 *ssid, size_t ssid_len,
				const u8 *ie, size_t ie_len, u8 band);
void wl1271_scan_stm(struct wl1271 *wl, struct wl12xx_vif *wlvif);
void wl1271_scan_complete_work(struct work_struct *work);
int wl1271_scan_sched_scan_config(struct wl1271 *wl,
				     struct wl12xx_vif *wlvif,
				     struct cfg80211_sched_scan_request *req,
				     struct ieee80211_scan_ies *ies);
int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif);
void wlcore_scan_sched_scan_results(struct wl1271 *wl);

#define WL1271_SCAN_MAX_CHANNELS
#define WL1271_SCAN_DEFAULT_TAG
#define WL1271_SCAN_CURRENT_TX_PWR
#define WL1271_SCAN_OPT_ACTIVE
#define WL1271_SCAN_OPT_PASSIVE
#define WL1271_SCAN_OPT_SPLIT_SCAN
#define WL1271_SCAN_OPT_PRIORITY_HIGH
/* scan even if we fail to enter psm */
#define WL1271_SCAN_OPT_FORCE
#define WL1271_SCAN_BAND_2_4_GHZ
#define WL1271_SCAN_BAND_5_GHZ

#define WL1271_SCAN_TIMEOUT

enum {};

struct wl1271_cmd_trigger_scan_to {} __packed;

#define MAX_CHANNELS_2GHZ
#define MAX_CHANNELS_4GHZ

/*
 * This max value here is used only for the struct definition of
 * wlcore_scan_channels. This struct is used by both 12xx
 * and 18xx (which have different max 5ghz channels value).
 * In order to make sure this is large enough, just use the
 * max possible 5ghz channels.
 */
#define MAX_CHANNELS_5GHZ

#define SCAN_MAX_CYCLE_INTERVALS

/* The FW intervals can take up to 16 entries.
 * The 1st entry isn't used (scan is immediate). The last
 * entry should be used for the long_interval
 */
#define SCAN_MAX_SHORT_INTERVALS
#define SCAN_MAX_BANDS

enum {};

enum {};

#define SCAN_CHANNEL_FLAGS_DFS
#define SCAN_CHANNEL_FLAGS_DFS_ENABLED

struct conn_scan_ch_params {} __packed;

#define SCHED_SCAN_MAX_SSIDS

enum {};

struct wl1271_ssid {} __packed;

struct wl1271_cmd_sched_scan_ssid_list {} __packed;

struct wlcore_scan_channels {};

enum {};

bool
wlcore_set_scan_chan_params(struct wl1271 *wl,
			    struct wlcore_scan_channels *cfg,
			    struct ieee80211_channel *channels[],
			    u32 n_channels,
			    u32 n_ssids,
			    int scan_type);

int
wlcore_scan_sched_scan_ssid_list(struct wl1271 *wl,
				 struct wl12xx_vif *wlvif,
				 struct cfg80211_sched_scan_request *req);

#endif /* __WL1271_SCAN_H__ */