[PATCH 3/3] P2P: Optimize scan frequencies list when re-joining a persistent group

Peer, Ilan ilan.peer
Mon Mar 23 04:13:35 PDT 2015


Hi Jouni,

Below is a snippet of the log. You can also have a look at WifiP2pServiceImpl.java, reinvokePersistentGroup(), that shows how p2pGroupAdd() can be called to restart a P2P Client.

Hope this helps,

Ilan.

01-01 19:25:39.950 D/wpa_supplicant( 2891): P2P: Set timeout (state=SEARCH): 0.327200 sec
01-01 19:25:40.040 I/WifiDisplayController(  654): Connecting to Wifi display: Actiontec A776
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Control interface command 'P2P_STOP_FIND'
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Stopping find
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Clear timeout (state=SEARCH)
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: State SEARCH -> IDLE
01-01 19:25:40.040 I/wpa_supplicant( 2891): P2P-FIND-STOPPED 
01-01 19:25:40.040 D/wpa_supplicant( 2891): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_27362-2\x00
01-01 19:25:40.040 D/wpa_supplicant( 2891): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_654-2\x00
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Clear timeout (state=IDLE)
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Clear drv_in_listen (2412)
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Cancel remain-on-channel with cookie 0x3dd
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: set_ap_wps_p2p_ie is not supported
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Disable Probe Request reporting nl_preq=0x7e590c19
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Skip removing already started radio work 'p2p-listen'@0xf6d186a0
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Radio work 'p2p-listen'@0xf6d186a0 done in 0.090351 seconds
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Drv Event 56 (NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL) received for p2p0
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Remain-on-channel event (cancel=1 freq=2412 channel_type=0 duration=0 cookie=0x3dd (match))
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Event CANCEL_REMAIN_ON_CHANNEL (21) received
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Cancel remain-on-channel callback (p2p_long_listen=0 ms pending_action_tx=0x0)
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Driver ended Listen state (freq=2412)
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Skip stop_listen since not in listen_only state.
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Control interface command 'P2P_PEER 10:9f:a9:dd:a7:76'
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Control interface command 'P2P_PEER 10:9f:a9:dd:a7:76'
01-01 19:25:40.040 D/wpa_supplicant( 2891): p2p0: Control interface command 'P2P_GROUP_ADD persistent=0'
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Stopping find
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Clear timeout (state=IDLE)
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: State IDLE -> IDLE
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: set_ap_wps_p2p_ie is not supported
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Create a new interface p2p-p2p0-16 for the group
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Create interface iftype 8 (P2P_CLIENT)
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Ignored event (cmd=7) for foreign interface (ifindex 25 wdev 0x0)
01-01 19:25:40.040 I/WAKELOCK_ACQUIRE(  654): TIMESTAMP=6137845336214, TAG=AudioMix, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=0, UID=1013, FLAGS=
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Ignored event (cmd=7) for foreign interface (ifindex 25 wdev 0x0)
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: New interface p2p-p2p0-16 created: ifindex=25
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Interface p2p-p2p0-16 created for P2P - disable 11b rates
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: NL80211_CMD_SET_TX_BITRATE_MASK (ifindex=25 NL80211_TXRATE_LEGACY=OFDM-only)
01-01 19:25:40.040 D/wpa_supplicant( 2891): nl80211: Set TX rates failed: ret=-100 (Network is down)
01-01 19:25:40.040 D/wpa_supplicant( 2891): P2P: Created pending virtual interface p2p-p2p0-16 addr cc:02:ff:aa:00:f0
01-01 19:25:40.040 D/wpa_supplicant( 2891): Override interface parameter: ctrl_interface ('(null)' -> '/data/misc/wifi/sockets')
01-01 19:25:40.040 D/wpa_supplicant( 2891): Initializing interface 'p2p-p2p0-16' conf 'N/A' driver 'nl80211' ctrl_interface '/data/misc/wifi/sockets' bridge 'N/A'
01-01 19:25:40.040 I/wpa_supplicant( 2891): rfkill: Cannot open RFKILL control device





More information about the Hostap mailing list