Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0786af07 authored by Ye Jiao's avatar Ye Jiao Committed by Sunil Ravi
Browse files

Add config to skip state toggle off/on for Wi-Fi NAN

If STA and NAN share the same iface wlan0, Wi-Fi vendor HAL service
sends eventDisabled to NAN framework when STA setMacAddress to wlan0.
This disables NAN when STA is turned on.

Since NAN always uses its own random MAC instead of using MAC of STA,
this action is not necessary and gets NAN kicked off for no benefits.

We add a build time configuration to optionally disable this behavior.

Bug: 273426515
Test: manually test

Change-Id: If0d84b3898387b75392c8012640bc728126f2cff
parent d7600be9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -75,3 +75,6 @@ endif
ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE
    $(call soong_config_set,wifi,avoid_iface_reset_mac_change,true)
endif
ifdef WIFI_SKIP_STATE_TOGGLE_OFF_ON_FOR_NAN
    $(call soong_config_set,wifi,wifi_skip_state_toggle_off_on_for_nan,true)
endif