Selaa lähdekoodia

qcacmn: Add BSS peer for NaN mode

NS offload is not working for NaN mode because BSS peer is not set.
Hence, set the BSS peer for NaN mode as it is done for SAP/P2P GO.

Change-Id: I4c8fbd502cb1d90dd235ae35d0a85a9981e68773
CRs-Fixed: 2494515
Alan Chen 5 vuotta sitten
vanhempi
sitoutus
bf06e91c8c
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c

+ 3 - 1
umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c

@@ -794,7 +794,9 @@ QDF_STATUS wlan_objmgr_vdev_peer_attach(struct wlan_objmgr_vdev *vdev,
 		wlan_vdev_set_selfpeer(vdev, peer);
 		opmode = wlan_vdev_mlme_get_opmode(vdev);
 		/* For AP mode, self peer and BSS peer are same */
-		if ((opmode == QDF_SAP_MODE) || (opmode == QDF_P2P_GO_MODE))
+		if ((opmode == QDF_SAP_MODE) ||
+		    (opmode == QDF_P2P_GO_MODE) ||
+		    (opmode == QDF_NDI_MODE))
 			wlan_vdev_set_bsspeer(vdev, peer);
 	}
 	/* set BSS peer for sta */