mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 09:29:22 +01:00
wsc: Add wsc_init and wsc_exit
This commit is contained in:
parent
e1bdd7ce1e
commit
f8cf9cf154
20
src/wsc.c
20
src/wsc.c
@ -34,6 +34,8 @@
|
||||
|
||||
#define WALK_TIME 120
|
||||
|
||||
static struct l_genl_family *nl80211 = NULL;
|
||||
|
||||
struct wsc_sm {
|
||||
uint8_t *wsc_ies;
|
||||
size_t wsc_ies_size;
|
||||
@ -98,3 +100,21 @@ void wsc_sm_free(struct wsc_sm *sm)
|
||||
{
|
||||
l_free(sm);
|
||||
}
|
||||
|
||||
bool wsc_init(struct l_genl_family *in)
|
||||
{
|
||||
nl80211 = in;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wsc_exit()
|
||||
{
|
||||
l_debug("");
|
||||
|
||||
if (!nl80211)
|
||||
return false;
|
||||
|
||||
nl80211 = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user