Skip to content

Commit

Permalink
gauguin: Import WifiResCommon
Browse files Browse the repository at this point in the history
 * From V12.5.2.0.RJKCNXM.

Signed-off-by: TH779 <[email protected]>
Change-Id: I3b01d84b37a243568fbf86f7d57a391f77d166c6
  • Loading branch information
KujouYuko authored and KaguraRinko committed Jan 15, 2022
1 parent 0ab9337 commit 5ff196c
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml

# WiFi
PRODUCT_PACKAGES += \
WifiResCommon

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
Expand Down
6 changes: 6 additions & 0 deletions rro_overlays/WifiResCommon/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
runtime_resource_overlay {
name: "WifiResCommon",
theme: "WifiResCommon",
sdk_version: "current",
product_specific: true
}
15 changes: 15 additions & 0 deletions rro_overlays/WifiResCommon/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0"
package="com.android.wifi.resources.overlay.common">

<application android:hasCode="false"/>

<overlay
android:isStatic="true"
android:priority="0"
android:targetName="WifiCustomization"
android:targetPackage="com.android.wifi.resources"/>

</manifest>
50 changes: 50 additions & 0 deletions rro_overlays/WifiResCommon/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Integer indicating maximum hardware supported client number of soft ap -->
<bool name="config_vendorWifi11axReadySupport">true</bool>

<!-- boolean indicating whether or not to reset channel configuration during cloud configuration restore -->
<bool name="config_vendor_wifi_softap_owe_supported">true</bool>

<!-- 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>

<!-- Wifi driver supports 6GHz band for softap -->
<bool name="config_wifiSoftap6ghzSupported">true</bool>

<!-- Wifi driver Automatic channel selection (ACS) for softap to include DFS channels -->
<bool name="config_wifiSoftapAcsIncludeDfs">true</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>

<!-- Wifi driver supports batched scan -->
<bool name="config_wifi_batched_scan_supported">true</bool>

<!-- Indicates that connected MAC randomization is supported on this device -->
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>

<!-- dual sap mode is supported on this device. -->
<bool name="config_wifi_dual_sap_mode_enabled">true</bool>

<!-- Indicates that p2p MAC randomization is supported on this device -->
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>

<!-- Boolean to provide support to keep wifi5 symbol for 8SS supported device and 11ax AP -->
<bool name="config_wifi_report_he_ready">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>
5 changes: 5 additions & 0 deletions rro_overlays/WifiResCommon/res/values/integers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Integer indicating maximum hardware supported client number of soft ap -->
<integer name="config_wifiHardwareSoftapMaxClientCount">32</integer>
</resources>
13 changes: 13 additions & 0 deletions rro_overlays/WifiResCommon/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- List of allowed channels in 2GHz 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 '1-6,11'. -->
<string name="config_wifiSoftap2gChannelList" />

<!-- Channel list for softap 5G band. Empty means all channels -->
<string name="config_wifiSoftap5gChannelList" />

<!-- Channel list for softap 6G band. Empty means all channels -->
<string name="config_wifiSoftap6gChannelList" />
</resources>

0 comments on commit 5ff196c

Please sign in to comment.