
Iw phy phy0 interface add new0 type station Ifconfig wlan0 down #wlan0 - the name of your wireless adapter

See man wpa_supplicant for some quick examples. In wpa_nf you must provide the settings of your current wireless network. In /etc/default/udhcp, comment the line that says DHCPD_ENABLED="no". Opt router 192.168.0.101 #This IP must to be in the same subset as your current default route Opt dns 192.168.0.1 #Your current default route (Gateway) In nf file comment all the current lines (by adding a # character in front of the line) and add the following new lines: start 192.168.0.102 #These IPs must to be in the same subset as your current default route Wpa_passphrase=1234567890 #Change the passphrase as you wish

Ssid=my_wifi_hotspot #Change the ssid name as you wishĬhannel=11 #I sugest you to use the same channel as your wireless network In nf file add the following code: interface=new1 Run the following command in terminal to edit corresponding files: sudo -H gedit /etc/nf /etc/nf /etc/default/udhcpd /etc/wpa_nf You can install these with sudo apt-get install iw hostapd iptables udhcpd udhcpc macchanger Tools neededĬheck whether all the below mentioned packages are installed: iw, hostapd, iptables, udhcpd, udhcpc, macchanger. If the output is null or if the string cfg80211 is not in the output, it makes no sense to continue and you should pay attention at second and third point from this answer. Run the following command in terminal: lsmod | grep ath Detect if your wireless device will work with this method This wireless device must to use an Atheros driver that is already build with nl80211 support.

After I saw this link offered by vasishath, I managed to setup a wireless hotspot to share the internet connection from the same single wireless interface device.
