11

What is the difference between mWifiManager.startScanActive() and mWifiManager.startScan().
What is the difference between active scan and passive scan?

Aleadam
  • 40,203
  • 9
  • 86
  • 108
Judy
  • 1,772
  • 6
  • 27
  • 48

3 Answers3

8

Passive scanning listens to beacons sent by the access points. That means waiting for the beacon to be sent (usually a few seconds).

An active scanning will emit probes to those APs immediately.

Aleadam
  • 40,203
  • 9
  • 86
  • 108
  • Thank you very much! I have got it: startScanActive is a active scan, and startScan is a passive scan. – Judy May 12 '11 at 03:16
0

02/19/2013 jadiyappa :

Active scanning is required when enabled the "SSID Hide" in AP. Passive scanning is always waits for the beacon frames from AP.

0

please note that an active scan will consume more energy and as "ordinary" wifi access points broadcast their beacons several times per second, an active scan is rarely needed. e.g. requesting a list of wifi networks in reach takes approx 0.7 seconds to finish. so this should be sufficient...

xenonite
  • 1,671
  • 4
  • 28
  • 43