TDLS: Fix teardown on renegotiation
Need to disable the link when receiving TDLS Setup Request from a peer with which a direct link has already been set up.
This commit is contained in:
parent
5c1c940f1d
commit
ca03378b27
1 changed files with 5 additions and 1 deletions
|
@ -1521,7 +1521,11 @@ skip_rsn:
|
||||||
* some drivers handling the new request frame. */
|
* some drivers handling the new request frame. */
|
||||||
wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK, src_addr);
|
wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK, src_addr);
|
||||||
#else
|
#else
|
||||||
wpa_tdls_del_key(sm, peer);
|
if (sm->tdls_external_setup)
|
||||||
|
wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK,
|
||||||
|
src_addr);
|
||||||
|
else
|
||||||
|
wpa_tdls_del_key(sm, peer);
|
||||||
#endif
|
#endif
|
||||||
wpa_tdls_peer_free(sm, peer);
|
wpa_tdls_peer_free(sm, peer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue