qcacld-3.0: don't process deauth if broadcast macaddr

In function hdd_softap_deauth_all_sta, if sta's mac address
is broadcast address, it does not need to invoke function
hdd_softap_deauth_current_sta.

Change-Id: If3d19a8f6f91cb3568c2c20c8cf3a171772d571e
CRs-Fixed: 3320047
This commit is contained in:
Paul Zhang
2022-10-24 21:26:53 +08:00
committed by Madan Koyyalamudi
parent a9bfcb0698
commit dcf34404aa

View File

@@ -21925,6 +21925,14 @@ 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_FMT,
QDF_MAC_ADDR_REF(sta_info->sta_mac.bytes));
if (QDF_IS_ADDR_BROADCAST(sta_info->sta_mac.bytes)) {
hdd_put_sta_info_ref(&adapter->sta_info_list,
&sta_info, true,
STA_INFO_SOFTAP_DEAUTH_ALL_STA);
continue;
}
qdf_mem_copy(param->peerMacAddr.bytes,
sta_info->sta_mac.bytes,
QDF_MAC_ADDR_SIZE);