Ubuntu 20.04 lts wifi-hotspot not working

5,470

Check if your wifi card support the AP mode:

sudo iw list |grep -i "Supported interface modes:" -A10

It should print:

...
* AP
...

See: Wi-Fi device must support AP mode

Use the create_ap tools to create an AP (See: linux-wifi-hotspot):

git clone https://github.com/oblique/create_ap
cd create_ap
sudo make install

Then use Internet sharing from the same WiFi interface:

create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase

or if you need the Ethernet connection through your Wifi interface:

create_ap wlan0 eth0 MyAccessPoint MyPassPhrase
Share:
5,470

Related videos on Youtube

mnmbs
Author by

mnmbs

Updated on September 18, 2022

Comments

  • mnmbs
    mnmbs almost 2 years

    I have a TP-Link T6e card on my computer and it works fine after installing the drivers from the additional driver tabs found in ubuntu software and updates , meaning that I can connect to a wifi. But, when I try to make a hotspot using the option found in ubuntu wifi settings it does not work. What it does is that it creates an ad-hoc connection instead of a hotspot one. I tried editing it using :

    sudo gedit /etc/NetworkManager/system-connections/wifi-connection 
    

    but if I close and reopen the hotspot it makes it ad-hoc again.

    Any suggestions on how to solve this frustrating issue?

    Thank you in advance

    • GAD3R
      GAD3R over 3 years
      Welcome, Try unix.stackexchange.com/a/626452/153195, if you found it useful, I will answer your question.
    • mnmbs
      mnmbs over 3 years
      There is no AP in supported interfaces. I think I got tricked by the seller. Anyway, do you know a fairly cheap (under 50$) network card that supports both AP and Ubuntu?
    • GAD3R
      GAD3R over 3 years
      For example on Amazon.
    • mnmbs
      mnmbs over 3 years
      It's unavailable. Anything available? Maybe a pci-e?