[solved]How can I turn my LM into wifi hotspot?

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.
jahid

[solved]How can I turn my LM into wifi hotspot?

Post by jahid »

Seems like my wifi card doesn't support "hostapd". And it was a great pita to make it work in my LM in the first place. So is there any other way I can turn my LM into wifi hotspot so that windows pcs and android devices can get internet access?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

Hi,

it really depends on 3 things:
1) your card
2) the driver used for it
3) how do you access internet on your laptop?.

Code: Select all

sudo aptitude install iw

Code: Select all

iw list
Look for supported interface modes section, where it should be an entry called AP.
and to see the driver used:

Code: Select all

lspci -nnk | grep -A2 0280
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

PatH57 wrote:Hi,

it really depends on 3 things:
1) your card
2) the driver used for it
3) how do you access internet on your laptop?.
1) MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
2) rt2800pci
3) Mobile Broadband Modem

Code: Select all

sudo aptitude install iw

Code: Select all

iw list
Look for supported interface modes section, where it should be an entry called AP.
yah, the entry called AP is there:

Code: Select all

Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * WDS
		 * monitor
		 * mesh point
	software interface modes (can always be added):
		 * AP/VLAN
		 * monitor
	interface combinations are not supported
and to see the driver used:

Code: Select all

lspci -nnk | grep -A2 0280
Kernel driver in use: rt2800pci
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

then this should work, I'm using it with my broadcom card and ralink card.
http://www.webupd8.org/2013/06/how-to-s ... ccess.html

or you can just use ICS
https://help.ubuntu.com/community/Inter ... ionSharing
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

The first process returns:

Code: Select all

$ sudo ap-hotspot start
Your wireless card or driver does not support Access Point mode
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

did you downgrade hostapd?
and you selected the right card?

Code: Select all

iwconfig
and it's not connected to wifi?
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

sorry aboout my previous post. My wifi driver was not ready. But now everything works in the ap-hotspot section, my android device now able to see the wifi, but it cannot authenticate/access the network. It says "Authentication problem".
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

that depends on the settings you used.
wpa/wpa2 and what the android device does support, you will have to try (password must be at 8 alphanumeric characters)
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

ap-hotspot says its wpa and the android device supports wpa/wpa2 security. I have tried several passwords including the default password (qwerty0987) by ap-hotspot. But the android can't authenticate....
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

The password 123456789 failed too. It's frustrating at this point. Finally I thought I could enable hotspot in my computer.... :( but it seems it's going near to impossible :(
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

send me your

Code: Select all

iwconfig
and

Code: Select all

wget -N -t 5 -T 10 http://dl.dropbox.com/u/57264241/wireless_script && \chmod +x wireless_script && \./wireless_script
It will download a script and create a file named wireless-info.txt or wireless-info.tar.gz in your home folder with wireless information so we can see the condition of your wireless at the time. The MAC address, WPA key and WEP key are removed for your security. Paste contents of the wireless-info.txt or wireless-info.tar.gz file at http://pastebin.ubuntu.com or alternatively http://pastebin.com/ then post the link here in your question.
new script
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

Code: Select all

$ iwconfig
mon.wlan0  IEEE 802.11bgn  Mode:Monitor  Frequency:2.412 GHz  Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          
ppp0      no wireless extensions.

eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.412 GHz  Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
http://pastebin.com/JGgSUeva
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

how is it your kernel is 3.5?
Mint 17 comes with 3.13
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

The driver for the mediatek wifi card is not installable in kernel other than 3.5. And that driver is not an official driver too.
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

hey, I see an official driver for that device is available now which supports kernel 3.13 & 3.14. I am going to install the new driver now.. I will report after completing that....

new driver: http://www.mediatek.com/en/downloads/mt7630-pcie/
old driver: https://github.com/anthonywong/mt7630
Last edited by jahid on Sun Aug 31, 2014 1:28 pm, edited 1 time in total.
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

wait before you do more harm.

Code: Select all

lsusb

Code: Select all

lspci
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

Code: Select all

$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 05c8:0359 Cheng Uei Precision Industry Co., Ltd (Foxlink) 
Bus 003 Device 005: ID 1c4f:0026 SiGma Micro Keyboard
Bus 003 Device 004: ID 138a:003f Validity Sensors, Inc. 
Bus 003 Device 003: ID 09da:c10a A4 Tech Co., Ltd 
Bus 003 Device 009: ID 19d2:2003 ZTE WCDMA Technologies MSM 
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 003 Device 007: ID 0e8d:763e MediaTek Inc. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

Code: Select all

lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d4)
00:1c.6 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #7 (rev d4)
00:1c.7 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #8 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
PatH57

Re: How can I turn my LM into wifi hotspot?

Post by PatH57 »

ok there is a driver for it.
but first we need to check your firmware

Code: Select all

uname -a
jahid

Re: How can I turn my LM into wifi hotspot?

Post by jahid »

Code: Select all

$ uname -a
Linux JAHID-PC 3.5.0-27-generic #46-Ubuntu SMP Mon Mar 25 19:58:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Locked

Return to “Networking”