Miracast Support on AOSP (Marvell WIFI W8997-M1216)

308 views
Skip to first unread message

Tommaso Merciai

unread,
Jun 25, 2020, 1:03:34 PM6/25/20
to android-porting

Hi,

We are trying to port WIFI Display Miracast support into AOSP using Marvell chip WIFI W8997-M1216 (AOSP 9-1.0.0/10-1.0.0). Below the steps that we have done to try port Miracast support into AOSP.

1) Test using:

  • CPU: imx8mq/imx8qm/imx8qxp
  • OS: Android 9-1.0.0 / 10-1.0.0
  • WI-FI  chip: Marvell sd8997
  • Miracast Dongle: Miracast Microsoft dongle
  • Chromecast

 

I'm able to patch the android Framework to scan the Miracast WI-FI Display (P2P) device using Android UI "Cast" button. 
To do that we apply the following patch:

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

Under sd8997 Driver we add the following config to support wifi-display and wifidirect:

android9/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/seco_c20_android_defconfig
# WIDI/WI-FI Display support
CONFIG_SD8997_WIFI_DIRECT_SUPPORT=y
CONFIG_SD8997_WIFI_DISPLAY_SUPPORT=y
CONFIG_SD8997_UAP_SUPPORT=y
CONFIG_SD8997_STA_SUPPORT=y


android9/vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/seco/seco-imx8mq-c20.dtsi:
sd8xxx-wlan {
         //drvdbg  = <0x37>;
         drv_mode = <0x7>;
         cfg80211_wext = <0xf>;
         sta_name = "wlan";
         wfd_name = "p2p";
         max_vir_bss = <1>;
         cal_data_cfg = "mrvl/cal_data.conf";
         fw_name = "mrvl/sdsd8997_combo_v4.bin";
         reg_alpha2 = "US";
         p2p_enh = <1>;
         auto_ds=<0>;
         inact_tmo = <3000>;
         gtk_rekey_offload = <1>;
         cfg80211_drcs = <0>;
    };

-----------------------------------------------------------------------------------------------------------------------------------------------
We patch also the wpa_supplicant:

external/wpa_supplicant_8/wpa_supplicant/android.config

# Wi-Display Support
CONFIG_DRIVER_NL80211=y
CONFIG_CTRL_IFACE=y
CONFIG_P2P=y
CONFIG_AP=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WIFI_DISPLAY=y

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

We do some test on Linux Android side:

For debugging purpose we try to enstablish p2p connection to the Miracast Dongle using wpa_cli command line, using the following steps:
We add support for p2p0 interface in wpa_supplicant system service:

service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
    -ip2p0 -dd -Dnl80211 -c/data/vendor/wifi/wpa/p2p_supplicant.conf \
    -puse_multi_chan_concurrent=1 \
    -N -iwlan0 -Dnl80211 -c/data/vendor/wifi/wpa/wpa_supplicant.conf \
    -puse_multi_chan_concurrent=1 \
    -N -iuap0 -Dnl80211 -c/data/vendor/wifi/wpa/wpa_supplicant.conf \
    -puse_multi_chan_concurrent=1 \
    -C /data/vendor/wifi/wpa/sockets \
    -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
    interface android.hardware.wifi.supplicant@1.0::ISupplicant default
    interface android.hardware.wifi.supplicant@1.1::ISupplicant default
    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot


The following p2p_supplicant.conf has been used:

disable_scan_offload=1
p2p_go_vht=1
p2p_no_group_iface=1

Then from Terminal, we use the following commands:

$ wpa_cli -i p2p0

>p2p_find
>p2p_stop_find

We check wich devices respond to the p2p broadcast using:

> p2p_peers
c6:9d:ed:f5:9b:d5
ce:d4:2e:0d:7e:a0

Then we try to connect to c6:9d:ed:f5:9b:d5 (Miracast dongle) using:

> p2p_connect c6:9d:ed:f5:9b:d5 pbc persistent go_intent=15
[ 6995.396507] wlan: TX P2P Group Owner Negotiation Req Frame, channel=11
OK
> [ 6995.423559] wlan: RX P2P Group Owner Negotiation Rsp Frame, channel=11
[ 6995.889253] wlan: RX P2P Group Owner Negotiation Req Frame, channel=6
[ 6995.896310] wlan: TX P2P Group Owner Negotiation Rsp Frame, channel=6
[ 6995.910499] wlan: RX P2P Group Owner Negotiation Confirm Frame, channel=6
<3>P2P-GO-NEG-SUCCESS role=GO freq=5180 ht40=1 peer_dev=c6:9d:ed:f5:9b:d5 peer_iface=c6:9d:ed:f5:9b:d5 wps_method=PBC
> [ 6995.972541] Can not set data rate in disconnected state
[ 6996.075345] wlan: SCAN COMPLETED: scanned AP count=2
<3>CTRL-EVENT-SCAN-STARTED
[ 6996.089259] wlan: Starting AP
> [ 6996.098539] Get vht_cap from beacon ies: 0x33d179b0
[ 6996.120450] wlan: AP started
[ 6996.126010] Set AC=3, txop=47 cwmin=3, cwmax=7 aifs=1
[ 6996.133543] Set AC=2, txop=94 cwmin=7, cwmax=15 aifs=1
[ 6996.145022] Set AC=0, txop=0 cwmin=15, cwmax=63 aifs=3
[ 6996.156095] Set AC=1, txop=0 cwmin=15, cwmax=1023 aifs=7
<3>AP-ENABLED
<3>CTRL-EVENT-CONNECTED - Connection to c2:e4:34:fc:f4:e5 completed [id=4 id_str=]
<3>CTRL-EVENT-STATE-CHANGE id=4 state=9 BSSID=c2:e4:34:fc:f4:e5 SSID=DIRECT-Tr-Android_3c7e
<3>WPS-PBC-ACTIVE
<3>WPS-ENROLLEE-SEEN c6:9d:ed:f5:9b:d5 56789abc-def0-1234-5678-90abcdef0123 7-0050F204-1 0x2288 4 1 [MSDisplayAdapter_D5]
<3>WPS-ENROLLEE-SEEN c6:9d:ed:f5:9b:d5 56789abc-def0-1234-5678-90abcdef0123 7-0050F204-1 0x2288 4 1 [MSDisplayAdapter_D5]
<3>WPS-ENROLLEE-SEEN c6:9d:ed:f5:9b:d5 56789abc-def0-1234-5678-90abcdef0123 7-0050F204-1 0x2288 4 1 [MSDisplayAdapter_D5]
<3>WPS-ENROLLEE-SEEN c6:9d:ed[ 6996.456647] wlan: EVENT: MICRO_AP_STA_ASSOC c6:XX:XX:XX:9b:d5
:f5:9b:d5 56789abc-def0-1234-5678-90abcdef0123 7-0050F204-1 0x2288 4 1 [MSDisplayAdapter_D5]
<3>P2P-DEVICE-FOUND c6:9d:ed:f5:9b:d5 p2p_dev_addr=c6:9d:ed:f5:9b:d5 pri_dev_type=7-0050F204-1 name='MSDisplayAdapter_D5' config_methods=0x88 dev_capab=0x25 group_capab=0x0 wfd_dev_info=0x015d022a0032 new
=0
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>CTRL-EVENT-EAP-STARTED c6:9d:ed:f5:9b:d5
<3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
<3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=254
<3>WPS-REG-SUCCESS c6:9d:ed:f5:9b:d5 56789abc-def0-1234-5678-90abcdef0123
<3>P2P-GROUP-FORMATION-SUCCESS
<3>P2[ 6997.510226] wlan: EVENT: MICRO_AP_STA_DEAUTH c6:XX:XX:XX:9b:d5
[ 6997.517335] wlan: deauth station c6:XX:XX:XX:9b:d5
P-GROUP-STARTED p2p0 GO ssid="DIR[ 6997.523297] wlan: deauth station c6:XX:XX:XX:9b:d5
ECT-Tr-Android_3c7e" freq=5180 passphrase="E7FSdGMv" go_dev_addr=c2:e4:34:fc:f4:e5 [PERSISTENT]
<3>WPS-PBC-DISABLE
<3>WPS-SUCCESS
<3>CTRL-EVENT-EAP-FAILURE c6:9d:ed:f5:9b:d5
<3>WPS-ENROLLEE-SEEN c6:9d:ed[ 6997.784148] wlan: EVENT: MICRO_AP_STA_ASSOC c6:XX:XX:XX:9b:d5
:f5:9b:d5 56789abc-def0-1234-5678-90abcdef0123 7-0050F204-1 0x2288 4 1 [MSDisplayAdapter_D5]
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>AP-STA-CONNECTED c6:9d:ed:f5:9b:d5 p2p_dev_addr=c6:9d:ed:f5:9b:d5
> [ 6998.807525] ADDBA RSP: Failed(c6:XX:XX:XX:9b:d5 tid=6)
[ 7003.469641] ADDBA RSP: Failed(c6:XX:XX:XX:9b:d5 tid=6)


​I ​think the problem is due to this last 2 lines. The 2 devices don't establish the p2p connection though we sent and intent of 15 to begin the GO in the p2p connection.

-----------------------------------------------------------------------------------------------------------------------------------------------
We also work on Android Framework, in particular: we enable wifi-display scan apply the following patch:

android9/frameworks/base/services/core/java/com/android/server/display/DisplayManagerService.java
private void registerWifiDisplayAdapterLocked() {
-        if (mContext.getResources().getBoolean(
-                com.android.internal.R.bool.config_enableWifiDisplay)
-                || SystemProperties.getInt(FORCE_WIFI_DISPLAY_ENABLE, -1) == 1) {
+    
             mWifiDisplayAdapter = new WifiDisplayAdapter(
                     mSyncRoot, mContext, mHandler, mDisplayAdapterListener,
                     mPersistentDataStore);
             registerDisplayAdapterLocked(mWifiDisplayAdapter);
-        }
     }
 
     private boolean shouldRegisterNonEssentialDisplayAdaptersLocked() {

-----------------------------------------------------------------------------------------------------------------------------------------------
We try also to apply this patch for Android 9:

----------------------------------------------------------------------------------------------------------------------------------------------
When we try to enstablish P2P Connection with Miracast Dongle using:

"Cast Button"->Settings->MSDisplayAdapter_D5 (our Miracast Dongle name)

We receive the following output from terminal (driver side):

[  151.990113] wlan: TX P2P Invitation Request, channel=11
[  152.006884] aic32x4: i=19, mdac= 0x02
[  152.007995] wlan: RX P2P Invitation Response, channel=11
[  152.067310] Can not set data rate in disconnected state
[  152.163092] wlan: SCAN COMPLETED: scanned AP count=3
[  152.177968] wlan: Starting AP
[  152.182260] Get vht_cap from beacon ies: 0x33d179b0
[  152.199820] wlan: AP started
[  152.204497] Set AC=3, txop=47 cwmin=3, cwmax=7 aifs=1
[  152.213305] Set AC=2, txop=94 cwmin=7, cwmax=15 aifs=1
[  152.221077] Set AC=0, txop=0 cwmin=15, cwmax=63 aifs=3
[  152.228876] Set AC=1, txop=0 cwmin=15, cwmax=1023 aifs=7
[  155.276297] wlan: EVENT: MICRO_AP_STA_ASSOC c6:XX:XX:XX:9b:d5
[  165.811059] ADDBA RSP: Failed(c6:XX:XX:XX:9b:d5 tid=6)
[  166.624309] wlan: deauth station ff:XX:XX:XX:ff:ff
[  166.630449] wlan: Stoping AP
-------------------------------------------------------------------------------------------------------------------------------------------------
Under logcat we have the following output:

06-18 11:17:29.620  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:29.622  4103  4103 D P2P     : Peers changed
06-18 11:17:29.624  4103  4103 D P2P     : Request peers info
06-18 11:17:29.624  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
[  378.455450] wlan: p2p0 START SCAN
06-18 11:17:33.124  2851  2862 E DEBUg-SECO --> : debug 677
06-1[  381.633642] wlan: ABORT SCAN start
8 11:17:33.124  2851  2874 E DEBU[  381.639896] IOCTL failed: ffff80000cd83c00 id=0x10000, sub_id=0x10003 action=1, status_code=0x80000007
g-SECO --> : debug 260 mWifiDisplayOnSetting
06-18 11:17:33.124 [  381.655655] wlan: SCAN COMPLETED: scanned AP count=0
 2851  2874 E DEBUg-SECO --> : debug 261 mWifiP2pEnabled
06-18 11:17:33.124  2851  2874 E DEBUg-SECO --> : debug 260 mWifiDispla[  381.671175] aic32x4: i=19, mdac= 0x02
yOnSetting
06-18 11:17:33.124  2851  2874 E DEBUg-SECO --> : debug 261 mWifiP2pEnabled
06-18 11:17:29.353  2748  2748 I chatty  : uid=1010(wifi) /system/bin/wificond identical 24 lines
06-18[  381.693048] wlan: TX P2P Invitation Request, channel=11
 11:17:29.615  2748  2748 W wificond: No handler for scan result notification from interface with index: 6
06-18 11:17:33.124  2851  2874 I WifiDisplayController: Connecting to Wifi display: M[  381.713785] wlan: RX P2P Invitation Response, channel=11
SDisplayAdapter_D5
06-18 11:17:33.126  2694  4075 I audio_hw_primary: start_output_stream_primary... 0xe78d1000, device 1024, address , mode 0
06-18 11:17:33.126  2694  4075 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 0,
06-18 11:17:33.126  2851  2943 D SupplicantP2pIfaceHal: entering stopFind()
06-18 11:17:33.126  3077  3077 V MediaRouter: Adding route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_LI
VE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.127  2851  2851 V M[  381.781543] Can not set data rate in disconnected state
ediaRouter: Adding route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  gr
oupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.127  2851  2851 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.127  2851  2851 E DEBUg-SECO --> : debug 726
06-18 11:17:33.131  3077  3077 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.132  2851  3338 E DEBUg-SECO --> : debug 726
06-18 11:17:33.134[  381.880174] wlan: SCAN COMPLETED: scanned AP count=3
  3527  3527 V MediaRouter: Adding route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting...[  381.896467] wlan: Starting AP
, category=RouteCategory{ name=Sy[  381.903954] Get vht_cap from beacon ies: 0x33d179b0
stem types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.134  3527  3527 V MediaRouter: S[  381.923601] wlan: AP started
electing route: RouteInfo{ name=M[  381.931745] Set AC=3, txop=47 cwmin=3, cwmax=7 aifs=1
SDisplayAdapter_D5, description=Wireless display, status=Connecti[  381.940365] Set AC=2, txop=94 cwmin=7, cwmax=15 aifs=1
ng..., category=RouteCategory{ na[  381.950625] Set AC=0, txop=0 cwmin=15, cwmax=63 aifs=3
me=System types=ROUTE_TYPE_LIVE_A[  381.958720] Set AC=1, txop=0 cwmin=15, cwmax=1023 aifs=7
UDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.135  2851  3338 E DEBUg-SECO --> : debug 726
06-18 11:17:33.136  2851  3338 E DEBUg-SECO --> : debug 657
06-18 11:17:33.136  2851  3338 E DEBUg-SECO --> : debug 662
06-18 11:17:33.136  2851  3338 E DEBUg-SECO --> : debug 726
06-18 11:17:33.175  3361  3361 I wpa_supplicant: P2P-FIND-STOPPED
06-18 11:17:33.175  2748  2748 W wificond: No handler for scan result notification from interface with index: 6
06-18 11:17:33.176  2851  2943 D SupplicantP2pIfaceHal: stopFind() completed successfully.
06-18 11:17:33.176  2851  3059 D SupplicantP2pIfaceCallback: Search stopped on p2p0
06-18 11:17:33.176  2851  2943 D SupplicantP2pIfaceHal: leaving stopFind()
06-18 11:17:33.176  2851  2943 D SupplicantP2pIfaceHal: entering getGroupCapability(c6:9d:ed:f5:9b:d5)
06-18 11:17:33.176  2851  2943 D SupplicantP2pIfaceHal: getGroupCapability(c6:9d:ed:f5:9b:d5) completed successfully.
06-18 11:17:33.176  2851  2943 D SupplicantP2pIfaceHal: leaving getGroupCapability(c6:9d:ed:f5:9b:d5) with result = 42
06-18 11:17:33.176  2851  2943 D SupplicantP2pIfaceHal: entering getSsid(c6:9d:ed:f5:9b:d5)
06-18 11:17:33.178  2851  2943 D SupplicantP2pIfaceHal: getSsid(c6:9d:ed:f5:9b:d5) completed successfully.
06-18 11:17:33.178  2851  2943 D SupplicantP2pIfaceHal: leaving getSsid(c6:9d:ed:f5:9b:d5) with result = DIRECT-WA-Android_3c7e
06-18 11:17:33.178  2851  2943 D SupplicantP2pIfaceHal: entering getNetwork(1)
06-18 11:17:33.179  2851  2943 D SupplicantP2pIfaceHal: getNetwork(1) completed successfully.
06-18 11:17:33.179  2851  2943 D SupplicantP2pIfaceHal: leaving getNetwork(1) with result = android.hardware.wifi.supplicant@1.0::ISupplicantP2pNetwork@Proxy
06-18 11:17:33.179  2851  2943 D SupplicantP2pIfaceHal: entering getClientList(1)
06-18 11:17:33.179  2851  2943 D SupplicantP2pIfaceHal: getClientList(1) completed successfully.
06-18 11:17:33.179  2851  2943 D SupplicantP2pIfaceHal: leaving getClientList(1) with result = [[B@fa6f754]
06-18 11:17:33.179  2851  2943 D SupplicantP2pIfaceHal: entering reinvoke(1, c6:9d:ed:f5:9b:d5)
06-18 11:17:33.180  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: false
06-18 11:17:33.180  2851  2943 D SupplicantP2pIfaceHal: reinvoke(1, c6:9d:ed:f5:9b:d5) completed successfully.
06-18 11:17:33.180  2851  2943 D SupplicantP2pIfaceHal: leaving reinvoke(1, c6:9d:ed:f5:9b:d5)
06-18 11:17:33.183  2851  2874 I WifiDisplayController: Initiated connection to Wifi display: MSDisplayAdapter_D5
06-18 11:17:33.186  4103  4103 D P2P     : Peers changed
06-18 11:17:33.187  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:33.189  4103  4103 D P2P     : Request peers info
06-18 11:17:33.190  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
06-18 11:17:33.199  2694  4075 W audio_hw_primary: output card 0, port 0 device 0x400
06-18 11:17:33.199  2694  4075 W audio_hw[  382.237582] wlan: EVENT: MICRO_AP_STA_ASSOC c6:XX:XX:XX:9b:d5
_primary: rate 48000, channel 2 period_size 0xc0
06-18 11:17:33.218  3361  3361 I wpa_supplicant: P2P-INVITATION-RESULT status=0
06-18 11:17:33.219  2851  3059 D SupplicantP2pIfaceCallback: Invitation completed with status: 0
06-18 11:17:33.284  3361  3361 I wpa_supplicant: p2p0: interface state UNINITIALIZED->HT_SCAN
06-18 11:17:33.388  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: false
06-18 11:17:33.388  2748  2748 W wificond: No handler for scan result notification from interface with index: 6
06-18 11:17:33.389  3361  3361 E wpa_supplicant: Using interface p2p0 with hwaddr c2:e4:34:fc:f4:e5 and ssid "DIRECT-WA-Android_3c7e"
06-18 11:17:33.390  3361  3361 W wpa_supplicant: Device is trying to offload WPS Probe Response while not supporting this
06-18 11:17:33.390  3361  3361 W wpa_supplicant: Device is trying to offload P2P Probe Response while not supporting this
06-18 11:17:33.424  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: true
06-18 11:17:33.427  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: true
06-18 11:17:33.460  3361  3361 I wpa_supplicant: p2p0: interface state HT_SCAN->ENABLED
06-18 11:17:33.460  3361  3361 I wpa_supplicant: p2p0: AP-ENABLED
06-18 11:17:33.460  3361  3361 I wpa_supplicant: p2p0: CTRL-EVENT-CONNECTED - Connection to c2:e4:34:fc:f4:e5 completed [id=2 id_str=]
06-18 11:17:33.461  3361  3361 I wpa_supplicant: P2P-GROUP-STARTED p2p0 GO ssid="DIRECT-WA-Android_3c7e" freq=5180 go_dev_addr=c2:e4:34:fc:f4:e5 [PERSISTENT]
06-18 11:17:33.462  2851  3059 D SupplicantP2pIfaceCallback: Group p2p0 started on p2p0
06-18 11:17:33.465  2851  2943 D SupplicantP2pIfaceHal: entering listNetworks()
06-18 11:17:33.466  2851  2943 D SupplicantP2pIfaceHal: listNetworks() completed successfully.
06-18 11:17:33.466  2851  2943 D SupplicantP2pIfaceHal: leaving listNetworks() with result = [1, 2]
06-18 11:17:33.466  2851  2943 D SupplicantP2pIfaceHal: entering getNetwork(1)
06-18 11:17:33.467  2851  2943 D SupplicantP2pIfaceHal: getNetwork(1) completed successfully.
06-18 11:17:33.467  2851  2943 D SupplicantP2pIfaceHal: leaving getNetwork(1) with result = android.hardware.wifi.supplicant@1.0::ISupplicantP2pNetwork@Proxy
06-18 11:17:33.467  2851  2943 D SupplicantP2pIfaceHal: entering isCurrent(1)
06-18 11:17:33.467  2851  2943 D SupplicantP2pIfaceHal: isCurrent(1) completed successfully.
06-18 11:17:33.467  2851  2943 D SupplicantP2pIfaceHal: leaving isCurrent(1) with result = false
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: entering getSsid(1)
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: getSsid(1) completed successfully.
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: leaving getSsid(1) with result = [68, 73, 82, 69, 67, 84, 45, 87, 65, 45, 65, 110, 100, 114, 111, 105, 100, 95, 51, 99, 55, 101]
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: entering getBssid(1)
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: getBssid(1) completed successfully.
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: leaving getBssid(1) with result = [B@b480ff2
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: entering isGo(1)
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: isGo(1) completed successfully.
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: leaving isGo(1) with result = true
06-18 11:17:33.468  2851  2943 D SupplicantP2pIfaceHal: entering getNetwork(2)
06-18 11:17:33.469  2851  2943 W SupplicantP2pIfaceHal: getNetwork(2) failed: 1 ()
06-18 11:17:33.469  2851  2943 D SupplicantP2pIfaceHal: leaving getNetwork(2) with result = null
06-18 11:17:33.469  2851  2943 E SupplicantP2pIfaceHal: getNetwork got null network
06-18 11:17:33.469  2851  2943 E SupplicantP2pIfaceHal: Failed to retrieve network object for 2
06-18 11:17:33.469  2851  2943 D SupplicantP2pIfaceHal: entering saveConfig()
06-18 11:17:33.469  2851  2943 W SupplicantP2pIfaceHal: saveConfig() failed: 1 ()
06-18 11:17:33.469  2851  2943 D SupplicantP2pIfaceHal: leaving saveConfig()
06-18 11:17:33.469  2851  2943 D SupplicantP2pIfaceHal: entering setGroupIdle(p2p0, 10)
06-18 11:17:33.470  2851  2943 D SupplicantP2pIfaceHal: setGroupIdle(p2p0, 10) completed successfully.
06-18 11:17:33.470  2851  2943 D SupplicantP2pIfaceHal: leaving setGroupIdle(p2p0, 10)
06-18 11:17:33.471  2681  2726 D CommandListener: Setting iface cfg
06-18 11:17:33.472  2681  2726 D CommandListener: Trying to bring up p2p0
06-18 11:17:33.473  2681  2726 D TetherController: tetherInterface(p2p0)
06-18 11:17:33.476  2681  2726 E Netd    : getIfIndex: cannot find interface p2p0
06-18 11:17:33.476  2681  2726 E Netd    : inconceivable! added interface p2p0 with no index
06-18 11:17:33.477  2681  2726 D TetherController: Starting tethering services
06-18 11:17:33.488  2681  2726 D TetherController: Sending update msg to dnsmasq [update_ifaces|p2p0]
06-18 11:17:33.488  2681  2726 D TetherController: Tethering services running
06-18 11:17:33.492  2851  2943 D WifiP2pService: Started Dhcp server on p2p0
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 27 (11:11010)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 28 (11:11010)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 30 (11:11012)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 31 (11:11012)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 33 (11:11014)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 34 (11:11014)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 36 (11:11016)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 37 (11:11016)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 40 (11:11018)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 41 (11:11018)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 42 (8:11019)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 43 (8:11020)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 44 (11:11021)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 45 (11:11021)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 46 (11:11022)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 47 (11:11022)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 50 (11:11026)
06-18 11:17:33.508  7105  7105 E dnsmasq : Closing inherited file descriptor 51 (11:11026)
06-18 11:17:33.518  7105  7105 I dnsmasq : started, version 2.51 cachesize 150
06-18 11:17:33.518  7105  7105 I dnsmasq : compile time options: IPv6 GNU-getopt no-I18N DHCP no-scripts
06-18 11:17:33.518  7105  7105 W dnsmasq : warning: no upstream servers configured
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.49.2 -- 192.168.49.254, lease time 1h
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.48.2 -- 192.168.48.254, lease time 1h
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.47.2 -- 192.168.47.254, lease time 1h
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.46.2 -- 192.168.46.254, lease time 1h
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.45.2 -- 192.168.45.254, lease time 1h
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.44.2 -- 192.168.44.254, lease time 1h
06-18 11:17:33.518  7105  7105 I dnsmasq : DHCP, IP range 192.168.43.2 -- 192.168.43.254, lease time 1h
06-18 11:17:33.519  7105  7105 I dnsmasq : DHCP, IP range 192.168.42.2 -- 192.168.42.254, lease time 1h
06-18 11:17:33.519  7105  7105 I dnsmasq : read /etc/hosts - 2 addresses
06-18 11:17:33.519  7105  7105 I dnsmasq : Closing wildcard listener family=2
06-18 11:17:33.519  7105  7105 I dnsmasq : Closing wildcard listener family=10
06-18 11:17:33.741  3361  3361 I wpa_supplicant: P2P-DEVICE-FOUND c6:9d:ed:f5:9b:d5 p2p_dev_addr=c6:9d:ed:f5:9b:d5 pri_dev_type=7-0050F204-1 name='MSDisplayAdapter_D5' config_methods=0x88 dev_capab=0x25 g
roup_capab=0x0 wfd_dev_info=0x015d022a0032 new=0
06-18 11:17:33.741  3361  3361 W wpa_supplicant: Device is trying to offload WPS Probe Response while not supporting this
06-18 11:17:33.741  3361  3361 W wpa_supplicant: Device is trying to offload P2P Probe Response while not supporting this
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback: Device discovered on p2p0: Device: MSDisplayAdapter_D5
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  deviceAddress: c6:9d:ed:f5:9b:d5
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  primary type: 7-0050F204-1
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  secondary type: null
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  wps: 136
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  grpcapab: 0
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  devcapab: 37
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  status: 3
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  wfdInfo: WFD enabled: trueWFD DeviceInfo: 349
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  WFD CtrlPort: 554
06-18 11:17:33.742  2851  3059 D SupplicantP2pIfaceCallback:  WFD MaxThroughput: 50
06-18 11:17:33.743  3361  3361 I wpa_supplicant: p2p0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
06-18 11:17:33.746  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:33.746  4103  4103 D P2P     : Peers changed
06-18 11:17:33.750  4103  4103 D P2P     : Request peers info
06-18 11:17:33.751  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
06-18 11:17:33.758  3361  3361 I wpa_supplicant: p2p0: AP-STA-CONNECTED c6:9d:ed:f5:9b:d5 p2p_dev_addr=c6:9d:ed:f5:9b:d5
06-18 11:17:33.758  2851  3059 D SupplicantP2pIfaceCallback: STA authorized on p2p0
06-18 11:17:33.758  2851  2943 D SupplicantP2pIfaceHal: entering setGroupIdle(p2p0, 0)
06-18 11:17:33.759  2851  2943 D SupplicantP2pIfaceHal: setGroupIdle(p2p0, 0) completed successfully.
06-18 11:17:33.759  2851  2943 D SupplicantP2pIfaceHal: leaving setGroupIdle(p2p0, 0)
06-18 11:17:33.761  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:33.762  2851  2874 I WifiDisplayController: Connected to Wifi display: MSDisplayAdapter_D5
06-18 11:17:33.762  2851  2874 I WifiDisplayController: Stopping Wifi display scan.
06-18 11:17:33.762  4103  4103 D P2P     : Peers changed
06-18 11:17:33.763  2851  2874 I WifiDisplayController: Listening for RTSP connection on 192.168.49.1:7236 from Wifi display: MSDisplayAdapter_D5
06-18 11:17:33.763  2851  2943 D SupplicantP2pIfaceHal: entering setMiracastMode(1)
06-18 11:17:33.764  2851  2943 D SupplicantP2pIfaceHal: setMiracastMode(1) completed successfully.
06-18 11:17:33.764  2851  2943 D SupplicantP2pIfaceHal: leaving setMiracastMode(1)
06-18 11:17:33.765  2851  2943 D SupplicantP2pIfaceHal: entering stopFind()
06-18 11:17:33.765  2851  2943 D SupplicantP2pIfaceHal: stopFind() completed successfully.
06-18 11:17:33.765  2851  2943 D SupplicantP2pIfaceHal: leaving stopFind()
06-18 11:17:33.766  4103  4103 D P2P     : Request peers info
06-18 11:17:33.766  2851  2851 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.766  3527  3527 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.767  2851  3055 E DEBUg-SECO --> : debug 726
06-18 11:17:33.767  3077  3077 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:33.768  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
06-18 11:17:33.768  4103  4103 D P2P     : Connection changed
06-18 11:17:33.771  4103  4103 D P2P     : Request conn info
06-18 11:17:33.772  4103  4103 D P2P     : Received info
06-18 11:17:33.772  4103  4103 D P2P     : New info
06-18 11:17:33.773  4103  4103 D P2P     : I'm master
06-18 11:17:33.773  4103  4103 D P2P     : Server started
06-18 11:17:34.015  7105  7105 I dnsmasq : DHCPDISCOVER(p2p0) c6:9d:ed:f5:9b:d5
06-18 11:17:34.015  7105  7105 I dnsmasq : DHCPOFFER(p2p0) 192.168.49.234 c6:9d:ed:f5:9b:d5
06-18 11:17:34.922  7105  7105 I dnsmasq : DHCPDISCOVER(p2p0) c6:9d:ed:f5:9b:d5
06-18 11:17:34.923  7105  7105 I dnsmasq : DHCPOFFER(p2p0) 192.168.49.234 c6:9d:ed:f5:9b:d5
06-18 11:17:35.920  7105  7105 I dnsmasq : DHCPDISCOVER(p2p0) c6:9d:ed:f5:9b:d5
06-18 11:17:35.920  7105  7105 I dnsmasq : DHCPOFFER(p2p0) 192.168.49.234 c6:9d:ed:f5:9b:d5
06-18 11:17:36.387  2694  3576 W audio_hw_primary: do_out_standby... 0xe78d1000
06-18 11:17:36.924  7105  7105 I dnsmasq : DHCPDISCOVER(p2p0) c6:9d:ed:f5:9b:d5
06-18 11:17:36.924  7105  7105 I dnsmasq : DHCPOFFER(p2p0) 192.168.49.234 c6:9d:ed:f5:9b:d5
06-18 11:17:36.929  7105  7105 I dnsmasq : DHCPREQUEST(p2p0) 192.168.49.234 c6:9d:ed:f5:9b:d5
06-18 11:17:36.929  7105  7105 I dnsmasq : DHCPACK(p2p0) 192.168.49.234 c6:9d:ed:f5:9b:d5
[  385.725026] ADDBA RSP: Failed(c6:XX:XX:XX:9b:d5 tid=6)
06-18 11:17:37.232  2745  7126 I NetworkSession: incoming connection from 192.168.49.234:48530 (socket 10)
06-18 11:17:37.232  2745  7126 I NetworkSession: added clientSession 2
06-18 11:17:37.232  2745  7128 I WifiDisplaySource: We now have a client (2) connected.
06-18 11:17:37.282  2745  7128 I WifiDisplaySource: Picked video resolution 1280 x 720 p30
06-18 11:17:37.282  2745  7128 I WifiDisplaySource: Picked AVC profile 1, level 1
06-18 11:17:37.282  2745  7128 I WifiDisplaySource: Using AAC audio.
06-18 11:17:37.283  2745  7128 E HDCP    : Unable to locate libstagefright_hdcp.so
06-18 11:17:37.283  2745  7128 E WifiDisplaySource: Failed to set HDCP observer.
06-18 11:17:37.283  2745  7128 E WifiDisplaySource: Unable to instantiate HDCP component. Not using HDCP after all.
06-18 11:17:37.313  2745  7136 I OMXClient: IOmx service obtained
06-18 11:17:37.314  2749  2797 I OMXMaster: makeComponentInstance(OMX.google.h264.encoder) in o...@1.0-service process
06-18 11:17:37.315  2745  7128 I Converter: using audio bitrate of 128000 bps, video bitrate of 3000000 bps
06-18 11:17:37.316  2745  7136 E ACodec  : Encoder could not be configured to emit SPS/PPS before IDR frames. (err -1010)
06-18 11:17:37.316  2745  7136 E ACodec  : [OMX.google.h264.encoder] configureCodec returning error -1010
06-18 11:17:37.316  2745  7136 E ACodec  : signalError(omxError 0x80001001, internalError -1010)
06-18 11:17:37.316  2745  7135 E MediaCodec: Codec reported err 0xfffffc0e, actionCode 0, while in state 3
06-18 11:17:37.316  2745  7128 E MediaCodec: configure failed with err 0xfffffc0e, resetting...
06-18 11:17:37.318  2745  7136 I OMXClient: IOmx service obtained
06-18 11:17:37.319  2749  2797 I OMXMaster: makeComponentInstance(OMX.google.h264.encoder) in o...@1.0-service process
06-18 11:17:37.320  2745  7128 I Converter: We going to manually prepend SPS and PPS to IDR frames.
06-18 11:17:37.321  2745  7136 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-18 11:17:37.322  2749  2797 E OMXNodeInstance: setParameter(0xec1a7a80:google.h264.encoder, ParamVideoIntraRefresh(0x6000006)) ERROR: UnsupportedIndex(0x8000101a)
06-18 11:17:37.322  2745  7136 E ACodec  : Setting intra macroblock refresh mode (-1010) failed: 0x0
06-18 11:17:37.322  2745  7136 E ACodec  : [OMX.google.h264.encoder] configureCodec returning error -1010
06-18 11:17:37.322  2745  7136 E ACodec  : signalError(omxError 0x80001001, internalError -1010)
06-18 11:17:37.322  2745  7135 E MediaCodec: Codec reported err 0xfffffc0e, actionCode 0, while in state 3
06-18 11:17:37.322  2745  7128 E MediaCodec: configure failed with err 0xfffffc0e, resetting...
06-18 11:17:37.324  2745  7136 I OMXClient: IOmx service obtained
06-18 11:17:37.324  2749  2797 I OMXMaster: makeComponentInstance(OMX.google.h264.encoder) in o...@1.0-service process
06-18 11:17:37.327  2745  7128 E PlaybackSession: video converter returned err -1010
06-18 11:17:37.327  2851  2874 I WifiDisplayController: Lost RTSP connection with Wifi display due to error 1: MSDisplayAdapter_D5
06-18 11:17:37.327  2851  2874 I WifiDisplayController: Wifi display connection failed!
06-18 11:17:37.829  2851  2874 I WifiDisplayController: Retrying [  386.341364] wlan: deauth station ff:XX:XX:XX:ff:ff
Wifi display connection.  Retries[  386.349325] wlan: Stoping AP
 left: 2
06-18 11:17:37.829  285[  386.354719] wlan: EVENT: MICRO_AP_STA_DEAUTH c6:XX:XX:XX:9b:d5
1  2874 I WifiDisplayController: Stopped listening for RTSP connection on 192.168.49.1:7236 from Wifi display: MSDisplayAdapter_D5
06-18 11:17:37.830  2745  712[  386.375982] wlan: AP stopped
8 I WifiDisplaySource: We're stopped.
06-18 11:17:37.831  2851  2874 I WifiDisplayController: Disconnecting from Wifi display: MSDisplayAdapter_D5
06-18 11:17:37.832  2851  2943 D SupplicantP2pIfaceHal: entering setMiracastMode(0)
06-18 11:17:37.833  2851  2851 V MediaRouter: Removing route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_
LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.833  2851  2851 V MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=n[  386.436902] wlan: p2p0 START SCAN
ull, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-18 11:17:37.833  2851  2851 E DEBUg-SECO --> : debug 726
06-18 11:17:37.833  3527  3527 V MediaRouter: Removing route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_
LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.833  3527  3527 V MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  g
roupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-18 11:17:37.833  2851  2862 E DEBUg-SECO --> : debug 726
06-18 11:17:37.834  3077  3077 V MediaRouter: Removing route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_
LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.834  3077  3077 V MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  g
roupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-18 11:17:37.834  2851  2943 D SupplicantP2pIfaceHal: setMiracastMode(0) completed successfully.
06-18 11:17:37.834  2851  2943 D SupplicantP2pIfaceHal: leaving setMiracastMode(0)
06-18 11:17:37.834  2851  2943 D SupplicantP2pIfaceHal: entering groupRemove(p2p0)
06-18 11:17:37.834  2851  3055 E DEBUg-SECO --> : debug 631
06-18 11:17:37.834  3361  3361 I wpa_supplicant: P2P-GROUP-REMOVED p2p0 GO reason=REQUESTED
06-18 11:17:37.834  2851  3055 E DEBUg-SECO --> : debug 633
06-18 11:17:37.834  2851  3055 E DEBUg-SECO --> : debug 633
06-18 11:17:37.835  2851  3059 D SupplicantP2pIfaceCallback: Group p2p0 removed from p2p0
06-18 11:17:37.835  3361  3361 I wpa_supplicant: p2p0: interface state ENABLED->DISABLED
06-18 11:17:37.835  2851  3055 E DEBUg-SECO --> : debug 726
06-18 11:17:37.835  3361  3361 I wpa_supplicant: p2p0: AP-STA-DISCONNECTED c6:9d:ed:f5:9b:d5 p2p_dev_addr=c6:9d:ed:f5:9b:d5
06-18 11:17:37.835  2851  3059 D SupplicantP2pIfaceCallback: STA deauthorized on p2p0
06-18 11:17:37.836  2851  3338 E DEBUg-SECO --> : debug 726
06-18 11:17:37.836  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: true
06-18 11:17:37.843  3361  3361 I wpa_supplicant: p2p0: AP-DISABLED
06-18 11:17:37.875  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: false
06-18 11:17:37.893  3361  3361 I wpa_supplicant: p2p0: CTRL-EVENT-DISCONNECTED bssid=c2:e4:34:fc:f4:e5 reason=3 locally_generated=1
06-18 11:17:37.893  2851  2943 D SupplicantP2pIfaceHal: groupRemove(p2p0) completed successfully.
06-18 11:17:37.893  2851  2943 D SupplicantP2pIfaceHal: leaving groupRemove(p2p0)
06-18 11:17:37.894  2851  2874 I WifiDisplayController: Disconnected from Wifi display: MSDisplayAdapter_D5
06-18 11:17:37.894  2851  2874 I WifiDisplayController: Connecting to Wifi display: MSDisplayAdapter_D5
06-18 11:17:37.894  2681  2726 D TetherController: untetherInterface(p2p0)
06-18 11:17:37.897  2851  2851 V MediaRouter: Adding route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_LI
VE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.897  2851  2851 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.897  2851  2851 E DEBUg-SECO --> : debug 726
06-18 11:17:37.898  3077  3077 V MediaRouter: Adding route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_LI
VE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.898  3527  3527 V MediaRouter: Adding route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_LI
VE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.898  3527  3527 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.900  2851  3055 E DEBUg-SECO --> : debug 726
06-18 11:17:37.900  3077  3077 V MediaRouter: Selecting route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE
_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.901  2851  3338 E DEBUg-SECO --> : debug 657
06-18 11:17:37.901  2851  3338 E DEBUg-SECO --> : debug 662
06-18 11:17:37.901  2851  2862 E DEBUg-SECO --> : debug 726
06-18 11:17:37.901  2851  3558 E DEBUg-SECO --> : debug 726
06-18 11:17:37.905  2681  2717 E Netd    : Interface index 6 was never in a currently-connected netId
06-18 11:17:37.905  2681  2717 I Netd    : Destroyed 1 sockets on fe80::c0e4:34ff:fefc:f4e5 in 0.3 ms
06-18 11:17:37.906  2681  2726 D TetherController: Stopping tethering services
06-18 11:17:37.906  7105  7105 I dnsmasq : exiting on receipt of SIGTERM
06-18 11:17:37.907  2681  2726 D TetherController: Tethering services stopped
06-18 11:17:37.907  2851  2943 D WifiP2pService: Stopped Dhcp server
06-18 11:17:37.908  2681  2726 D CommandListener: Clearing all IP addresses on p2p0
06-18 11:17:37.908  2681  2717 E Netd    : Interface index 6 was never in a currently-connected netId
06-18 11:17:37.919  2851  2943 D SupplicantP2pIfaceHal: entering setGroupIdle(p2p0, 0)
06-18 11:17:37.919  2851  2943 D SupplicantP2pIfaceHal: setGroupIdle(p2p0, 0) completed successfully.
06-18 11:17:37.920  2851  2943 D SupplicantP2pIfaceHal: leaving setGroupIdle(p2p0, 0)
06-18 11:17:37.922  4103  4103 D P2P     : Peers changed
06-18 11:17:37.922  2851  2874 I WifiDisplayController: Canceling connection to Wifi display: MSDisplayAdapter_D5
06-18 11:17:37.923  2851  2851 V MediaRouter: Removing route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_
LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.923  2851  2851 V MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  g
roupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-18 11:17:37.924  2851  2851 E DEBUg-SECO --> : debug 726
06-18 11:17:37.924  3527  3527 V MediaRouter: Removing route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_
LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.924  3527  3527 V MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  g
roupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-18 11:17:37.925  3077  3077 V MediaRouter: Removing route: RouteInfo{ name=MSDisplayAdapter_D5, description=Wireless display, status=Connecting..., category=RouteCategory{ name=System types=ROUTE_TYPE_
LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_REMOTE_DISPLAY , presentationDisplay=null }
06-18 11:17:37.925  3077  3077 V MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  g
roupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-18 11:17:37.925  2851  3338 E DEBUg-SECO --> : debug 726
06-18 11:17:37.925  2851  2943 E WifiP2pService: Unhandled message { when=-90ms what=147497 obj=Device:
06-18 11:17:37.925  2851  2943 E WifiP2pService:  deviceAddress: c6:9d:ed:f5:9b:d5
06-18 11:17:37.925  2851  2943 E WifiP2pService:  primary type: null
06-18 11:17:37.925  2851  2943 E WifiP2pService:  secondary type: null
06-18 11:17:37.925  2851  2943 E WifiP2pService:  wps: 0
06-18 11:17:37.925  2851  2943 E WifiP2pService:  grpcapab: 0
06-18 11:17:37.925  2851  2943 E WifiP2pService:  devcapab: 0
06-18 11:17:37.925  2851  2943 E WifiP2pService:  status: 4
06-18 11:17:37.925  2851  2943 E WifiP2pService:  wfdInfo: null target=com.android.internal.util.StateMachine$SmHandler }
06-18 11:17:37.926  2851  2943 E WifiP2pService: Dropping connect requeset
06-18 11:17:37.926  2851  2943 E WifiP2pService:  address: c6:9d:ed:f5:9b:d5
06-18 11:17:37.926  2851  2943 E WifiP2pService:  wps:  setup: 0
06-18 11:17:37.926  2851  2943 E WifiP2pService:  BSSID: null
06-18 11:17:37.926  2851  2943 E WifiP2pService:  pin: null
06-18 11:17:37.926  2851  2943 E WifiP2pService:
06-18 11:17:37.926  2851  2943 E WifiP2pService:  groupOwnerIntent: 0
06-18 11:17:37.926  2851  2943 E WifiP2pService:  persist: -2
06-18 11:17:37.926  2851  3558 E DEBUg-SECO --> : debug 631
06-18 11:17:37.926  2851  3558 E DEBUg-SECO --> : debug 633
06-18 11:17:37.926  2851  3558 E DEBUg-SECO --> : debug 633
06-18 11:17:37.926  2851  3055 E DEBUg-SECO --> : debug 726
06-18 11:17:37.926  2851  2874 I WifiDisplayController: Starting Wifi display scan.
06-18 11:17:37.926  2851  2874 I WifiDisplayController: Failed to cancel connection to Wifi display: MSDisplayAdapter_D5, reason=2
06-18 11:17:37.926  2851  3055 E DEBUg-SECO --> : debug 726
06-18 11:17:37.926  2851  2874 E DEBUg-SECO --> : debug 459
06-18 11:17:37.926  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:37.926  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:37.927  2851  2943 D SupplicantP2pIfaceHal: entering find(120)
06-18 11:17:37.927  4103  4103 D P2P     : Request peers info
06-18 11:17:37.927  2851  2943 D SupplicantP2pIfaceHal: find(120) completed successfully.
06-18 11:17:37.927  2851  2943 D SupplicantP2pIfaceHal: leaving find(120)
06-18 11:17:37.929  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:37.936  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
06-18 11:17:37.937  4103  4103 D P2P     : Connection changed
06-18 11:17:37.941  4103  4103 D P2P     : Request conn info
06-18 11:17:37.942  4103  4103 D P2P     : Received info
06-18 11:17:37.942  4103  4103 D P2P     : New info
06-18 11:17:37.952  2851  3338 E DEBUg-SECO --> : debug 726
[  389.698660] wlan: SCAN COMPLETED: scanned AP count=1
06-18 11:17:41.198  2748  2748 W wificond: No handler for scan result notification from interface with index: 6
06-18 11:17:41.199  3361  3361 I wpa_supplicant: P2P-DEVICE-FOUND ce:d4:2e:0d:7e:a0 p2p_dev_addr=ce:d4:2e:0d:7e:a0 pri_dev_type=7-0050F204-1 name='[LG] webOS TV SM8200PLA' config_methods=0x1188 dev_capab=
0x25 group_capab=0x0 wfd_dev_info=0x01111c440032 vendor_elems=1 new=0
06-18 11:17:41.200  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: false
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback: Device discovered on p2p0: Device: [LG] webOS TV SM8200PLA
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  deviceAddress: ce:d4:2e:0d:7e:a0
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  primary type: 7-0050F204-1
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  secondary type: null
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  wps: 4488
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  grpcapab: 0
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  devcapab: 37
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  status: 3
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  wfdInfo: WFD enabled: trueWFD DeviceInfo: 273
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  WFD CtrlPort: 7236
06-18 11:17:41.200  2851  3059 D SupplicantP2pIfaceCallback:  WFD MaxThroughput: 50
06-18 11:17:41.204  4103  4103 D P2P     : Peers changed
06-18 11:17:41.204  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:41.207  4103  4103 D P2P     : Request peers info
06-18 11:17:41.208  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
[  390.038581] wlan: p2p0 START SCAN
[  390.171519] wlan: SCAN COMPLETED: scanned AP count=1
06-18 11:17:41.671  3361  3361 I wpa_supplicant: P2P-DEVICE-FOUND c6:9d:ed:f5:9b:d5 p2p_dev_addr=c6:9d:ed:f5:9b:d5 pri_dev_type=7-0050F204-1 name='MSDisplayAdapter_D5' config_methods=0x88 dev_capab=0x25 g
roup_capab=0x2a wfd_dev_info=0x015d022a0032 new=0
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback: Device discovered on p2p0: Device: MSDisplayAdapter_D5
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  deviceAddress: c6:9d:ed:f5:9b:d5
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  primary type: 7-0050F204-1
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  secondary type: null
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  wps: 136
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  grpcapab: 42
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  devcapab: 37
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  status: 3
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  wfdInfo: WFD enabled: trueWFD DeviceInfo: 349
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  WFD CtrlPort: 554
06-18 11:17:41.673  2851  3059 D SupplicantP2pIfaceCallback:  WFD MaxThroughput: 50
06-18 11:17:41.673  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: false
06-18 11:17:41.675  2851  2874 E DEBUg-SECO --> : debug 468
06-18 11:17:41.677  2851  3055 E DEBUg-SECO --> : debug 726
06-18 11:17:41.677  4103  4103 D P2P     : Peers changed
06-18 11:17:41.680  4103  4103 D P2P     : Request peers info
06-18 11:17:41.681  2851  2943 V WifiP2pService: Security Exception, cannot access peer list
[  390.408020] wlan: p2p0 START SCAN
[  390.542274] wlan: SCAN COMPLETED: scanned AP count=1
06-18 11:17:42.043  2851  2872 I EthernetTracker: interfaceLinkStateChanged, iface: p2p0, up: false
[  390.777801] wlan: p2p0 START SCAN
[  390.911981] wlan: SCAN COMPLETED: scanned AP count=1
[  391.250128] wlan: p2p0 START SCAN
[  391.388113] wlan: SCAN COMPLETED: scanned AP count=1
[  391.520208] wlan: p2p0 START SCAN
[  391.654845] wlan: SCAN COMPLETED: scanned AP count=1
[  391.787693] wlan: p2p0 START SCAN
[  391.917136] wlan: SCAN COMPLETED: scanned AP count=1
[  392.050930] wlan: p2p0 START SCAN
[  392.180461] wlan: SCAN COMPLETED: scanned AP count=1
06-18 11:17:43.419  2851  2872 I chatty  : uid=1000(syst
-----------------------------------------------------------------------------------------------------------------------------------------------------

Maybe we need also a guide to completely support sd8997 Marvell wifi driver and Android HAL library to bring up WIFI-DISPLAY support, something like that to completely support W8997-M1216 (sd8997) and related sources HAL libraries and drivers. 

The guide:
means the presence of the files listed below:


Anyone can give me some tips to support Miracast source and sync from our imx8 board? I have attached to this link some screen of our test during the p2p pair phase.

The test is done trying to pair:

1) MSDisplayAdapter_D5 (dongle Miracast)
2) [LG] webOS TV SM8200PLA (TV)
3) Xiaomi Mi A1 (Android Phone)

Using imx8qxp Android 10-1.0.0, imx8mq Android 9-1.0.0 (As Miracast Source)


Let me know if you need more information about that.
Thanks in advance.

Tommaso
EMMY-W1-Android-integration_ApplicationNote_(UBX-19035432) (1).pdf
Reply all
Reply to author
Forward
0 new messages