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

Commit 0e1a5d55 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "p2p:Fix for discovery failure until STA is connected to AP."

parents 8965e107 9ffc2035
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -930,8 +930,10 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
                    break;
                case WifiP2pManager.DISCOVER_PEERS:
                    if (mDiscoveryBlocked) {
                        replyToMessage(message, WifiP2pManager.DISCOVER_PEERS_FAILED,
                                WifiP2pManager.BUSY);
                        /* do not send discovery failure to apps.
                         since discovery is postponed and not failed */
                        mDiscoveryPostponed = true;
                        logi("P2P_FIND is deffered");
                        break;
                    }
                    // do not send service discovery request while normal find operation.