Blocklist the BSSID if disassociation imminent bit is set

If the received BTM frame with disassociation imminent bit set
doesn't have MBO assoc retry delay attribute, block list
the BSSID for a fixed duration of 5mins. This is to avoid
re-connection attempt to same BSSID, which may result in either
a connection failure or receiving another BTM frame with
disassoc-imminent bit set soon after connection.
Also renamed the blocklist duration variable to make code
more inclusive.

Bug: 162671127
Test: atest com.android.server.wifi.ClientModeImplTest
Change-Id: I6f61b406081b9022070aea7fd2a2b20c04017702
Merged-In: I6f61b406081b9022070aea7fd2a2b20c04017702
(cherry picked from commit 705209e2c997f4315155f538048fe7e3d89c1a6d)
(cherry picked from commit 7a366d0aadab09eaeb240e3ce66eb78d5fcd4bf4)
5 files changed
tree: d41cd3d18455352ec5b54f47ec339806588d3f33
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg