I know how to create a hotspot when connected to a wired network, but when I am using internet from a WiFi connection, this disconnects the wireless connection the moment I activate the hotspot.
In Windows I can use Connectify Hotspot, which enables me to share the internet connection from the same wireless adapter as I am creating an access point on. As you can read on the technology overview page:
Access Point mode allows you to create a hotspot using the same Wi-Fi card that you are using to access the Internet.
How do I do this on Ubuntu?
Best Answer
Simple steps: Create wifi hotspot in ubuntu
Open Terminal (Ctrl+Alt+T) and type in the following command with your connection name used in step 5.
Find
mode=infrastructure
and change it tomode=ap
Now check the network section where wi-fi will be connected to the created hotspot automatically. If you can not find it, go to Connect to Hidden Network... Find the connection and connect to it.
Source: http://ubuntuhandbook.org/index.php/2014/09/3-ways-create-wifi-hotspot-ubuntu/