• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <stdint.h>
2 #include "wifi_hal.h"
3 
wifi_initialize(wifi_handle * handle)4 wifi_error wifi_initialize(wifi_handle *handle) {
5     return WIFI_ERROR_NOT_SUPPORTED;
6 }
7 
wifi_cleanup(wifi_handle handle,wifi_cleaned_up_handler handler)8 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) {
9 }
10 
wifi_event_loop(wifi_handle handle)11 void wifi_event_loop(wifi_handle handle) {
12 
13 }
14 
wifi_get_error_info(wifi_error err,const char ** msg)15 void wifi_get_error_info(wifi_error err, const char **msg) {
16     *msg = NULL;
17 }
18 
wifi_get_supported_feature_set(wifi_interface_handle handle,feature_set * set)19 wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle, feature_set *set) {
20     return WIFI_ERROR_UNINITIALIZED;
21 }
22 
wifi_get_concurrency_matrix(wifi_interface_handle handle,int max_size,feature_set * matrix,int * size)23 wifi_error wifi_get_concurrency_matrix(wifi_interface_handle handle, int max_size,
24         feature_set *matrix, int *size) {
25     return WIFI_ERROR_UNINITIALIZED;
26 }
27 
wifi_set_scanning_mac_oui(wifi_interface_handle handle,unsigned char * oui)28 wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, unsigned char *oui) {
29     return WIFI_ERROR_UNINITIALIZED;
30 }
31 
32 /* List of all supported channels, including 5GHz channels */
wifi_get_supported_channels(wifi_handle handle,int * size,wifi_channel * list)33 wifi_error wifi_get_supported_channels(wifi_handle handle, int *size, wifi_channel *list) {
34     return WIFI_ERROR_UNINITIALIZED;
35 }
36 
37 /* Enhanced power reporting */
wifi_is_epr_supported(wifi_handle handle)38 wifi_error wifi_is_epr_supported(wifi_handle handle) {
39     return WIFI_ERROR_UNINITIALIZED;
40 }
41 
42 /* multiple interface support */
wifi_get_ifaces(wifi_handle handle,int * num_ifaces,wifi_interface_handle ** ifaces)43 wifi_error wifi_get_ifaces(wifi_handle handle, int *num_ifaces, wifi_interface_handle **ifaces) {
44     return WIFI_ERROR_UNINITIALIZED;
45 }
46 
wifi_get_iface_name(wifi_interface_handle iface,char * name,size_t size)47 wifi_error wifi_get_iface_name(wifi_interface_handle iface, char *name, size_t size) {
48     return WIFI_ERROR_UNINITIALIZED;
49 }
50 
wifi_set_iface_event_handler(wifi_request_id id,wifi_interface_handle iface,wifi_event_handler eh)51 wifi_error wifi_set_iface_event_handler(wifi_request_id id,
52             wifi_interface_handle iface, wifi_event_handler eh) {
53     return WIFI_ERROR_UNINITIALIZED;
54 }
55 
wifi_reset_iface_event_handler(wifi_request_id id,wifi_interface_handle iface)56 wifi_error wifi_reset_iface_event_handler(wifi_request_id id, wifi_interface_handle iface) {
57     return WIFI_ERROR_UNINITIALIZED;
58 }
59 
wifi_start_gscan(wifi_request_id id,wifi_interface_handle iface,wifi_scan_cmd_params params,wifi_scan_result_handler handler)60 wifi_error wifi_start_gscan(wifi_request_id id, wifi_interface_handle iface,
61         wifi_scan_cmd_params params, wifi_scan_result_handler handler) {
62     return WIFI_ERROR_UNINITIALIZED;
63 }
64 
wifi_stop_gscan(wifi_request_id id,wifi_interface_handle iface)65 wifi_error wifi_stop_gscan(wifi_request_id id, wifi_interface_handle iface) {
66     return WIFI_ERROR_UNINITIALIZED;
67 }
68 
wifi_get_cached_gscan_results(wifi_interface_handle iface,byte flush,int max,wifi_scan_result * results,int * num)69 wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush,
70         int max, wifi_scan_result *results, int *num) {
71     return WIFI_ERROR_UNINITIALIZED;
72 }
73 
wifi_get_cached_gscan_results(wifi_interface_handle iface,byte flush,wifi_scan_result * results,int * num)74 wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush,
75         wifi_scan_result *results, int *num) {
76     return WIFI_ERROR_UNINITIALIZED;
77 }
78 
wifi_set_bssid_hotlist(wifi_request_id id,wifi_interface_handle iface,wifi_bssid_hotlist_params params,wifi_hotlist_ap_found_handler handler)79 wifi_error wifi_set_bssid_hotlist(wifi_request_id id, wifi_interface_handle iface,
80         wifi_bssid_hotlist_params params, wifi_hotlist_ap_found_handler handler) {
81     return WIFI_ERROR_UNINITIALIZED;
82 }
83 
wifi_reset_bssid_hotlist(wifi_request_id id,wifi_interface_handle iface)84 wifi_error wifi_reset_bssid_hotlist(wifi_request_id id, wifi_interface_handle iface) {
85     return WIFI_ERROR_UNINITIALIZED;
86 }
87 
wifi_set_significant_change_handler(wifi_request_id id,wifi_interface_handle iface,wifi_significant_change_params params,wifi_significant_change_handler handler)88 wifi_error wifi_set_significant_change_handler(wifi_request_id id, wifi_interface_handle iface,
89         wifi_significant_change_params params, wifi_significant_change_handler handler) {
90     return WIFI_ERROR_UNINITIALIZED;
91 }
92 
wifi_reset_significant_change_handler(wifi_request_id id,wifi_interface_handle iface)93 wifi_error wifi_reset_significant_change_handler(wifi_request_id id, wifi_interface_handle iface) {
94     return WIFI_ERROR_UNINITIALIZED;
95 }
96 
wifi_get_gscan_capabilities(wifi_interface_handle handle,wifi_gscan_capabilities * capabilities)97 wifi_error wifi_get_gscan_capabilities(wifi_interface_handle handle,
98         wifi_gscan_capabilities *capabilities) {
99     return WIFI_ERROR_UNINITIALIZED;
100 }
101 
wifi_set_link_stats(wifi_interface_handle iface,wifi_link_layer_params params)102 wifi_error wifi_set_link_stats(wifi_interface_handle iface, wifi_link_layer_params params) {
103     return WIFI_ERROR_UNINITIALIZED;
104 }
105 
wifi_get_link_stats(wifi_request_id id,wifi_interface_handle iface,wifi_stats_result_handler handler)106 wifi_error wifi_get_link_stats(wifi_request_id id,
107         wifi_interface_handle iface, wifi_stats_result_handler handler) {
108     return WIFI_ERROR_UNINITIALIZED;
109 }
110 
wifi_clear_link_stats(wifi_interface_handle iface,u32 stats_clear_req_mask,u32 * stats_clear_rsp_mask,u8 stop_req,u8 * stop_rsp)111 wifi_error wifi_clear_link_stats(wifi_interface_handle iface,
112       u32 stats_clear_req_mask, u32 *stats_clear_rsp_mask, u8 stop_req, u8 *stop_rsp) {
113     return WIFI_ERROR_UNINITIALIZED;
114 }
115 
wifi_get_valid_channels(wifi_interface_handle handle,int band,int max_channels,wifi_channel * channels,int * num_channels)116 wifi_error wifi_get_valid_channels(wifi_interface_handle handle,
117         int band, int max_channels, wifi_channel *channels, int *num_channels) {
118     return WIFI_ERROR_UNINITIALIZED;
119 }
120 
121 /* API to request RTT measurement */
wifi_rtt_range_request(wifi_request_id id,wifi_interface_handle iface,unsigned num_rtt_config,wifi_rtt_config rtt_config[],wifi_rtt_event_handler handler)122 wifi_error wifi_rtt_range_request(wifi_request_id id, wifi_interface_handle iface,
123         unsigned num_rtt_config, wifi_rtt_config rtt_config[], wifi_rtt_event_handler handler) {
124     return WIFI_ERROR_NOT_SUPPORTED;
125 }
126 
127 /* API to cancel RTT measurements */
wifi_rtt_range_cancel(wifi_request_id id,wifi_interface_handle iface,unsigned num_devices,mac_addr addr[])128 wifi_error wifi_rtt_range_cancel(wifi_request_id id,  wifi_interface_handle iface,
129         unsigned num_devices, mac_addr addr[]) {
130     return WIFI_ERROR_NOT_SUPPORTED;
131 }
132 
wifi_set_nodfs_flag(wifi_interface_handle iface,u32 nodfs)133 wifi_error wifi_set_nodfs_flag(wifi_interface_handle iface, u32 nodfs) {
134     return WIFI_ERROR_NOT_SUPPORTED;
135 }
136