[Samsung Galaxy Nexus] s107ken:
tried 4.4.5, p2p connection with Nexus 4, connection failed always. this problem maybe kernel error?

i'm not familiar with CM source, Linux kernel.. :confused:

$ adb root
$ adb shell dmesg

4.4.5. confirm last line of dmesg

<4>[ 134.271850] wl_android_wifi_on in
<4>[ 134.271942] wifi_set_power = 1
<4>[ 134.788085] =========== WLAN going back to live ========
<4>[ 134.788421] sdio_reset_comm():
<4>[ 134.876647] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
<4>[ 135.054595] Firmware up: op_mode=4, Broadcom Dongle Host Driver mac=20:64:32:67:3d:5d
<4>[ 135.075592] Firmware version = wl0: Jan 23 2013 17:46:35 version 5.90.195.114 FWID 01-cafa6b3e
<4>[ 135.081573] p2p0: p2p_dev_addr=22:64:32:67:3d:5d
<4>[ 135.155456] dhd_rx_frame: net device is NOT registered yet. drop packet
<4>[ 135.155822] dhd_rx_frame: net device is NOT registered yet. drop packet
<4>[ 137.616241] sr_class1p5_calib_work: iva Stop sampling: Voltage Nominal=950000 samples=146
<6>[ 137.616699] sr_class1p5_calib_work: iva: Calibration complete: Voltage:Nominal=950000,Calib=860920,margin=13000
<3>[ 141.077545] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 141.090850] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev c72aa000 wl->escan_on 1 drv_status 0x0 e_type 69 e_states 4
<3>[ 141.850830] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 141.861419] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev c72aa000 wl->escan_on 1 drv_status 0x0 e_type 69 e_states 4
<3>[ 141.957061] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 141.967895] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev c72aa000 wl->escan_on 1 drv_status 0x0 e_type 69 e_states 4
<7>[ 146.186462] p2p0: no IPv6 routers present
<6>[ 155.215942] max17040 4-0036: online = 1 vcell = 4005000 soc = 75 status = 1 health = 1 temp = 270 charger status = 0
<3>[ 179.707611] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 179.717803] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev c72aa000 wl->escan_on 1 drv_status 0x0 e_type 69 e_states 4
<3>[ 180.204376] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 180.215728] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev c72aa000 wl->escan_on 1 drv_status 0x0 e_type 69 e_states 4
<3>[ 181.681030] CFG80211-ERROR) wl_cfg80211_change_virtual_iface : Cannot change the interface for GO or SOFTAP // <-- connection NG when this error

adb logcat

I/wpa_supplicant(1267): P2P-GO-NEG-SUCCESS role=GO freq=2412 ht40=0 peer_dev=00:90:00:00:43:18 peer_iface=00:90:00:00:43:18 wps_method=PBC
I/wpa_supplicant(1267): p2p0: Failed to start AP functionality
I/wpa_supplicant(1267): P2P-GROUP-FORMATION-FAILURE

my ROM succeed p2p connection to N4. dmesg

<4>[ 1366.433227] wl_android_wifi_on in
<4>[ 1366.433410] wifi_set_power = 1
<4>[ 1366.952697] =========== WLAN going back to live ========
<4>[ 1366.952911] sdio_reset_comm():
<4>[ 1366.963684] F1 signature read @0x18000000=0x16844330
<4>[ 1366.973449] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 1367.018554] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
<4>[ 1367.202209] Firmware up: op_mode=4, Broadcom Dongle Host Driver mac=20:64:32:67:3d:5d
<4>[ 1367.212310] Firmware version = wl0: Jan 23 2013 17:46:35 version 5.90.195.114 FWID 01-cafa6b3e
<4>[ 1367.213562] p2p0: p2p_dev_addr=22:64:32:67:3d:5d
<4>[ 1367.287384] wl_host_event: Invalid ifidx 0 for wl0
<3>[ 1375.836944] CFG80211-ERROR) wl_notify_escan_complete : wl->scan_request is NULL may be internal scan.doing scan_abort for ndev c723a800 primary c723a800 p2p_net c723c800Broadcom Dongle Host Driver: register interface [p2p-p2p0-0] MAC: 22:64:32:67:bd:5d
<3>[ 1375.892456] CFG80211-ERROR) wl_cfg80211_add_virtual_iface : virtual interface(p2p-p2p0-0) is created net attach done
<3>[ 1375.892913] CFG80211-ERROR) dhd_cfg80211_set_p2p_info : Set : op_mode=20
<3>[ 1375.898284] CFG80211-ERROR) wl_notify_escan_complete : wl->scan_request is NULL may be internal scan.doing scan_abort for ndev c723a800 primary c723a800 p2p_net c723c800
<3>[ 1375.899017] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 1376.032684] CFGP2P-ERROR) wl_cfgp2p_act_frm_search : Enter
<3>[ 1376.044128] CFG80211-ERROR) wl_notify_escan_complete : wl->scan_request is NULL may be internal scan.doing scan_abort for ndev c723a800 primary c723a800 p2p_net c723c800
<3>[ 1376.050079] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev c723a800 wl->escan_on 1 drv_status 0x0
<3>[ 1376.555145] CFG80211-ERROR) wl_cfg80211_add_set_beacon : No WFDIE in beacon
<7>[ 1378.132049] p2p0: no IPv6 routers present
<3>[ 1382.560638] CFG80211-ERROR) wl_cfg80211_add_set_beacon : No WFDIE in beacon
<3>[ 1385.945861] CFG80211-ERROR) wl_cfg80211_ifdel_ops : IF_DEL event called from dongle, net c6f75000, vif name: p2p-p2p0-0
<3>[ 1385.946502] CFG80211-ERROR) dhd_cfg80211_clean_p2p_info : Clean : op_mode=4
<4>[ 1385.950134] DHD-MON: dhd_del_monitor interface not found in monitor IF array, is this a monitor IF? 0xc6f75000
<5>[ 1385.960784] type=1400 audit(1386816748.632:6): avc: denied { sys_module } for pid=445 comm="netd" capability=16 scontext=u:r:netd:s0 tcontext=u:r:netd:s0 tclass=capability

adb logcat

I/wpa_supplicant(1338): P2P-GO-NEG-SUCCESS role=GO freq=2437 ht40=0 peer_dev=00:90:00:00:43:18 peer_iface=00:90:00:00:43:18 wps_method=PBC
I/wpa_supplicant(1338): rfkill: Cannot open RFKILL control device
W/wpa_supplicant(1338): p2p-p2p0-0: Could not connect to kernel driver
E/wpa_supplicant(1338): Using interface p2p-p2p0-0 with hwaddr 22:64:32:67:bd:5d and ssid "DIRECT-Uz"
I/wpa_supplicant(1338): p2p-p2p0-0: CTRL-EVENT-CONNECTED - Connection to 22:64:32:67:bd:5d completed (auth) [id=0 id_str=]
I/wpa_supplicant(1338): p2p-p2p0-0: WPS-PBC-ACTIVE
I/wpa_supplicant(1338): p2p-p2p0-0: CTRL-EVENT-EAP-STARTED 00:90:00:00:43:18
I/wpa_supplicant(1338): p2p-p2p0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
I/wpa_supplicant(1338): p2p-p2p0-0: CTRL-EVENT-EAP-STARTED 00:90:00:00:43:18
I/wpa_supplicant(1338): p2p-p2p0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
I/wpa_supplicant(1338): p2p-p2p0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=254
I/wpa_supplicant(1338): p2p-p2p0-0: WPS-REG-SUCCESS 00:90:00:00:43:18 00900000-4318-0000-0000-000000000000
I/wpa_supplicant(1338): P2P-GROUP-FORMATION-SUCCESS