mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-26 14:08:53 +00:00
v1.2.2
This commit is contained in:
44
bsp/peripheral/wireless/aic8800/wpas/src/common/gas_server.h
Normal file
44
bsp/peripheral/wireless/aic8800/wpas/src/common/gas_server.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Generic advertisement service (GAS) server
|
||||
* Copyright (c) 2017, Qualcomm Atheros, Inc.
|
||||
*
|
||||
* This software may be distributed under the terms of the BSD license.
|
||||
* See README for more details.
|
||||
*/
|
||||
|
||||
#ifndef GAS_SERVER_H
|
||||
#define GAS_SERVER_H
|
||||
|
||||
#ifdef CONFIG_GAS_SERVER
|
||||
|
||||
struct gas_server;
|
||||
|
||||
struct gas_server * gas_server_init(void *ctx,
|
||||
void (*tx)(void *ctx, int freq,
|
||||
const u8 *da,
|
||||
struct wpabuf *buf,
|
||||
unsigned int wait_time));
|
||||
void gas_server_deinit(struct gas_server *gas);
|
||||
int gas_server_register(struct gas_server *gas,
|
||||
const u8 *adv_proto_id, u8 adv_proto_id_len,
|
||||
struct wpabuf *
|
||||
(*req_cb)(void *ctx, const u8 *sa,
|
||||
const u8 *query, size_t query_len),
|
||||
void (*status_cb)(void *ctx, struct wpabuf *resp,
|
||||
int ok),
|
||||
void *ctx);
|
||||
int gas_server_rx(struct gas_server *gas, const u8 *da, const u8 *sa,
|
||||
const u8 *bssid, u8 categ, const u8 *data, size_t len,
|
||||
int freq);
|
||||
void gas_server_tx_status(struct gas_server *gas, const u8 *dst, const u8 *data,
|
||||
size_t data_len, int ack);
|
||||
|
||||
#else /* CONFIG_GAS_SERVER */
|
||||
|
||||
static inline void gas_server_deinit(struct gas_server *gas)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_GAS_SERVER */
|
||||
|
||||
#endif /* GAS_SERVER_H */
|
||||
Reference in New Issue
Block a user