[EDT] Questions/Doubts for groupAdd on dbus

Rahul Jain rahul.jain at samsung.com
Thu Jun 11 08:22:02 EDT 2015


Dear WPAs,

I have two questions:-
1. On dbus, if I do GroupAdd on p2p0 interface with "{'persistent': <false>}", I am not able to see the group interface under Group property of fi.w1.wpa_supplicant1.Interface.P2PDevice.

Commands:-
gdbus call --system --dest fi.w1.wpa_supplicant1 --object-path /fi/w1/wpa_supplicant1/Interfaces/3 --method fi.w1.wpa_supplicant1.Interface.P2PDevice.GroupAdd "{'persistent': <false>}"

introspect output:-
  interface fi.w1.wpa_supplicant1.Interface.P2PDevice {
    properties:
      readwrite a{sv} P2PDeviceConfig = {'PrimaryDeviceType': <[byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]>, 'GOIntent': <uint32 7>, 'PersistentReconnect': <false>, 'ListenRegClass': <uint32 0>, 'ListenChannel': <uint32 0>, 'OperRegClass': <uint32 0>, 'OperChannel': <uint32 0>, 'IntraBss': <true>, 'GroupIdle': <uint32 0>, 'disassoc_low_ack': <uint32 0>, 'NoGroupIface': <false>, 'p2p_search_delay': <uint32 500>};
      readonly ao Peers = [];
      readonly s Role = 'device';
      readonly o Group = '/';
      readonly o PeerGO = '/';
      readonly ao PersistentGroups = ['/fi/w1/wpa_supplicant1/Interfaces/1/PersistentGroups/1', '/fi/w1/wpa_supplicant1/Interfaces/1/PersistentGroups/3', '/fi/w1/wpa_supplicant1/Interfaces/1/PersistentGroups/5'];
  };
  
  
2. If I do p2p_group_add on ctrl_iface, the new group formed is coming introspect output.

Commands:-
wpa_cli -i p2p0 -p /var/run/wpa_supplicant p2p_group_add

introspect output:-
  interface fi.w1.wpa_supplicant1.Interface.P2PDevice {
    properties:
      readwrite a{sv} P2PDeviceConfig = {'PrimaryDeviceType': <[byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]>, 'GOIntent': <uint32 7>, 'PersistentReconnect': <false>, 'ListenRegClass': <uint32 0>, 'ListenChannel': <uint32 0>, 'OperRegClass': <uint32 0>, 'OperChannel': <uint32 0>, 'IntraBss': <true>, 'GroupIdle': <uint32 0>, 'disassoc_low_ack': <uint32 0>, 'NoGroupIface': <false>, 'p2p_search_delay': <uint32 500>};
      readonly ao Peers = [];
      readonly s Role = 'GO';
      readonly o Group = '/fi/w1/wpa_supplicant1/Interfaces/3/Groups/H8';
      readonly o PeerGO = '/';
      readonly ao PersistentGroups = ['/fi/w1/wpa_supplicant1/Interfaces/1/PersistentGroups/1', '/fi/w1/wpa_supplicant1/Interfaces/1/PersistentGroups/3', '/fi/w1/wpa_supplicant1/Interfaces/1/PersistentGroups/5'];
  };
  
3. What does "Role" value as "device" implies in fi.w1.wpa_supplicant1.Interface.P2PDevice?

Can somebody help me?

EP-A39FC82E86A64058A3D483D9DB07ED2D


More information about the HostAP mailing list