3
0
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:
Denis Kenzior 2015-09-28 20:38:17 -05:00
parent e1bdd7ce1e
commit f8cf9cf154
2 changed files with 23 additions and 0 deletions

View File

@ -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;
}

View File

@ -28,3 +28,6 @@ struct wsc_sm;
struct wsc_sm *wsc_sm_new_pushbutton(uint32_t ifindex, const uint8_t *addr,
uint32_t bands);
void wsc_sm_free(struct wsc_sm *wsc_sm);
bool wsc_init(struct l_genl_family *in);
bool wsc_exit();