Move DROP_SA command to be within ifdef CONFIG_TESTING_OPTIONS
This is a test command and has no use in production builds. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
eaf3f9b10d
commit
9ff4de6de4
3 changed files with 10 additions and 0 deletions
|
@ -2627,6 +2627,7 @@ int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len)
|
|||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
void wpa_sm_drop_sa(struct wpa_sm *sm)
|
||||
{
|
||||
wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, "WPA: Clear old PMK and PTK");
|
||||
|
@ -2636,6 +2637,7 @@ void wpa_sm_drop_sa(struct wpa_sm *sm)
|
|||
os_memset(&sm->ptk, 0, sizeof(sm->ptk));
|
||||
os_memset(&sm->tptk, 0, sizeof(sm->tptk));
|
||||
}
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
|
||||
int wpa_sm_has_ptk(struct wpa_sm *sm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue