mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
ANDROID: virt_wifi: Add data ops for scan data simulation
Bug: 139421123 Signed-off-by: lesl <lesl@google.com> Change-Id: Ib686dffe23cc234937af7e383182834721f01d78 Signed-off-by: Alistair Delva <adelva@google.com>
This commit is contained in:
parent
6e1eaaea3c
commit
39bb6b4242
2 changed files with 71 additions and 2 deletions
25
include/net/virt_wifi.h
Normal file
25
include/net/virt_wifi.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/* include/net/virt_wifi.h
|
||||
*
|
||||
* Define the extension interface for the network data simulation
|
||||
*
|
||||
* Copyright (C) 2019 Google, Inc.
|
||||
*
|
||||
* Author: lesl@google.com
|
||||
*/
|
||||
#ifndef __VIRT_WIFI_H
|
||||
#define __VIRT_WIFI_H
|
||||
|
||||
struct virt_wifi_network_simulation {
|
||||
void (*notify_device_open)(struct net_device *dev);
|
||||
void (*notify_device_stop)(struct net_device *dev);
|
||||
void (*notify_scan_trigger)(struct wiphy *wiphy,
|
||||
struct cfg80211_scan_request *request);
|
||||
int (*generate_virt_scan_result)(struct wiphy *wiphy);
|
||||
};
|
||||
|
||||
int virt_wifi_register_network_simulation(
|
||||
struct virt_wifi_network_simulation *ops);
|
||||
int virt_wifi_unregister_network_simulation(void);
|
||||
#endif
|
||||
|
||||
Loading…
Reference in a new issue