xref: /aosp_15_r20/external/wpa_supplicant_8/src/drivers/rfkill.h (revision 03f9172ca588f91df233974f4258bab95191f931)
1*03f9172cSAndroid Build Coastguard Worker /*
2*03f9172cSAndroid Build Coastguard Worker  * Linux rfkill helper functions for driver wrappers
3*03f9172cSAndroid Build Coastguard Worker  * Copyright (c) 2010, Jouni Malinen <[email protected]>
4*03f9172cSAndroid Build Coastguard Worker  *
5*03f9172cSAndroid Build Coastguard Worker  * This software may be distributed under the terms of the BSD license.
6*03f9172cSAndroid Build Coastguard Worker  * See README for more details.
7*03f9172cSAndroid Build Coastguard Worker  */
8*03f9172cSAndroid Build Coastguard Worker 
9*03f9172cSAndroid Build Coastguard Worker #ifndef RFKILL_H
10*03f9172cSAndroid Build Coastguard Worker #define RFKILL_H
11*03f9172cSAndroid Build Coastguard Worker 
12*03f9172cSAndroid Build Coastguard Worker struct rfkill_data;
13*03f9172cSAndroid Build Coastguard Worker 
14*03f9172cSAndroid Build Coastguard Worker struct rfkill_config {
15*03f9172cSAndroid Build Coastguard Worker 	void *ctx;
16*03f9172cSAndroid Build Coastguard Worker 	char ifname[IFNAMSIZ];
17*03f9172cSAndroid Build Coastguard Worker 	void (*blocked_cb)(void *ctx);
18*03f9172cSAndroid Build Coastguard Worker 	void (*unblocked_cb)(void *ctx);
19*03f9172cSAndroid Build Coastguard Worker };
20*03f9172cSAndroid Build Coastguard Worker 
21*03f9172cSAndroid Build Coastguard Worker struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
22*03f9172cSAndroid Build Coastguard Worker void rfkill_deinit(struct rfkill_data *rfkill);
23*03f9172cSAndroid Build Coastguard Worker int rfkill_is_blocked(struct rfkill_data *rfkill);
24*03f9172cSAndroid Build Coastguard Worker 
25*03f9172cSAndroid Build Coastguard Worker #endif /* RFKILL_H */
26