HotSpot Issues

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Makrand
Level 1
Level 1
Posts: 19
Joined: Sun Jun 05, 2016 1:05 pm

HotSpot Issues

Post by Makrand »

Hi all,

I am facing some weird issues with created hotspot on my laptop.

My details:-

Code: Select all

Laptop:- Fujitsu Lifebook A555
Linux Mint:- 18.3 Sylvia (Cinamon X64)
Wifi & network adapter
02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 61)
	Subsystem: Intel Corporation Wireless-N 7265
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
	Subsystem: Fujitsu Limited. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
I access internet on laptop using the ethernet connection and to share it with my handheld devices via hotspot created on my mint. Initially, I created the hotspot using GUI menu and set its name to like:- mint-fuji1. I was facing issues from the beginning. Sometimes the internet used to work connected android and sometimes not. I needed to reboot the laptop several times to get it working.

So I decided to start FRESH.

From GUI: Went to network connections & removed the network Hotspot. This removed old config file for the hotspot. Then added a new connection and set connection name, SSID:-Mint-Spot, passkey etc. Here is screenshot of same

https://snag.gy/5K6hpY.jpg

I could hotspot config File created like below

makrand@mint-fuji1 /etc/NetworkManager/system-connections $ ls
IDC-MGMT Mint-Spot

Checked the contents of Mint-Spot Files.
[connection]
id=Mint-Spot
uuid=11718dd2-d8da-4215-a16b-96aba1ae78a8
type=wifi
interface-name=wlp2s0
permissions=
secondaries=

[wifi]
band=bg
channel=1
mac-address=10:02:B5:08:38:CE
mac-address-blacklist=
mac-address-randomization=0
mode=ap
seen-bssids=
ssid=Mint-Spot1

[wifi-security]
group=
key-mgmt=wpa-psk
pairwise=
proto=
psk=<my set key>

[ipv4]
dns-search=
method=shared

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=ignore

Now my hotspot is displayed with name Mint-Spot and I can connect internetid to it and access interent on android.

So I decided to turn off the hostspot. After I turned it on immediately, the hostspot aquired network name like 'mint-fuji1' on its own and config file for hotspot as been modified to below. Note:- it didn't changed the PSK key. Only SSID was changed.
[connection]
id=Mint-Spot
uuid=11718dd2-d8da-4215-a16b-96aba1ae78a8
type=wifi
interface-name=wlp2s0
permissions=
secondaries=
timestamp=1518504683

[wifi]
band=bg
channel=1
mac-address=10:02:B5:08:38:CE
mac-address-blacklist=
mac-address-randomization=0
mode=ap
seen-bssids=10:02:B5:08:38:CE;
ssid=mint-fuji1

[wifi-security]
group=
key-mgmt=wpa-psk
pairwise=
proto=
psk=<my set key>

[ipv4]
dns-search=
method=shared

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=ignore
Now I can see mint-fuji1 as available wi-fi network from my android. But if I connect to it, I can't access the internet. I tried pinging 8.8.8.8 (google public DNS) from my android and below is result. 10+ erros.

--- 8.8.8.8 ping statistics ---
10 packets transmitted, 0 received, +10 errors, 100% packet loss, time 9015ms
pipe 3


After this, I rebooted the laptop and now I could connect to Hotspot from android and can access the internet


So here are few problems
1) I am not sure why its resetting the SSID name to mint-fuji1 when I turn hotspot on & off (or reboot laptop). Seems in spite of the set name of SSID, its taking mint-fuji1 as default. Strange!

2) Why I can't access the internet from android connected to hotspot most of times?

3) Why rebooting laptop fixes the issue?


Things tried so far:-
1) I've updated network manager to the latest version from update center. But no luck.
2) This problem is appering only after reinstalled (no upgrade....just format and reisntall) OS to 18.3. with 18.1/2 hotspot used to work fine.

I am really confused now. Any clues??
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Laptop1:- Fujitsu Lifebook A555.
Core-i3 5005U, 16GB DDR3L, 480GB Kingston HyperX SSD,
Linux Mint 18.3 Cinnamon
Laptop2:- MSI GL-63 8RD.
Core-i5 8300H, 32GB DDR4-2666Mhz, 120GB NVME/1TB HDD 7200rpm
Linux Mint 19.1 XFCE
sammiev

Re: HotSpot Issues

Post by sammiev »

Hi, Ran into some of the same issues as yourself. Came across this from one site or another and have been using it for the last 3 - 4 months while traveling.

Code: Select all

sudo apt-get install hostapd git build-essential
git clone https://github.com/oblique/create_ap.git
cd create_ap
sudo make install

            Wired to onboard Wifi
sudo create_ap wlp20s0 enp14s0 MyHotSpotName Password

sudo create_ap --stop wlp20s0

            Onboard Wifi to USB Wifi
sudo create_ap wlx001a703b6afb wlp20s0 MyHotSpotName Password

sudo create_ap --stop wlx001a703b6afb
Examples:
create_ap wlan0 eth0 MyAccessPoint MyPassPhrase
echo -e 'MyAccessPoint\nMyPassPhrase' | create_ap wlan0 eth0
create_ap wlan0 eth0 MyAccessPoint
echo 'MyAccessPoint' | create_ap wlan0 eth0
create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase
create_ap -n wlan0 MyAccessPoint MyPassPhrase
create_ap -m bridge wlan0 eth0 MyAccessPoint MyPassPhrase
create_ap -m bridge wlan0 br0 MyAccessPoint MyPassPhrase
create_ap --driver rtl871xdrv wlan0 eth0 MyAccessPoint MyPassPhrase
create_ap --daemon wlan0 eth0 MyAccessPoint MyPassPhrase
create_ap --stop wlan0
User avatar
Makrand
Level 1
Level 1
Posts: 19
Joined: Sun Jun 05, 2016 1:05 pm

Re: HotSpot Issues

Post by Makrand »

Alright,

The problems continue. The Hotspot which was working since morning stopped working on its own and now even if I deleted the Wi-Fi network and recreate it, it doesn't allow other Android devices to connect to the hotspot or to access internet in case they connect. Rebooting will fix the problem, but its pain in butt.
Seems to me like some bug in Sylvia. Coz with previous Mints, I did not have a problem. ANYONE??

@ sammiev
Thanks. Will look into it. But I was more looking for a permanent solution for the problem, rather than using some third-party scripts.
Laptop1:- Fujitsu Lifebook A555.
Core-i3 5005U, 16GB DDR3L, 480GB Kingston HyperX SSD,
Linux Mint 18.3 Cinnamon
Laptop2:- MSI GL-63 8RD.
Core-i5 8300H, 32GB DDR4-2666Mhz, 120GB NVME/1TB HDD 7200rpm
Linux Mint 19.1 XFCE
Locked

Return to “Networking”