Generic advertisement service (GAS) query Copyright (c) 2011-2014, Qualcomm Atheros, Inc. Copyright (c) 2011-2014, Jouni Malinen j@w1..nosp@m.fi
More...
|
struct gas_query * | gas_query_init (struct wpa_supplicant *wpa_s) |
| Initialize GAS query component. More...
|
|
void | gas_query_deinit (struct gas_query *gas) |
| Deinitialize GAS query component. More...
|
|
int | gas_query_rx (struct gas_query *gas, const u8 *da, const u8 *sa, const u8 *bssid, u8 categ, const u8 *data, size_t len, int freq) |
| Indicate reception of a Public Action or Protected Dual frame. More...
|
|
int | gas_query_req (struct gas_query *gas, const u8 *dst, int freq, struct wpabuf *req, void(*cb)(void *ctx, const u8 *dst, u8 dialog_token, enum gas_query_result result, const struct wpabuf *adv_proto, const struct wpabuf *resp, u16 status_code), void *ctx) |
| Request a GAS query. More...
|
|
void | gas_query_cancel (struct gas_query *gas, const u8 *dst, u8 dialog_token) |
| Cancel a pending GAS query. More...
|
|
Generic advertisement service (GAS) query Copyright (c) 2011-2014, Qualcomm Atheros, Inc. Copyright (c) 2011-2014, Jouni Malinen j@w1..nosp@m.fi
void gas_query_cancel |
( |
struct gas_query * |
gas, |
|
|
const u8 * |
dst, |
|
|
u8 |
dialog_token |
|
) |
| |
Cancel a pending GAS query.
- Parameters
-
gas | GAS query data from gas_query_init() |
dst | Destination MAC address for the query |
dialog_token | Dialog token from gas_query_req() |
void gas_query_deinit |
( |
struct gas_query * |
gas | ) |
|
Deinitialize GAS query component.
- Parameters
-
gas | GAS query data from gas_query_init() |
Initialize GAS query component.
- Parameters
-
wpa_s | Pointer to wpa_supplicant data |
- Returns
- Pointer to GAS query data or NULL on failure
int gas_query_req |
( |
struct gas_query * |
gas, |
|
|
const u8 * |
dst, |
|
|
int |
freq, |
|
|
struct wpabuf * |
req, |
|
|
void(*)(void *ctx, const u8 *dst, u8 dialog_token, enum gas_query_result result, const struct wpabuf *adv_proto, const struct wpabuf *resp, u16 status_code) |
cb, |
|
|
void * |
ctx |
|
) |
| |
Request a GAS query.
- Parameters
-
gas | GAS query data from gas_query_init() |
dst | Destination MAC address for the query |
freq | Frequency (in MHz) for the channel on which to send the query |
req | GAS query payload (to be freed by gas_query module in case of success return) |
cb | Callback function for reporting GAS query result and response |
ctx | Context pointer to use with the cb call |
- Returns
- dialog token (>= 0) on success or -1 on failure
int gas_query_rx |
( |
struct gas_query * |
gas, |
|
|
const u8 * |
da, |
|
|
const u8 * |
sa, |
|
|
const u8 * |
bssid, |
|
|
u8 |
categ, |
|
|
const u8 * |
data, |
|
|
size_t |
len, |
|
|
int |
freq |
|
) |
| |
Indicate reception of a Public Action or Protected Dual frame.
- Parameters
-
gas | GAS query data from gas_query_init() |
da | Destination MAC address of the Action frame |
sa | Source MAC address of the Action frame |
bssid | BSSID of the Action frame |
categ | Category of the Action frame |
data | Payload of the Action frame |
len | Length of data |
freq | Frequency (in MHz) on which the frame was received |
- Returns
- 0 if the Public Action frame was a GAS frame or -1 if not