OSDN Git Service

core: Remove unnecessary adapter->passive_scanning variable
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 30 Jan 2013 01:29:40 +0000 (19:29 -0600)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 30 Jan 2013 01:29:46 +0000 (19:29 -0600)
commitb8bdb1c191182f73cad2647780c30792553d1bc6
treead59da37d0e1437d3af60b3c7560d897873eb89f
parentdad9ef1d3762031586b53ba7fb226135832734dc
core: Remove unnecessary adapter->passive_scanning variable

The adapter->discovery_list can function equally well as an indicator of
whether normal discovery or passive scanning is in progress. Normal
discovery always overrides passive scanning so if there's one or more
entries in discovery_list we must be performing normal discovery and not
passive scanning.
src/adapter.c