sm6225-common: Import wifi overlay from hawao S2SE32.28-41-1
Change-Id: I41eb60e7cb86db0ca9ffb7be698400793332c437
This commit is contained in:
parent
41817bfa11
commit
6f771e341e
7 changed files with 201 additions and 0 deletions
|
@ -411,6 +411,9 @@ PRODUCT_PACKAGES += \
|
|||
wpa_supplicant \
|
||||
wpa_supplicant.conf
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
WifiResCommonOverlay
|
||||
|
||||
# Wifi - Configs
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
|
||||
|
|
6
rro_overlays/WifiResCommon/Android.bp
Normal file
6
rro_overlays/WifiResCommon/Android.bp
Normal file
|
@ -0,0 +1,6 @@
|
|||
runtime_resource_overlay {
|
||||
name: "WifiResCommonOverlay",
|
||||
theme: "WifiResCommonOverlay",
|
||||
sdk_version: "current",
|
||||
product_specific: true
|
||||
}
|
27
rro_overlays/WifiResCommon/AndroidManifest.xml
Normal file
27
rro_overlays/WifiResCommon/AndroidManifest.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.wifi.resources.overlay.moto_sm6225"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="com.android.wifi.resources"
|
||||
android:targetName="WifiCustomization"
|
||||
android:isStatic="true"
|
||||
android:priority="0" />
|
||||
</manifest>
|
49
rro_overlays/WifiResCommon/res/values/arrays.xml
Normal file
49
rro_overlays/WifiResCommon/res/values/arrays.xml
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Array describing scanning schedule in seconds when device is disconnected and screen is on -->
|
||||
<integer-array name="config_wifiDisconnectedScanIntervalScheduleSec">
|
||||
<item>20</item>
|
||||
<item>40</item>
|
||||
<item>80</item>
|
||||
<item>80</item>
|
||||
</integer-array>
|
||||
|
||||
<!--
|
||||
Controls the mapping between RSSI and RSSI levels.
|
||||
|
||||
RSSI RSSI Level
|
||||
(-infinity, thresholds[0]) 0
|
||||
[threshold[0], threshold[1]) 1
|
||||
[threshold[1], threshold[2]) 2
|
||||
... ...
|
||||
[threshold[len-2], threshold[len-1]) len-1
|
||||
[threshold[len-1], +infinity) len
|
||||
|
||||
where:
|
||||
[a, b) is the range of integers `n` such that a <= n < b
|
||||
`threshold[i]` represents the i'th element of the config_wifiRssiLevelThresholds array
|
||||
and `len` is the length of the config_wifiRssiLevelThresholds array.
|
||||
-->
|
||||
<integer-array name="config_wifiRssiLevelThresholds">
|
||||
<item>-88</item>
|
||||
<item>-82</item>
|
||||
<item>-75</item>
|
||||
<item>-65</item>
|
||||
</integer-array>
|
||||
</resources>
|
64
rro_overlays/WifiResCommon/res/values/bools.xml
Normal file
64
rro_overlays/WifiResCommon/res/values/bools.xml
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- boolean indicating whether the WiFi chipset has 5GHz band support.
|
||||
Note: This config is replacing the config_wifi_dual_band_support
|
||||
since more bands may now be supported (such as 6GHz), the naming dual_band
|
||||
is no longer indicative, and a separate config now exists for each band -->
|
||||
<bool name="config_wifi5ghzSupport">true</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 name="config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideEnable">false</bool>
|
||||
|
||||
<!-- Indicates that SAE Hash-to-Element is supported on this device -->
|
||||
<bool name="config_wifiSaeH2eSupported">true</bool>
|
||||
|
||||
<!-- Boolean indicating that softap passphrase need to enable ASCII encodable check -->
|
||||
<bool name="config_wifiSoftapPassphraseAsciiEncodableCheck">false</bool>
|
||||
|
||||
<!-- Boolean indicating whether the wifi chipset supports background scanning mechanism.
|
||||
This mechanism allows the host to remain in suspend state and the dongle to actively
|
||||
scan and wake the host when a configured SSID is detected by the dongle. This chipset
|
||||
capability can provide power savings when wifi needs to be always kept on. -->
|
||||
<bool name="config_wifi_background_scan_support">true</bool>
|
||||
|
||||
<!-- Indicates that connected MAC randomization is supported on this device -->
|
||||
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform -->
|
||||
<bool name="config_wifi_fast_bss_transition_enabled">true</bool>
|
||||
|
||||
<!-- Indicates that p2p MAC randomization is supported on this device -->
|
||||
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether or not to revert to default country code when cellular
|
||||
radio is unable to find any MCC information to infer wifi country code from -->
|
||||
<bool name="config_wifi_revert_country_code_on_cellular_loss">true</bool>
|
||||
|
||||
<!-- Wifi driver supports Automatic channel selection (ACS) for softap -->
|
||||
<bool name="config_wifi_softap_acs_supported">true</bool>
|
||||
|
||||
<!-- Wifi driver supports IEEE80211AC for softap -->
|
||||
<bool name="config_wifi_softap_ieee80211ac_supported">true</bool>
|
||||
|
||||
<!-- Wifi driver supports WPA3 Simultaneous Authentication of Equals (WPA3-SAE) for softap -->
|
||||
<bool name="config_wifi_softap_sae_supported">true</bool>
|
||||
</resources>
|
24
rro_overlays/WifiResCommon/res/values/integers.xml
Normal file
24
rro_overlays/WifiResCommon/res/values/integers.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- integer indicating additional disconnect delay (in ms) after IMS onLost() indication is received -->
|
||||
<integer name="config_wifiDelayDisconnectOnImsLostMs">4000</integer>
|
||||
|
||||
<!-- Integer indicating maximum hardware supported client number of soft ap -->
|
||||
<integer name="config_wifiHardwareSoftapMaxClientCount">10</integer>
|
||||
</resources>
|
28
rro_overlays/WifiResCommon/res/values/strings.xml
Normal file
28
rro_overlays/WifiResCommon/res/values/strings.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- List of allowed channels in 5GHz band for softap. If the device doesn't want to restrict
|
||||
channels this should be empty. Values is a comma separated channel string and/or channel
|
||||
range string like '36-48,149'. -->
|
||||
<string name="config_wifiSoftap5gChannelList">36-161</string>
|
||||
|
||||
<!-- Configure wifi tcp buffersizes in the form:
|
||||
rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max -->
|
||||
<string name="config_wifi_tcp_buffers">524288,2097152,4194304,262144,524288,1048576</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in a new issue