scan: Drop remaining sched scan code

This commit is contained in:
Andrew Zaborowski 2019-03-11 15:43:16 +01:00 committed by Denis Kenzior
parent d0ccb8496a
commit 98623edd7d
2 changed files with 0 additions and 23 deletions

View File

@ -559,24 +559,6 @@ bool scan_cancel(uint32_t ifindex, uint32_t id)
return true;
}
void scan_sched_start(struct l_genl_family *nl80211, uint32_t ifindex,
uint32_t scan_interval,
scan_func_t callback, void *user_data)
{
struct l_genl_msg *msg;
scan_interval *= 1000; /* in kernel the interval is in msecs */
msg = l_genl_msg_new_sized(NL80211_CMD_START_SCHED_SCAN, 32);
l_genl_msg_append_attr(msg, NL80211_ATTR_IFINDEX, 4, &ifindex);
l_genl_msg_append_attr(msg, NL80211_ATTR_SCHED_SCAN_INTERVAL,
4, &scan_interval);
l_genl_msg_append_attr(msg, NL80211_ATTR_SOCKET_OWNER, 0, NULL);
if (!l_genl_family_send(nl80211, msg, callback, user_data, NULL))
l_error("Starting scheduled scan failed");
}
static void scan_periodic_triggered(struct l_genl_msg *msg, void *user_data)
{
struct scan_context *sc = user_data;
@ -1365,7 +1347,6 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data)
switch (cmd) {
case NL80211_CMD_NEW_SCAN_RESULTS:
case NL80211_CMD_SCHED_SCAN_RESULTS:
{
struct l_genl_msg *scan_msg;
struct scan_results *results;

View File

@ -107,10 +107,6 @@ void scan_periodic_start(uint32_t ifindex, scan_trigger_func_t trigger,
scan_notify_func_t func, void *userdata);
bool scan_periodic_stop(uint32_t ifindex);
void scan_sched_start(struct l_genl_family *nl80211, uint32_t ifindex,
uint32_t scan_interval, scan_func_t callback,
void *user_data);
void scan_bss_free(struct scan_bss *bss);
int scan_bss_rank_compare(const void *a, const void *b, void *user);