mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_miatoll.git
synced 2025-05-11 00:27:18 +09:00
miatoll: Update TetheringOverlay & WifiOverlay
* taken from sm6150-common Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
This commit is contained in:
parent
1316e16ad0
commit
b3eea6a3b1
@ -29,7 +29,7 @@
|
|||||||
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
||||||
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
|
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
|
||||||
should be empty. An example would be "softap.*" -->
|
should be empty. An example would be "softap.*" -->
|
||||||
<string-array name="config_tether_wifi_regexs">
|
<string-array translatable="false" name="config_tether_wifi_regexs">
|
||||||
<item>"softap0"</item>
|
<item>"softap0"</item>
|
||||||
<item>"wlan\\d"</item>
|
<item>"wlan\\d"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
@ -67,10 +67,5 @@
|
|||||||
<item>192.168.48.2</item>
|
<item>192.168.48.2</item>
|
||||||
<item>192.168.48.254</item>
|
<item>192.168.48.254</item>
|
||||||
<item>192.168.49.2</item>
|
<item>192.168.49.2</item>
|
||||||
<item>192.168.49.254</item>
|
|
||||||
<item>192.168.50.2</item>
|
|
||||||
<item>192.168.50.254</item>
|
|
||||||
<item>192.168.51.2</item>
|
|
||||||
<item>192.168.51.254</item>
|
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<!-- Pixel specific wifi overlays -->
|
<!-- Pixel specific wifi overlays -->
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.android.wifi.resources.xiaomi_sm6250"
|
package="com.android.wifi.resources.xiaomi_sm6250"
|
||||||
|
coreApp="true"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
<application android:hasCode="false" />
|
<application android:hasCode="false" />
|
||||||
|
@ -22,23 +22,97 @@
|
|||||||
|
|
||||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
|
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
|
||||||
<bool name="config_wifi_dual_band_support">true</bool>
|
<bool translatable="false" name="config_wifi_dual_band_support">true</bool>
|
||||||
|
|
||||||
|
<!-- Enable ACS (auto channel selection) for Wifi hotspot (SAP) -->
|
||||||
|
<bool translatable="false" name="config_wifi_softap_acs_supported">true</bool>
|
||||||
|
|
||||||
|
<!-- Enable 802.11ac for Wifi hotspot (SAP) -->
|
||||||
|
<bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">true</bool>
|
||||||
|
|
||||||
|
<!-- Boolean indicating whether the wifi chipset has 5GHz frequency band support -->
|
||||||
|
<bool translatable="false" name="config_wifi5ghzSupport">true</bool>
|
||||||
|
|
||||||
|
<!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform -->
|
||||||
|
<bool translatable="false" name="config_wifi_fast_bss_transition_enabled">true</bool>
|
||||||
|
|
||||||
<!-- Boolean indicating whether the wifi chipset has background scan support -->
|
<!-- Boolean indicating whether the wifi chipset has background scan support -->
|
||||||
<bool name="config_wifi_background_scan_support">true</bool>
|
<bool translatable="false" name="config_wifi_background_scan_support">true</bool>
|
||||||
|
|
||||||
<!-- Wifi driver supports batched scan -->
|
<!-- Integer thresholds, do not connect to APs with RSSI lower than these values -->
|
||||||
<bool name="config_wifi_batched_scan_supported">true</bool>
|
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer>
|
||||||
|
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer>
|
||||||
|
|
||||||
<!-- True if the firmware supports p2p MAC randomization -->
|
<!-- Integer thresholds for low network score, should be somewhat less than the entry thresholds -->
|
||||||
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
|
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer>
|
||||||
|
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer>
|
||||||
|
|
||||||
|
<!-- 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 translatable="false" name="config_wifi_revert_country_code_on_cellular_loss">false</bool>
|
||||||
|
|
||||||
|
<!-- Boolean indicating whether or not wifi should turn off when emergency call is made -->
|
||||||
|
<bool translatable="false" name="config_wifi_turn_off_during_emergency_call">true</bool>
|
||||||
|
|
||||||
|
<!-- 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" translatable="false">524288,2097152,8388608,262144,524288,4194304</string>
|
||||||
|
|
||||||
<!-- True if the firmware supports connected MAC randomization -->
|
<!-- True if the firmware supports connected MAC randomization -->
|
||||||
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
|
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
|
||||||
|
|
||||||
<!-- Enable ACS (auto channel selection) for Wifi hotspot (SAP) -->
|
<!-- True if the firmware supports p2p MAC randomization -->
|
||||||
<bool name="config_wifi_softap_acs_supported">true</bool>
|
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
|
||||||
|
|
||||||
<!-- Enable 802.11ac for Wifi hotspot (SAP) -->
|
<!-- True if the firmware supports ap MAC randomization -->
|
||||||
<bool name="config_wifi_softap_ieee80211ac_supported">true</bool>
|
<bool name="config_wifi_ap_mac_randomization_supported">true</bool>
|
||||||
|
|
||||||
|
<!-- True if the firmware supports Wi-Fi link probing -->
|
||||||
|
<bool name="config_wifi_link_probing_supported">true</bool>
|
||||||
|
|
||||||
|
<!-- Idle Receive current for wifi radio. 0 by default-->
|
||||||
|
<integer translatable="false" name="config_wifi_idle_receive_cur_ma">1</integer>
|
||||||
|
|
||||||
|
<!-- Rx current for wifi radio. 0 by default-->
|
||||||
|
<integer translatable="false" name="config_wifi_active_rx_cur_ma">100</integer>
|
||||||
|
|
||||||
|
<!-- Tx current for wifi radio. 0 by default-->
|
||||||
|
<integer translatable="false" name="config_wifi_tx_cur_ma">250</integer>
|
||||||
|
|
||||||
|
<!-- Operating volatage for wifi radio. 0 by default-->
|
||||||
|
<integer translatable="false" name="config_wifi_operating_voltage_mv">3800</integer>
|
||||||
|
|
||||||
|
<!-- Indicates that a full bugreport should be triggered when wifi diagnostics detects an error on non-user (i.e debug) builds -->
|
||||||
|
<bool translatable="false" name="config_wifi_diagnostics_bugreport_enabled">true</bool>
|
||||||
|
|
||||||
|
<!-- Default access point SSID used for tethering -->
|
||||||
|
<string name="wifi_tether_configure_ssid_default" translatable="false">Xiaomi</string>
|
||||||
|
|
||||||
|
<!-- Integer indicating maximum hardware supported client number of soft ap -->
|
||||||
|
<integer translatable="false" name="config_wifiHardwareSoftapMaxClientCount">32</integer>
|
||||||
|
<!-- Array indicating wifi fatal firmware alert error code list from driver -->
|
||||||
|
<array translatable="false" name="config_wifi_fatal_firmware_alert_error_code_list">
|
||||||
|
<item>1</item> <!-- WLAN_LOG_REASON_ROAM_FAIL -->
|
||||||
|
<item>256</item> <!-- DATA_STALL_LOG_NONE -->
|
||||||
|
<item>257</item> <!-- DATA_STALL_LOG_FW_VDEV_PAUSE -->
|
||||||
|
<item>258</item> <!-- DATA_STALL_LOG_HWSCHED_CMD_FILTER -->
|
||||||
|
<item>259</item> <!-- DATA_STALL_LOG_HWSCHED_CMD_FLUSH -->
|
||||||
|
<item>260</item> <!-- DATA_STALL_LOG_FW_RX_REFILL_FAILED -->
|
||||||
|
<item>261</item> <!-- DATA_STALL_LOG_FW_RX_FCS_LEN_ERROR -->
|
||||||
|
<item>262</item> <!-- DATA_STALL_LOG_FW_WDOG_ERRORS -->
|
||||||
|
<item>263</item> <!-- DATA_STALL_LOG_BB_WDOG_ERROR -->
|
||||||
|
<item>264</item> <!-- DATA_STALL_LOG_POST_TIM_NO_TXRX_ERROR -->
|
||||||
|
<item>512</item> <!-- DATA_STALL_LOG_HOST_STA_TX_TIMEOUT -->
|
||||||
|
<item>513</item> <!-- DATA_STALL_LOG_HOST_SOFTAP_TX_TIMEOUT -->
|
||||||
|
<item>514</item> <!-- DATA_STALL_LOG_NUD_FAILURE -->
|
||||||
|
</array>
|
||||||
|
|
||||||
|
<!-- Integer delay in milliseconds before set wlan interface up during watchdog recovery -->
|
||||||
|
<integer name="config_wifi_framework_recovery_timeout_delay">3000</integer>
|
||||||
|
|
||||||
|
<!-- Enable adding minimum confirmation duration when sending network score to connectivity service. -->
|
||||||
|
<bool translatable="false" name="config_wifiMinConfirmationDurationSendNetworkScoreEnabled">true</bool>
|
||||||
|
|
||||||
|
<!-- Disable WPA2 to WPA3 auto-upgrade -->
|
||||||
|
<bool translatable="false" name="config_wifiSaeUpgradeEnabled">false</bool>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user