LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2013, 01:06 PM   #1
tris_halo
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Rep: Reputation: Disabled
Question Can't use hostapd to create wifi hotspot


My device is my phone using Android OS. And now I'm trying to create a network using hostapd (authenticator and stuff) and dnsmasq (DHCP service).
- Here is the default hostapd.conf file of system:
Code:
interface=wlan0
driver=nl80211
ctrl_interface=/data/misc/wifi/hostapd
ssid=TrisAP
channel=6
ieee80211n=1
wpa=1
wpa_pairwise=TKIP CCMP
wpa_psk=1e1981e8d8b6922b1717cbc2bcdf1d7395cb53750317beb88a4dfaa56301ca22
- I am using the following command
Code:
hostapd ./hostapd.conf
And yes, the hostapd process is created. But still another devices such as my laptop can't see my network. Please help me
 
Old 08-04-2013, 12:02 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,331

Rep: Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089
Quote:
Originally Posted by tris_halo View Post
My device is my phone using Android OS. And now I'm trying to create a network using hostapd (authenticator and stuff) and dnsmasq (DHCP service).
- Here is the default hostapd.conf file of system:
Code:
interface=wlan0
driver=nl80211
ctrl_interface=/data/misc/wifi/hostapd
ssid=TrisAP
channel=6
ieee80211n=1
wpa=1
wpa_pairwise=TKIP CCMP
wpa_psk=1e1981e8d8b6922b1717cbc2bcdf1d7395cb53750317beb88a4dfaa56301ca22
- I am using the following command
Code:
hostapd ./hostapd.conf
And yes, the hostapd process is created. But still another devices such as my laptop can't see my network. Please help me
Nothing to help you WITH. What you're trying to do is called 'tethering', and (since you've only got one WiFi transceiver on your phone), you can only use it in one place. So, if you're connected to WiFi with your phone, it's busy and can't be used. If you're not, then your carrier may have disabled tethering, which means you can't do it.

Also, you don't tell us what kind of phone, running what Android OS, on what carrier, so there's little we can tell you. Most phones will have a tethering option built in (IF it is supported by your hardware and carrier), and you can just enable it through the settings menu.
 
Old 08-06-2013, 06:13 AM   #3
tris_halo
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
- Thanks for your support. I figured out my answer. My problem is I want to have the "tethering" function which is separated from built-in function using Linux commands (not the API). I currently want to develop an tethering application for android OS. The commands I use are:
ndc softap fwreload wlan0 AP
ndc softap startap

- At first I simply use hostapd commands but it doesn't work. It shows out "missing beacon parameters and failed". The above commands help creating hostapd process automatically.
- Thanks for the reply anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Implement strong WiFi encryption the easy way with hostapd LXer Syndicated Linux News 0 04-17-2012 08:42 PM
Wifi hotspot (hostapd and shorewall) - can't connect lunaroverlord Linux - Networking 0 10-21-2011 07:24 PM
WiFi can't switch the connection to wifi hotspot when already connect to an AP pologuy Linux - Wireless Networking 2 08-02-2011 04:05 AM
wifi works:how to connect to hotspot,with console?alternative to wifi-wiz assistant? frenchn00b Debian 7 10-30-2009 01:31 PM
linux wifi hotspot right for me? henrikwidth Linux - Wireless Networking 4 05-30-2006 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration