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

Commit be946ffc authored by Nalla Kartheek's avatar Nalla Kartheek Committed by Linux Build Service Account
Browse files

P2P: Change supplicant scan intervel during WFD session

During WFD session supplicant scan intervel is one minute. If
there are some saved profiles, then supplicant will issue a scan
for every one minute, this is causing some ping latency in WFD.
Hence supplicant scan intervel should change to five minutes
to improve ping latency in WFD session only.
Change-Id: If827bab6f186ebeaac90f297935bc8b987eb4d09
CRs-Fixed: 669404
parent 5953db10
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3125,6 +3125,7 @@ public final class Settings {
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_P2P_DEVICE_NAME);
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_SAVED_STATE);
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_SUPPLICANT_SCAN_INTERVAL_MS);
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_SUPPLICANT_SCAN_INTERVAL_WFD_CONNECTED_MS);
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED);
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_ENHANCED_AUTO_JOIN);
            MOVED_TO_GLOBAL.add(Settings.Global.WIFI_NETWORK_SHOW_RSSI);
@@ -5915,6 +5916,13 @@ public final class Settings {
       public static final String WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS =
               "wifi_scan_interval_p2p_connected_ms";

       /**
        * The intervel in milliseconds to scan at supplicant when wfd session
        * @hide
        */
       public static final String WIFI_SUPPLICANT_SCAN_INTERVAL_WFD_CONNECTED_MS =
               "wifi_scan_intervel_wfd_connected_ms";

       /**
        * Whether the Wi-Fi watchdog is enabled.
        */
+3 −0
Original line number Diff line number Diff line
@@ -387,6 +387,9 @@
    <!-- Integer indicating wpa_supplicant scan interval when p2p is connected in milliseconds -->
    <integer translatable="false" name="config_wifi_scan_interval_p2p_connected">60000</integer>

    <!-- Integer indicating wpa_supplicant scan intervel when WFD session established in milliseconds  -->
    <integer translatable="false" name="config_wifi_scan_interval_wfd_connected">300000</integer>

    <!-- Integer indicating the framework scan interval in milliseconds. This is used in the scenario
         where the chipset does not support background scanning (config_wifi_background_scan_suport
         is false) to set up a periodic wake up scan so that the device can connect to a new access
+1 −0
Original line number Diff line number Diff line
@@ -371,6 +371,7 @@
  <java-symbol type="integer" name="config_wifi_framework_scan_interval" />
  <java-symbol type="integer" name="config_wifi_supplicant_scan_interval" />
  <java-symbol type="integer" name="config_wifi_scan_interval_p2p_connected" />
  <java-symbol type="integer" name="config_wifi_scan_interval_wfd_connected" />
  <java-symbol type="integer" name="db_connection_pool_size" />
  <java-symbol type="integer" name="db_journal_size_limit" />
  <java-symbol type="integer" name="db_wal_autocheckpoint" />