0

I'm currently working on an Android Realtime Multicast Video Streaming application using Wifi connection and it works perfectly fine on most android devices, but when it comes to this particular S4 device (with Android 4.2.2), we experience frequent packet losses. From our experiments, it happens when the device tries to scan for Wifi connections every minute (even though it is already connected to a Wifi connection). I tried disabling the option of scanning for Wifi connections on the wifi settings but it doesn't seem to do the trick (the device still tries to look for wifi connections even with the option turned off).

Follows the lines that show up on log cat:
12-10 15:04:08.348: I/wpa_supplicant(1851): Scan requested (ret=0) - scan timeout 30 seconds
12-10 15:04:13.262: I/wpa_supplicant(1851): nl80211: Received scan results (46 BSSes)

From 15:04:08.348 to 15:04:13.262, our app can't receive any packets, they just never arrive the device.

When searching for process id number 1851 (from our log cat) on the device, here's what we get:
/system/bin/wpa_supplicant-iwlan0-Dnl80211 -c /data/misc/wifi/wpa_supplicant.conf -e /data/misc/wifi/entropy.bin

Is there a way to either shut down wpa_supplicant scans programatically from our application or to set up our app in a mode where it would receive these packets even though a Wifi scan is being run by the OS? (By the way, both WIFI and Multicast Locks are being acquired on our app, but it doesn't seem to be helping with this issue).

Please follow up as any information would be very helpful on resolving this issue, we've been loosing our hairs here for a few days trying to figure this out.

thanks in advance!

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491

0 Answers0