if (WifiScanAlarmBroadcastReceiver.wifi == null)
WifiScanAlarmBroadcastReceiver.wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
if (!PPApplication.getApplicationStarted(context, true))
return;
PPApplication.loadPreferences(context);
<BUG>if (PPApplication.getGlobalEventsRuning(context))
{</BUG>
WifiScanAlarmBroadcastReceiver.fillWifiConfigurationList(context);
WifiScanAlarmBroadcastReceiver.fillScanResults(context);
boolean scanStarted = (WifiScanAlarmBroadcastReceiver.getWaitForResults(context));

if (WifiScanAlarmBroadcastReceiver.wifi == null)
WifiScanAlarmBroadcastReceiver.wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
if (!PPApplication.getApplicationStarted(context, true))
return;
PPApplication.loadPreferences(context);
int forceOneScan = PPApplication.getForceOneWifiScan(context);
PPApplication.logE("%%%% WifiScanBroadcastReceiver.onReceive", "forceOneScan="+forceOneScan);
if (PPApplication.getGlobalEventsRuning(context) || (forceOneScan == PPApplication.FORCE_ONE_SCAN_FROM_PREF_DIALOG))
{
WifiScanAlarmBroadcastReceiver.fillWifiConfigurationList(context);
WifiScanAlarmBroadcastReceiver.fillScanResults(context);
boolean scanStarted = (WifiScanAlarmBroadcastReceiver.getWaitForResults(context));
