You are sitting with your phone, watching a video or downloading a file, and suddenly the Internet disappears. And not because of problems with the provider: everything works on a laptop or other device, but on an Android smartphone Wi-Fi turns off without permission in a few minutes or even seconds. This problem is familiar to many users, but its reasons are not always obvious.

Unlike stationary devices, mobile gadgets actively save energy, switch between networks and depend on signal quality. Sometimes the router itself is to blame, sometimes itโ€™s the Android settings, and in rare cases itโ€™s hardware faults. We analyzed 12 most common reasonswhy Wi-Fi breaks on smartphones Samsung, Xiaomi, Realme, Honor and other brands, and collected proven ways to eliminate them.

Important: if the problem appeared after updating the firmware or installing a new application, this is the key to diagnostics. In the article you will find compatibility table versions of Android with popular routers, as well as instructions for advanced users (including commands ADB).

1. Energy saving: why Android turns off Wi-Fi in the background

The most common reason for spontaneous shutdowns is aggressive battery optimization. Manufacturers (especially Xiaomi, Huawei, Oppo) actively save battery by disabling background processes, including connecting to Wi-Fi. This applies not only to budget models, but also to flagships.

How does it work? The system analyzes application activity and network connections. If you're not interacting with your phone (screen off, no active downloads), Android may disconnect from Wi-Fi after 5-15 minutesswitching to the mobile network. At the same time, the Wi-Fi icon may remain in the status bar - this is a visual bug.

  • ๐Ÿ”‹ Disable optimization for Wi-Fi: go to Settings โ†’ Applications โ†’ Manage applications โ†’ Three dots (menu) โ†’ Special access โ†’ Optimization batteries. Find in the list Wi-Fi (or Settings) and select No restrictions.
  • โšก Set up the mode energy saving: in Settings โ†’ Battery โ†’ Power saving mode disable the option Limit background activity or add an exception for Wi-Fi.
  • ๐Ÿ“ฑ Check the developer settings: if you have the mode enabled Do not turn off the screen while charging or Background Wi-Fi check, this may affect stability connections.
โš ๏ธ Attention: On some firmware (for example, MIUI 14 or ColorOS 13) the path to the battery optimization settings may differ. If you don't find the item Battery optimization, try searching the settings for "battery".
๐Ÿ“Š How often does your Wi-Fi turn off on Android?
Every 5โ€“10 minutes
After 30+ minutes of inactivity
Only at night
After updating the firmware
Does not turn off

2. Conflict with the mobile data: why the phone switches to 4G/5G

Many smartphones are configured so that automatically switch to mobile dataif the Wi-Fi quality deteriorates. This is useful on public networks, but may cause connection dropouts at home. For example, if the router signal is weak (even by 1-2 bars), Android will consider the network unreliable and disconnect from it.

Another reason - Smart Network Switch function (u Samsung) or Auto network switching (u Xiaomi/Redmi). It analyzes Wi-Fi speed and, when it falls below a threshold (usually ~10 Mbit/s), forces the transition to 4G/5G. The problem is that the threshold may trigger falsely, especially if the router is far away or there is interference.

  • ๐Ÿ“ถ Disable auto switching:
    • On Samsung: Settings โ†’ Connections โ†’ Wi-Fi โ†’ Advanced (โš™๏ธ) โ†’ Smart Network Switch โ†’ turn off.
    • On Xiaomi/Redmi/Poco: Settings โ†’ Wi-Fi โ†’ Wi-Fi settings โ†’ Auto switch to mobile data โ†’ turn off.
    • On Google Pixel: Settings โ†’ Network and Internet โ†’ Wi-Fi โ†’ Wi-Fi preferences โ†’ Switch to mobile data automatically.
  • ๐Ÿ”„ Prohibit switching for a specific network: click on the name of your Wi-Fi network in the settings, select Additional and disable the option Auto-connect or Switch to mobile data.
๐Ÿ’ก

If after disabling auto-switching, Wi-Fi began to work more stable, but the Internet speed has dropped - check your router settings. It may automatically switch to the loaded 2.4 GHz channel instead of 5 GHz.

3. Problems with the router: why other devices work, but Android doesnโ€™t

If Wi-Fi turns off only on the phone, but everything is stable on the laptop or tablet, the smartphone is not always to blame. Routers (especially budget models from TP-Link, D-Link, Tenda) can block devices for the following reasons:

  • ๐Ÿ”’ Filtering by MAC address: if MAC binding is enabled in the router settings, and your phone's address is not whitelisted, the connection will break.
  • โšก Energy saving router: some models (for example, Asus RT-AX55 or Keenetic) disable Wi-Fi for "sleeping" devices.
  • ๐Ÿ“ก Incompatibility of standards: if the router operates in 802.11n/ac/axmode, and the phone only supports 802.11a/b/g, the connection will be unstable.
  • ๐Ÿ”„ Frequent reconnections: if in the router settings is turned on Fast Roaming (802.11r), but the phone does not support it, disconnections may occur.

How to check?

  1. Connect the phone to another router (for example, to a mobile hotspot). If the problem disappears, your main router is to blame.
  2. Try connecting to the network 5 GHz instead 2.4 GHz (or vice versa). Some phones (for example Redmi Note 10) have bugs with support Wi-Fi 6.
  3. Update the router firmware via the web interface (usually at 192.168.0.1 or 192.168.1.1).
Router model Problematic firmware Recommended solution
TP-Link Archer C6 Versions up to 210730 Update to 220301 or disable Beamforming
Keenetic Hero 3.7.x with enabled Fast Roaming Disable 802.11r or update to 3.8+
Asus RT-AX88U All versions with enabled AiProtection Add phone MAC to exceptions or disable Intrusive scanning
Xiaomi Mi Router 4A Up to 2.20.65 Update firmware or reset settings
โš ๏ธ Attention: If your router is issued by a provider (for example, Rostelecom or Beeline), its firmware may be blocked for self-updating. In this case, contact the provider's support.

4. Firmware bugs: when Android is to blame

Wi-Fi instability is often associated with software errors in the firmware. This is especially true for:

  • ๐Ÿ“ฑ Betta versions of Android (for example, Android 14 Beta on Pixel 7).
  • ๐Ÿ”„ Custom firmware (LineageOS, crDroid etc.).
  • ๐Ÿ“ฆ Stock firmware with bugs (for example, MIUI 13.0.6 for Redmi Note 11 or One UI 5.1 for Samsung Galaxy A52).

How to determine that the firmware is to blame?

  • The problem appeared immediately after the update.
  • Wi-Fi turns off on all networks, and not just at home.
  • In the system logs (Settings โ†’ System โ†’ Logs) there are errors like WifiStateMachine: Failed to connect.

Solutions:

  1. Update rollback: if the problem started after the update, try rolling back. On Samsung this can be done through Settings โ†’ Software update โ†’ Return to previous version (available within 5 days after the update).
  2. Reset network settings: go c Settings โ†’ System โ†’ Reset โ†’ Reset Wi-Fi, mobile network and Bluetooth settings.
  3. Manual firmware installation: for Xiaomi download the stable version MIUI from the site en.miui.com and flash through Fastboot.
How to check Wi-Fi logs on Android?

1. Install the application MatLog or Logcat Extreme from Google Play.

2. Connect to Wi-Fi and wait until the connection breaks.

3. Open the logs and find lines with tags WifiStateMachine, WifiNative or ConnectivityManager.

4. Pay attention to errors like DISCONNECTED, AUTHENTICATION_ERROR or IP_CONFIGURATION_FAILED.

5. Incorrect IP and DNS settings: why Wi-Fi connects but does not work

Sometimes Wi-Fi connecting connects to the network, but after a few seconds or minutes the Internet disappears. At the same time, the Wi-Fi icon in the status bar remains active, but the pages do not load. Blame incorrect IP or DNS settings.

Android can automatically obtain an IP address from the router (DHCP), but if something goes wrong (for example, the router issues an incorrect address or the IP lease time expires), the connection is broken. The same thing happens with problems with DNS: if the server does not respond, the phone loses access to the Internet, although technically remains connected to the network.

How to fix:

  • ๐Ÿ”ง Set up a static IP:
    1. Go to Settings โ†’ Wi-Fi, click on your network.
    2. Select Change network โ†’ Advanced settings โ†’ IP settings.
    3. Instead of DHCP select Static and enter:
      • IP address: 192.168.1.X (where X is a number from 10 to 254, not occupied by other devices).
      • Gateway: 192.168.1.1 (or 192.168.0.1).
      • Subnet mask: 255.255.255.0.
      • DNS 1: 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare).
  • ๐Ÿ”„ Reset the DNS cache: to do this, turn off Wi-Fi, turn on Airplane mode for 10 seconds, then turn it off and connect again.
  • ๐Ÿ“ก Check the router settings: in the router web interface (192.168.1.1) find section DHCP and make sure that the range of issued IPs does not conflict with static addresses.
  • 1. Install the application DNS Changer or 1.1.1.1 from Cloudflare

    2. Select public DNS (Google, Cloudflare, OpenDNS)

    3. Reboot the phone

    4. Check Wi-Fi stability for 10-15 minutes

    -->

    6. Wi-Fi or antenna

    If all software methods have been tried, but Wi-Fi still turns off, the reason may be hardware failure. Most often they suffer from:

    • ๐Ÿ“ถ Wi-Fi antenna: on many smartphones it is located in the upper part of the case. or shocks can damage its contacts.
    • ๐Ÿ”Œ Wi-Fi/Bluetooth module: on the board it is often combined with Bluetooth. If you also lose connection to headphones or speakers, this is an indirect sign of a module malfunction.
    • ๐Ÿ”‹ Power controller: If Wi-Fi turns off when the battery charge is low (below 15-20%), it may not be the module itself that is at fault, but the power circuit.

    How diagnose:

    • Try to connect to Wi-Fi in safe mode (press the power button โ†’ Safe mode). If the problem disappears, the software is to blame; if not, itโ€™s the hardware.
    • Check whether the top of the phone gets hot when actively using Wi-Fi. Overheating may indicate problems with the antenna.
    • Connect the phone to the computer and run the command:
      adb shell dumpsys wifi

      In the output, find lines with driver state or interface name. If there are errors like FAILED or DISCONNECTED, this may indicate a hardware failure.

    โš ๏ธ Attention: If you suspect a hardware failure, do not try to disassemble the phone yourself (especially models with adhesive casing, like Samsung Galaxy S22 or Google Pixel 6). Contact the service center - antenna repair or Wi-Fi module replacement is best left to professionals.

    7. The influence of applications: what apps can break Wi-Fi

    Some applications actively interfere with the operation of the network, which leads to spontaneous Wi-Fi shutdowns. Most often to blame:

    • ๐Ÿ›ก๏ธ Antiviruses and firewalls: Avast, Kaspersky, 360 Security they can block network activity, considering it suspicious.
    • ๐Ÿ”„ Optimizers and cleaners: CCleaner, DU Speed Booster aggressively close background processes, including Wi-Fi.
    • ๐Ÿ“ฑ VPN clients: Some VPNs (for example, SuperVPN or TurboVPN) conflict with network settings.
    • ๐ŸŽฎ Game boosters: Game Turbo (Xiaomi) or Game Launcher (Samsung) can limit background traffic.

    How to find the culprit:

    1. Download your phone into safe mode (as described above). If Wi-Fi works stably, the problem is in one of the installed applications.
    2. Look battery consumption history (Settings โ†’ Battery โ†’ Battery usage). Applications that actively use the network will be in the top lines.
    3. Turn off suspicious apps one by one or remove them. Start with antiviruses and optimizers.
    ๐Ÿ’ก

    If the problem disappeared after deleting the application, but you want to get it back, try disabling network access for it in the settings (Settings โ†’ Applications โ†’ [Application name] โ†’ Mobile data and Wi-Fi).

    8. Specific cases: rare, but possible reasons

    If none of the above helped, consider less obvious scenarios:

    • โฑ๏ธ DHCP timeout: some routers break the connection if the device does not confirm its IP within a certain time Try increasing the router settings DHCP Lease Time to 24. hours.
    • ๐Ÿ”’ Blocking by schedules: in routers Asus or Netgear a Wi-Fi shutdown schedule can be enabled for individual devices.
    • ๐Ÿ“ถ Channel conflict: if there are many networks nearby on the same channel (for example, channel 6 in the range 2.4 GHz), this causes interference. Use the application WiFi Analyzerto find a free channel and change it in the router settings.
    • ๐Ÿ”„ IPv6 conflicts: if your provider supports IPv6, but your router or phone does not, disconnections may occur in the router settings.

    To diagnose rare cases, it is useful to check router logs. Go to the web interface (192.168.1.1) and find the section Logs or System log. Look for lines with:

    • DHCPACK, DHCPDISCOVER โ€”problems with IP issuance.
    • Authentication failed โ€”authentication errors.
    • Deauthenticated โ€”forced shutdown devices.

    FAQ: Frequently asked questions about spontaneous shutdown of Wi-Fi

    โ“ Why does Wi-Fi turn off at night?

    Most likely, one of three factors is to blame:

    1. Energy saving: many phones (especially Xiaomi and Huawei) aggressively optimize the battery at night by turning off Wi-Fi.
    2. Router schedule: some providers (for example, MTS or Beeline) reduce speed or reboot equipment at night.
    3. Background updates: if the phone downloads updates or synchronizes data (for example, Google Photos), this may cause temporary gaps.

    Solution: Turn off nightly battery optimization and check your router settings for schedules.

    โ“ Can a virus cause Wi-Fi shutdowns?

    Theoretically yes, but in practice this is extremely rare. Viruses that interfere with network settings are usually disguised as:

    • Optimizers (Clean Master, Speed Booster).
    • VPN applications with suspicious permissions.
    • Game cheats or mods.

    Check your phone using Malwarebytes or built-in scanner (Settings โ†’ Security โ†’ Scan device). If there are no viruses, look for the reason in the network settings.

    โ“ Why does Wi-Fi only work near the router?

    This is a typical symptom weak signal or incompatibility of standards:

    • If the router operates on a frequency 5 GHzand the walls weaken the signal, the phone may lose connection already 2-3 meters from the router. Try switching to 2.4 GHz.
    • Some phones (for example Redmi 9Ahave weak antennas. In this case, it will help Wi-Fi repeater or replacing the router with a model with Beamforming (directed signal transmission).
    โ“ How to check if the provider is blocking my device?

    Some providers (especially corporate or hotel networks) block devices by:

    • MAC address (if it is not whitelisted).
    • Device type (for example, they block smartphones, leaving only laptops).
    • Number of connected gadgets (the limit may be 1-2 devices per account).

    How to check:

    1. Connect another phone to the same network. If it works, you are blocked personally.
    2. Call the provider's support and find out if there are restrictions on devices.
    3. Try clone MAC address (in the Wi-Fi settings of some phones there is an option Use a random MAC โ€”disable it).
    โ“ Can a case or film affect Wi-Fi?

    Yes, but only in three cases:

    • ๐Ÿ“ฑ Metal cases (for example, with a magnetic mount) they can shield the signal, especially if the antenna is located at the rear (like iPhone or Samsung Galaxy S21).
    • ๐Ÿงฒ Magnetic holders (for example, for mounting in a car) sometimes interfere with the operation of the compass and sensors, which indirectly affects the stability of the network.
    • ๐Ÿ”‹ Thick armored cases with protection from shocks can overheat the phone, causing the system to forcibly turn off Wi-Fi for cooling.

    Solution: remove the case and check the stability of the connection. If the problem disappears, try another accessory.