this post was submitted on 20 Mar 2024
41 points (84.7% liked)

Linux

48310 readers
645 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Title is self explanatory. For background, I am currently running Asahi Linux on my M1 MBP. Whenever I connected the hotspot without data being turned on, it somehow still worked like any regular wifi. I even ran several updates in the system and downloaded multiple apps in this wifi, which I find it amusing. But out of curiosity, I wanted to know from you guys that what could the reason be for this.

EDIT: So after following the advice of jet@hackertalks.com, I relized that the hotspot is using the network of my University's Wi-Fi, which explains why the hotspot worked even with the data turned off.

top 27 comments
sorted by: hot top controversial new old
[–] Skipcast@lemmy.world 25 points 8 months ago* (last edited 8 months ago) (3 children)

Is the wifi enabled and connected on the phone? I had a situation once where the hotspot network was relaying data to the connected wifi network on the phone instead of mobile data like you'd expect.

[–] Blizzard@lemmy.zip 4 points 8 months ago

That would be my guess as well.

[–] mvirts@lemmy.world 2 points 8 months ago

Yeah my phone does this

[–] DM294@lemm.ee 1 points 8 months ago

Yeah, the Wi-Fi on my phone is enabled.

[–] jet@hackertalks.com 7 points 8 months ago (1 children)

Do a traceroute and see which network it transits through

[–] DM294@lemm.ee 17 points 8 months ago* (last edited 8 months ago) (3 children)

Ok, so after running traceroute, it seems that the hotspot is using the network of my university Wi-Fi, which my phone is connected with. EDIT: Thanks a lot! Forgot to thank you for the advice 😅

[–] magikmw@lemm.ee 9 points 8 months ago (3 children)

It's interesting on it's own, since I do remember my android phone disconnecting from wifi when enabling the hotspot. If I understand it right, this type of wifi bridge requires two radios to work efficiently, but it may have changed in latest Wi-Fi standards. Curious nontheless.

[–] Trainguyrom@reddthat.com 8 points 8 months ago

I'm guessing it uses the 2.4ghz antenna to transmit and the 5ghz antenna to receive or vice-versa

[–] Petter1@lemm.ee 5 points 8 months ago (1 children)

This was my thinking as well, I did not know that there are phones that can be connected to a wifi network while hosting their own wifi network 🤔 On my iPhone, the only way to achieve Internet on pc while phone is on wifi, is to connect the phone via USB to the PC and share the internet connection this way.

[–] liforra@endlesstalk.org 3 points 8 months ago

Most androids can, samsung hides it behind a setting called "wifi bridge" and some hide it in dev settings but its almost always default off

[–] DM294@lemm.ee 2 points 8 months ago

Exactly, hence this post.

[–] xavier666@lemm.ee 2 points 8 months ago (1 children)

Is the phone essentially acting as a fancy Layer 3 extender?

[–] DM294@lemm.ee 0 points 8 months ago

No idea about that, tho even my old phone, which was Xiaomi 12T, could do that.

[–] authed@lemmy.ml 2 points 8 months ago (2 children)

Which phone is that? I thought that most phones could not create a hotspot and at the same time connect to a WiFi network.

[–] KaninchenSpeed@sh.itjust.works 8 points 8 months ago (1 children)

Most phones can, it's just disabled in software, you can enable it in Androids developer settings.

[–] authed@lemmy.ml 1 points 8 months ago* (last edited 8 months ago)

wow, that's a stupid default setting. thanks

[–] DM294@lemm.ee 1 points 8 months ago

Mine is a Motorola Edge 40.

[–] fl42v@lemmy.ml 6 points 8 months ago* (last edited 8 months ago) (1 children)

So, you have a phone that does the tethering or something? Maybe, It's some bug on its (or their, depending on how close you two are) side? I'd try another device with the same hotspot.

Alternatively, the laptop may be connected to several networks at the same time and be using whatever works. Can probably be checked by verifying ips of the phone and the laptop.

[–] DM294@lemm.ee -1 points 8 months ago

So this same thing ocurred when my laptop was connected to the hotspot of my previous phone under a different name.

[–] Pantherina@feddit.de 3 points 8 months ago* (last edited 8 months ago)

A hotspot is a connection where your phone creates a wifi network using its wifi antenna. The signal strength depends on how far away the phone is, thats it.

The hotspot stays on also if the phone has no cell data connection. Normally a phone should only be able to connect to either a wifi or be a hotspot, phone model is important.

[–] breadsmasher@lemmy.world 2 points 8 months ago (1 children)

Is tethering overriding your data setting? If it was truly offline updates etc wouldn’t work

[–] DM294@lemm.ee 1 points 8 months ago (1 children)

All the tethering settings are off. I'm just using the default hotspot settings.

[–] leanleft@lemmy.ml 1 points 8 months ago* (last edited 7 months ago)

https://en.wikipedia.org/wiki/RNDIS (connectivity over usb)

my samsung phone gives me several options (charging,mtp,rndis,etc..)
its surprising that your tethering is off. it might seem that its considered a seperate technology.

edit: "RNDIS linux module is being deprecated and will be removed from the Linux Kernel in favor Network Control Model (NCM), but it is used by majority of devices nowadays (2023) and up to now the only way to configure working USB tethering for old Android devices.[1] For more recent devices (Android 14 era) try to use "Network Control Model (NCM) support" module first."

[–] Oha@lemmy.ohaa.xyz 2 points 8 months ago (1 children)

Unrelated but what theme/color scheme are you using?

[–] DM294@lemm.ee 2 points 8 months ago (1 children)

I am using the default Breeze Dark Theme, with colours from Sweet-Ambar-Blue.

[–] Oha@lemmy.ohaa.xyz 2 points 8 months ago
[–] Zavorra@lemmy.world 1 points 8 months ago

You could also try to ping 8.8.8.8 (or whatever public IP you can remember). If it works it is not getting a correct DNS which results in "no connection"

In this case modify your connection on the laptop to use 8.8.8.8 (google) or 208.67.222.222 (opendns) and check if it works