Toggle to flush BSS entries when interface is disabled
Add globally configurable option to not flush cache when interface goes
down.
Bug: 73301881
Test: Verify that the connected MAC randomization ~3 second delay problem is gone
Test: b/122700105 regression testing completed
Change-Id: Ic1ec89afad3cd244858b95dcfdf5729b6522702a
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index a8987a6..be6fc5d 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -4757,6 +4757,7 @@
{ INT(p2p_device_random_mac_addr), 0 },
{ STR(p2p_device_persistent_mac_addr), 0 },
{ INT(p2p_interface_random_mac_addr), 0 },
+ { INT_RANGE(bss_no_flush_when_down, 0, 1), 0 },
};
#undef FUNC