TDLS: Add ctrl_iface option for flushing all TDLS peers
"TDLS_TEARDOWN *" can now be used to tear down the direct links to all TDLS peers. This is useful for debugging purposes. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
This commit is contained in:
parent
342bce63cd
commit
38ddccae8f
1 changed files with 7 additions and 0 deletions
|
@ -584,6 +584,13 @@ static int wpa_supplicant_ctrl_iface_tdls_teardown(
|
||||||
u8 peer[ETH_ALEN];
|
u8 peer[ETH_ALEN];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (os_strcmp(addr, "*") == 0) {
|
||||||
|
/* remove everyone */
|
||||||
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE TDLS_TEARDOWN *");
|
||||||
|
wpa_tdls_teardown_peers(wpa_s->wpa);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (hwaddr_aton(addr, peer)) {
|
if (hwaddr_aton(addr, peer)) {
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE TDLS_TEARDOWN: invalid "
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE TDLS_TEARDOWN: invalid "
|
||||||
"address '%s'", addr);
|
"address '%s'", addr);
|
||||||
|
|
Loading…
Reference in a new issue