Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Re: mac80211_hwsim device not powered (Jose Blanquicet)
   2. Re: [PATCH] wifi: Don't perform handle_wps_completion() when
      p2p is connecting (Jose Blanquicet)
   3. [PATCH] wifi: Avoid interface's state machine moves forward
      with P2P networks ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Sun, 10 Dec 2017 20:21:27 +0100
From: Jose Blanquicet <[email protected]>
To: BOURDIL Pierre-Alain <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: mac80211_hwsim device not powered
Message-ID:
        <CAFC8iJKoM7FZQQS5aPGGMcBWM=ZLrR=ixm91wpmq3sah4nf...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi Pierre-Alain,

Sorry for the long long delay.

On Thu, Nov 30, 2017 at 2:50 PM, BOURDIL Pierre-Alain
<[email protected]> wrote:
> scanning with wpa_cli is ok. Also, i recompiled wpa_supplicant following the 
> advice from connman config recommendation (at least CONFIG_BGSCAN was missing)

Did you also check the last paragraph where is explained the required
wpa_supplicant's parameters in case it is not started by ConnMan?

> Now i still have a problem :
> "connmanctl> scan wifi
> Error /net/connman/technology/wifi: Not supported"
>
> From gdb, it still is triggered from device.c:device_scan, but because the 
> device's driver is null.
>
> i attached here the log from connmand -n -d output.

The device's driver for WiFi devices is the plugin/wifi.c +
gsupplicant/*. I checked your logs and I don't see the log
"plugins/wifi.c:system_ready()" which means that the WiFi device's
driver does not even get registered and that's the reason you see it
as NULL and you get such error.

You could fall in such situation when either ConnMan was not compiled
with plugin WiFi which is enabled by default thus I don't think this
is the case. Or when ConnMan is not able to communicate with
wpa_supplicant, much probably. Could you please check wpa_supplicant
has been launched with option "-u"?

Regards,

Jose Blanquicet


------------------------------

Message: 2
Date: Sun, 10 Dec 2017 20:22:21 +0100
From: Jose Blanquicet <[email protected]>
To: Daniel Wagner <[email protected]>
Cc: [email protected], Saurav Babu <[email protected]>,
        SACHIN DEV SHARMA <[email protected]>
Subject: Re: [PATCH] wifi: Don't perform handle_wps_completion() when
        p2p is connecting
Message-ID:
        <CAFC8iJLGSi1MiZny+v10iK_Tky=3nsBV6rs3=khgqlj4cc1...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi Daniel,

On Wed, Dec 6, 2017 at 9:47 PM, Daniel Wagner <[email protected]> wrote:
> Could you add your excellent analysis to commit message and resend the patch
> with it?

Yes, sure :)

Jose


------------------------------

Message: 3
Date: Sun, 10 Dec 2017 19:25:10 +0100
From: [email protected]
To: [email protected]
Cc: [email protected], [email protected], [email protected],
        Jose Blanquicet <[email protected]>
Subject: [PATCH] wifi: Avoid interface's state machine moves forward
        with P2P networks
Message-ID: <[email protected]>

From: Jose Blanquicet <[email protected]>

When P2P is connecting and the other device acts as Group owner then it
is not needed to handle interface state changes G_SUPPLICANT_STATE_*
because the P2P connection success is completely based on the peer state
CONNMAN_PEER_STATE_*. Therefore, do not treat interface state changes
during a P2P connection, otherwise it could result in an inconsistency.

Check wifi->p2p_device will handle system's configuration where the P2P
group interface is created and wifi->p2p_connecting where it is not.

Reported-by: Saurav Babu <[email protected]>
---
 plugins/wifi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index e27f393..b550a4c 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2899,6 +2899,10 @@ static void network_associated(GSupplicantNetwork 
*network)
        if (!wifi)
                return;
 
+       /* P2P networks must not be treated as WiFi networks */
+       if (wifi->p2p_connecting || wifi->p2p_device)
+               return;
+
        identifier = g_supplicant_network_get_identifier(network);
 
        connman_network = connman_device_get_network(wifi->device, identifier);
-- 
1.9.1



------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 26, Issue 10
***************************************

Reply via email to