Browse Source

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
Paul Zhang 2 years ago
parent
commit
dcf34404aa
1 changed files with 8 additions and 0 deletions
  1. 8 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 8 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -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);