Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Scan interface for ST-Ericsson CW1200 mac80211 drivers
|
|
*
|
|
* Copyright (c) 2010, ST-Ericsson
|
|
* Author: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
|
|
*/
|
|
|
|
#ifndef SCAN_H_INCLUDED
|
|
#define SCAN_H_INCLUDED
|
|
|
|
#include <linux/semaphore.h>
|
|
#include "wsm.h"
|
|
|
|
/* external */ struct sk_buff;
|
|
/* external */ struct cfg80211_scan_request;
|
|
/* external */ struct ieee80211_channel;
|
|
/* external */ struct ieee80211_hw;
|
|
/* external */ struct work_struct;
|
|
|
|
struct cw1200_scan {
|
|
struct semaphore lock;
|
|
struct work_struct work;
|
|
struct delayed_work timeout;
|
|
struct cfg80211_scan_request *req;
|
|
struct ieee80211_channel **begin;
|
|
struct ieee80211_channel **curr;
|
|
struct ieee80211_channel **end;
|
|
struct wsm_ssid ssids[WSM_SCAN_MAX_NUM_OF_SSIDS];
|
|
int output_power;
|
|
int n_ssids;
|
|
int status;
|
|
atomic_t in_progress;
|
|
/* Direct probe requests workaround */
|
|
struct delayed_work probe_work;
|
|
int direct_probe;
|
|
};
|
|
|
|
int cw1200_hw_scan(struct ieee80211_hw *hw,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_scan_request *hw_req);
|
|
void cw1200_scan_work(struct work_struct *work);
|
|
void cw1200_scan_timeout(struct work_struct *work);
|
|
void cw1200_clear_recent_scan_work(struct work_struct *work);
|
|
void cw1200_scan_complete_cb(struct cw1200_common *priv,
|
|
struct wsm_scan_complete *arg);
|
|
void cw1200_scan_failed_cb(struct cw1200_common *priv);
|
|
|
|
/* ******************************************************************** */
|
|
/* Raw probe requests TX workaround */
|
|
void cw1200_probe_work(struct work_struct *work);
|
|
|
|
#endif
|