-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwifi.h
45 lines (39 loc) · 1.26 KB
/
wifi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* SPDX-License-Identifier: BSD-3-Clause */
#include <libubox/uloop.h>
#include <libubox/utils.h>
#include <libubox/blobmsg_json.h>
#include <libubox/avl.h>
#include <libubox/ulog.h>
#include <libubus.h>
enum {
SCAN_BAND,
SCAN_CHANNELS,
SCAN_PASSIVE,
__SCAN_MAX,
};
extern const struct blobmsg_policy scan_policy[__SCAN_MAX];
void ubus_init(void);
int dump_phy(struct ubus_context *ctx,
struct ubus_object *obj,
struct ubus_request_data *req,
const char *method, struct blob_attr *msg);
int dump_iface(struct ubus_context *ctx,
struct ubus_object *obj,
struct ubus_request_data *req,
const char *method, struct blob_attr *msg);
int dump_station(struct ubus_context *ctx,
struct ubus_object *obj,
struct ubus_request_data *req,
const char *method, struct blob_attr *msg);
int dump_survey(struct ubus_context *ctx,
struct ubus_object *obj,
struct ubus_request_data *req,
const char *method, struct blob_attr *msg);
int dump_scan(struct ubus_context *ctx,
struct ubus_object *obj,
struct ubus_request_data *req,
const char *method, struct blob_attr *msg);
int trigger_scan(struct ubus_context *ctx,
struct ubus_object *obj,
struct ubus_request_data *req,
const char *method, struct blob_attr *msg);