mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 11:52:34 +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
|
#define WALK_TIME 120
|
||||||
|
|
||||||
|
static struct l_genl_family *nl80211 = NULL;
|
||||||
|
|
||||||
struct wsc_sm {
|
struct wsc_sm {
|
||||||
uint8_t *wsc_ies;
|
uint8_t *wsc_ies;
|
||||||
size_t wsc_ies_size;
|
size_t wsc_ies_size;
|
||||||
@ -98,3 +100,21 @@ void wsc_sm_free(struct wsc_sm *sm)
|
|||||||
{
|
{
|
||||||
l_free(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;
|
||||||
|
}
|
||||||
|
@ -28,3 +28,6 @@ struct wsc_sm;
|
|||||||
struct wsc_sm *wsc_sm_new_pushbutton(uint32_t ifindex, const uint8_t *addr,
|
struct wsc_sm *wsc_sm_new_pushbutton(uint32_t ifindex, const uint8_t *addr,
|
||||||
uint32_t bands);
|
uint32_t bands);
|
||||||
void wsc_sm_free(struct wsc_sm *wsc_sm);
|
void wsc_sm_free(struct wsc_sm *wsc_sm);
|
||||||
|
|
||||||
|
bool wsc_init(struct l_genl_family *in);
|
||||||
|
bool wsc_exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user