qcacld-3.0: send deauth to AP before teardown link

When heartbeat failure happens, the heartbeat handler
lim_handle_heart_beat_failure_timeout will tear down
the link and not send the deauth frame to peer.

Change-Id: Ifdef06d366c305d6c5f975f48356a83a77cf7b2c
CRs-Fixed: 2043958
This commit is contained in:
Paul Zhang 2017-05-09 23:08:17 +08:00 • committed by snandini
commit e73d1a3b3a

View file

@ -5469,6 +5469,11 @@ void lim_handle_heart_beat_failure_timeout(tpAniSirGlobal mac_ctx)
(psession_entry->currentBssBeaconCnt == 0))) {
pe_debug("for session: %d",
psession_entry->peSessionId);
lim_send_deauth_mgmt_frame(mac_ctx,
eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON,
psession_entry->bssId, psession_entry, false);
/*
* AP did not respond to Probe Request.
* Tear down link with it.