瀏覽代碼

qcacmn: Delete all peers during SSR

During SSR in dp_vdev_flush_peers function, the else condition finds peers
to delete by calling dp_peer_find_by_id. If the delete_in_progress_ flag
has already been set to TRUE, then dp_peer_find_by_id will return NULL
and not delete the vdev object. Calling __dp_peer_find_by_id will always
return peer id so all peers are sure to be deleted.

Change-Id: I86bf2bdda7ebc5a9c2f4bbc877392ebff9cbaf59
CRs-Fixed: 2513104
Saket Jha 5 年之前
父節點
當前提交
52e54333f4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dp/wifi3.0/dp_main.c

+ 1 - 1
dp/wifi3.0/dp_main.c

@@ -4828,7 +4828,7 @@ static void dp_vdev_flush_peers(struct cdp_vdev *vdev_handle, bool unmap_only)
 							 0);
 			}
 		} else {
-			peer = dp_peer_find_by_id(soc, peer_ids[i]);
+			peer = __dp_peer_find_by_id(soc, peer_ids[i]);
 
 			if (peer) {
 				dp_info("peer: %pM is getting flush",