Posts

Showing posts with the label wifi

Wifi Direct peer discovery in API 26 (Oreo)

Wifi Direct peer discovery in API 26 (Oreo) I'm developing a Wifi Direct APP following the Wifi Direct Demo and it works between devices whose API is below to 26. In API 26 it doesn´t work properly because it doesn´t detect any peer in the APP , peers.size() = returns 0 (but it is detected through settings ->Wifi..wifi direct, the other peer). If the device whose API is 26 try to connect it doesn´t work, but if the device whose API is below to API 26 try to connect to API 26 device, connection works (although any peer is detected in API 26 device). Why are peers not detected in the APP but do appear in settings (Detection works in the APP for APIs below 26)? Is there a new restriction from API 26? I get the following logs: 06-20 00:16:29.625 1157-1157/? E/wificond: NL80211_CMD_TRIGGER_SCAN failed: Device or resource busy 06-20 00:16:29.625 1481-2605/? E/WificondScannerImpl: Failed to start scan, freqs=null 06-20 00:16:29.628 1481-1481/? D/WifiProfileMgrReceiver: handleEvent : a...