On Tue, Mar 06, 2018 at 05:08:38PM -0800, Jong Wook Kim wrote: > That is a good point as in most cases, we do want BSS entries flushed. > > We found this driver_nl80211->ignore_if_down_event value > that if set, prevents EVENT_INTERFACE_DISABLED from being > sent out when the interface goes down (as a result, there would be no > BSS flush when down). This is currently used when we are changing > the driver mode. > > We are thinking about simply setting this value before bringing the interface > down for MAC change. Do you have any feedback for doing things this way? It looks like this discussion never concluded and the proposed patch was still in the patchwork queue.. It does not look good to require external programs to be aware of this type of details and be able to set a configuration parameter or some other similar item whenever wanting to take this optimization. As such, I added a change to make wpa_supplicant postpone this flushing of the BSS entries in the case of EVENT_INTERFACE_DISABLED for as long time as wpa_supplicant would allow those those to be used for a connection request without requiring a new scan. This allows this specific use case of MAC address change with ifconfig down/up around it to work fine without any additional steps needed. https://w1.fi/cgit/hostap/commit/?id=ad2f0966098a8c01ad08959606111a0360fb998d -- Jouni Malinen PGP id EFC895FA _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap