Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61e42262 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix group join CTS test

Bug: 7379336
Change-Id: I20ead7e8c0d855be523bdfd8d9cb9eaa4b8fcac1
parent 398a6713
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -1465,6 +1465,12 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
            if (mGroup.isGroupOwner()) {
                setWifiP2pInfoOnGroupFormation(SERVER_ADDRESS);
            }

            // In case of a negotiation group, connection changed is sent
            // after a client joins. For autonomous, send now
            if (mAutonomousGroup) {
                sendP2pConnectionChangedBroadcast();
            }
        }

        @Override
@@ -1479,7 +1485,11 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
                                deviceAddress.equals(mSavedProvDiscDevice.deviceAddress)) {
                            mSavedProvDiscDevice = null;
                        }
                        if (mPeers.get(deviceAddress) != null) {
                            mGroup.addClient(mPeers.get(deviceAddress));
                        } else {
                            mGroup.addClient(deviceAddress);
                        }
                        mPeers.updateStatus(deviceAddress, WifiP2pDevice.CONNECTED);
                        if (DBG) logd(getName() + " ap sta connected");
                        sendP2pPeersChangedBroadcast();