From 0cf0af2e2988898495bdd24a29cb5ddb74b6fb5e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 18 Oct 2013 13:16:37 +0300 Subject: [PATCH] WNM: Set Disassoc Imminent flag in ESS Disassoc Imminent frame The Disassociation Timer field is only valid if Disassoc Imminent is set to 1. Signed-hostap: Jouni Malinen --- hostapd/ctrl_iface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index a504aac79..0d8999255 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -743,6 +743,7 @@ static int hostapd_ctrl_iface_ess_disassoc(struct hostapd_data *hapd, mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ; mgmt->u.action.u.bss_tm_req.dialog_token = 1; mgmt->u.action.u.bss_tm_req.req_mode = + WNM_BSS_TM_REQ_DISASSOC_IMMINENT | WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT; mgmt->u.action.u.bss_tm_req.disassoc_timer = host_to_le16(disassoc_timer);