TDLS: Disable the link also on driver request for teardown
authorSunil Dutt <duttus@codeaurora.org>
Tue, 22 Jan 2013 12:09:54 +0000 (14:09 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 22 Jan 2013 12:09:54 +0000 (14:09 +0200)
The link was not disabled for the case of implicit trigger from the
driver unlike in the case of explicit trigger fromc ctrl_iface. Make the
tear down sequences match in these cases by adding the TDLS_DISABLE_LINK
tdls_oper to the driver when processing the TDLS_REQUEST_TEARDOWN event.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/events.c

index 983f670..7fe9c7f 100644 (file)
@@ -2137,7 +2137,7 @@ static void wpa_supplicant_event_tdls(struct wpa_supplicant *wpa_s,
                wpa_tdls_start(wpa_s->wpa, data->tdls.peer);
                break;
        case TDLS_REQUEST_TEARDOWN:
-               wpa_tdls_send_teardown(wpa_s->wpa, data->tdls.peer,
+               wpa_tdls_teardown_link(wpa_s->wpa, data->tdls.peer,
                                       data->tdls.reason_code);
                break;
        }