[WifiPreFlightTest] Update reference network check to testcase

CHERRY PICKED CHANGES FROM AOSP

teardown_class does not get called if setup_class fails
As the setup_class fails when the test does not find the reference
networks when attn set to 0, the deletion of dynamic AP user params is
not called. As a result, the subsequent tests in nightly runs are
failing. Moving the reference network check to test case.

Bug: 65543739
Change-Id: I945e2d848c365f88a4bf411583ed764c61bd86d1
Tests: Verified the changes
1 file changed
tree: c199d3258fc2ad34ec8d2ff32c9143e9d1c642db
  1. acts/
  2. tools/
  3. Android.mk
  4. PREUPLOAD.cfg