diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 09c2bbc65053..bf528ebfa1ce 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -21091,10 +21091,10 @@ QDF_STATUS hdd_softap_deauth_current_sta(struct hdd_adapter *adapter, qdf_event_reset(&hapd_state->qdf_sta_disassoc_event); - if (!qdf_is_macaddr_broadcast(&sta_info->sta_mac)) + if (!qdf_is_macaddr_broadcast(¶m->peerMacAddr)) sme_send_disassoc_req_frame(hdd_ctx->mac_handle, adapter->vdev_id, - (uint8_t *)&sta_info->sta_mac, + (uint8_t *)¶m->peerMacAddr, param->reason_code, 0); qdf_status = hdd_softap_sta_deauth(adapter, param); @@ -21165,6 +21165,9 @@ QDF_STATUS hdd_softap_deauth_all_sta(struct hdd_adapter *adapter, if (!sta_info->is_deauth_in_progress) { hdd_debug("Delete STA with MAC:" QDF_MAC_ADDR_STR, QDF_MAC_ADDR_ARRAY(sta_info->sta_mac.bytes)); + qdf_mem_copy(param->peerMacAddr.bytes, + sta_info->sta_mac.bytes, + QDF_MAC_ADDR_SIZE); status = hdd_softap_deauth_current_sta(adapter, sta_info, hapd_state, param);