mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
eap: Add eap_unregister_method
This commit is contained in:
parent
095eec48ab
commit
88bdd46ec3
11
src/eap.c
11
src/eap.c
@ -401,6 +401,17 @@ int eap_register_method(struct eap_method *method)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int eap_unregister_method(struct eap_method *method)
|
||||
{
|
||||
bool r;
|
||||
|
||||
r = l_queue_remove(eap_methods, method);
|
||||
if (r)
|
||||
return 0;
|
||||
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
void eap_init(void) {
|
||||
eap_methods = l_queue_new();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user