| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 
|  | 2 | /* include/net/virt_wifi.h | 
|  | 3 | * | 
|  | 4 | * Define the extension interface for the network data simulation | 
|  | 5 | * | 
|  | 6 | * Copyright (C) 2019 Google, Inc. | 
|  | 7 | * | 
|  | 8 | * Author: lesl@google.com | 
|  | 9 | */ | 
|  | 10 | #ifndef __VIRT_WIFI_H | 
|  | 11 | #define __VIRT_WIFI_H | 
|  | 12 |  | 
|  | 13 | struct virt_wifi_network_simulation { | 
|  | 14 | void (*notify_device_open)(struct net_device *dev); | 
|  | 15 | void (*notify_device_stop)(struct net_device *dev); | 
|  | 16 | void (*notify_scan_trigger)(struct wiphy *wiphy, | 
|  | 17 | struct cfg80211_scan_request *request); | 
|  | 18 | int (*generate_virt_scan_result)(struct wiphy *wiphy); | 
|  | 19 | }; | 
|  | 20 |  | 
|  | 21 | int virt_wifi_register_network_simulation( | 
|  | 22 | struct virt_wifi_network_simulation *ops); | 
|  | 23 | int virt_wifi_unregister_network_simulation(void); | 
|  | 24 | #endif | 
|  | 25 |  |