Mitigation of incorrect maxNumSpatialStreamDevice.
Many android devices will set maxNumSpatialStreamDevice incorrectly to 8
due to a WLAN driver bug. The bug fix is being ported but not expected
to be applied to all affected products on time. As a mitigation method,
add overriding enable flag and value in config overlay file to override
maxNumSpatialStreamDevice to a correct value before the bug fix is
completely populated. The enable flag is set by default with a default
overriding value of 2. Final settings can be configured per device.
Bug: 148982542
Test: atest com.android.server.wifi
Change-Id: I7b95a0b7f5685ab8b841113ff7136723d8b04250
diff --git a/service/res/values/config.xml b/service/res/values/config.xml
index 4d351b1..dd5b75f 100644
--- a/service/res/values/config.xml
+++ b/service/res/values/config.xml
@@ -36,6 +36,13 @@
be checked via NL80211 interface -->
<bool translatable="false" name="config_wifi11axSupportOverride">false</bool>
+ <!-- Indicates whether to enable overriding the max number of spatial stream supported by the device
+ If true, config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideValue
+ will be used to override the max number of spatial stream supported by the device.
+ If false, it will be left to WifiCond to derive the value from NL80211 interface -->
+ <bool translatable="false" name="config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideEnable">true</bool>
+ <integer translatable="false" name="config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideValue">2</integer>
+
<!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform -->
<bool translatable="false" name="config_wifi_fast_bss_transition_enabled">false</bool>