LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-12-2011, 05:44 AM   #1
OmidPLUS
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
hostapd


Hi, I'm trying to setup Access Point on my laptop using hostapd
I'm using Debian squeeze and using RT2860STA.
this is my hostapd config file:
Code:
interface=wlan0
driver=nl80211
ssid=test
auth_algs=1
channel=1
wpa=3
wpa_passphrase=*********
ignore_broadcast_ssid=0
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
macaddr_acl=0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
but AP does not start and i just get following error:
Code:
root@debian:~# /etc/init.d/hostapd restart
Stopping advanced IEEE 802.11 management: hostapd.
Starting advanced IEEE 802.11 management: hostapdrmdir[ctrl_interface]: No such file or directory
 (warning).
and also I see this in syslog for the first start of hostapd after reboot:
Code:
rt28xx_close call RT28xxPciAsicRadioOff fail!
I also cannot set mode to master:
Code:
root@debian:~# iwconfig wlan0 mode master 
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Invalid argument.
any help would be appreciated!
 
Old 07-12-2011, 12:55 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

My first impression is that your card doesn't support master mode. Which driver are you using? If its te RT2860sta from staging, then this doesn't surprise me, and I advise you to change to the rt2x00 drivers (rt2800usb or rt2800pci, depending on the type of your card)

Serafean
 
Old 07-17-2011, 10:28 AM   #3
OmidPLUS
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I know that the driver does not support master mode, but I cannot use rt2x00
tried modprobe -r rt2860sta and modprobe rt2x00pci
but after doing so, wlan is not recognized anymore, any suggestions?

forgot to mention, my hardware is "RaLink RT3090 Wireless 802.11n 1T/1R PCIe"

Last edited by OmidPLUS; 07-17-2011 at 10:43 AM.
 
Old 07-17-2011, 03:03 PM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
I have this precise card in my laptop, and it works pretty good with the rt2x00 drivers (kernel 2.6.39). The precise module you need to load is called rt2800pci. Check your distro's (what is your distro btw?) module blacklist (usually /etc/modprobe.d/[filename].conf). if you find a line
Code:
blacklist rt2800pci
replace it with blacklist rt2860sta.

Serafean
 
Old 07-20-2011, 05:52 PM   #5
OmidPLUS
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply, as I mentioned, I use Debian Squeeze
There is no blacklist rt2800pci in modprobe configuration, and by blacklisting rt2860sta my hardware wont be recognized any more

also I don't have rt2800pci module:
Code:
root@debian:~# modinfo rt2800pci
ERROR: modinfo: could not find module rt2800pci
something to note is that I have rt2800usb and also rt2x00pci but not rt2800pci!
 
Old 07-20-2011, 06:29 PM   #6
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Sorry, I hadn't realized Debian Squeeze had such an old kernel... it uses the 2.6.32 kernel (if I found correctly). To check that, you can run "uname -r".

the easiest way it to install compat-wireless. Unfortunately, it isn't a package. You'll need to install the build-essentials and linux-headers packages. Then download the compat-wireless sources, and follow the instructions (download link on the same page). The page I linked is for 'stable' sources, I suggest you download what will be included with the 3.0 kernel.

Hope this finally gets you up and running.

Serafean
 
Old 07-23-2011, 05:10 PM   #7
OmidPLUS
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, my problem is solved now
although it has some problems, but it does what I need, thanks for your help
 
Old 03-17-2012, 07:58 AM   #8
Hackeron
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by OmidPLUS View Post
Thanks, my problem is solved now
although it has some problems, but it does what I need, thanks for your help
Can you please provide details how you resolved the problem? - Also are you able to put the interface into Master mode?

I'm getting:

Code:
root@FitPC4:~# iwconfig ra0 mode master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ra0 ; Invalid argument.
 
  


Reply



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
Unable to compile hostapd tkdlady Linux - Wireless Networking 4 04-10-2011 07:59 PM
hostapd refuses to compile gregnorc Linux - Wireless Networking 8 11-18-2009 07:14 AM
hostapd not going into master mode gregnorc Linux - Wireless Networking 10 09-16-2009 01:31 PM
How to configure hostapd.conf? alex2002 Linux - Wireless Networking 0 07-14-2009 01:43 PM
hostapd problem simonmcquire Linux - Networking 0 06-21-2009 07:24 AM

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

All times are GMT -5. The time now is 09:05 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