Răsfoiți Sursa

qcacld-3.0: Set IBSS peer state to associate state after connection

Currently in IBSSS mode, host do not change the peer state to
associate state after successful connection. Hence other
components always find peer state as not associate.
As a part of this fix, move IBSS peer state to associate state.

Change-Id: I21970ae723a3cecd797182c260692810625f2ace
CRs-Fixed: 2007648
Mukul Sharma 8 ani în urmă
părinte
comite
eb01e1311b
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      core/hdd/src/wlan_hdd_assoc.c

+ 6 - 0
core/hdd/src/wlan_hdd_assoc.c

@@ -1324,6 +1324,12 @@ static void hdd_send_association_event(struct net_device *dev,
 		if (ret)
 			hdd_err("Peer object "MAC_ADDRESS_STR" add fails!",
 				MAC_ADDR_ARRAY(pCsrRoamInfo->bssid.bytes));
+		ret = hdd_set_peer_mlme_state(pAdapter->hdd_vdev,
+				WLAN_ASSOC_STATE);
+		if (ret)
+			hdd_err("Peer object %pM fail to set associated state",
+					peerMacAddr.bytes);
+
 	} else {                /* Not Associated */
 		hdd_err("wlan: disconnected");
 		memset(wrqu.ap_addr.sa_data, '\0', ETH_ALEN);