LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   hostapd (http://www.linuxquestions.org/questions/linux-wireless-networking-41/hostapd-891262/)

OmidPLUS 07-12-2011 06:44 AM

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!

serafean 07-12-2011 01:55 PM

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

OmidPLUS 07-17-2011 11:28 AM

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"

serafean 07-17-2011 04:03 PM

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

OmidPLUS 07-20-2011 06:52 PM

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!

serafean 07-20-2011 07:29 PM

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

OmidPLUS 07-23-2011 06:10 PM

Thanks, my problem is solved now
although it has some problems, but it does what I need, thanks for your help

Hackeron 03-17-2012 08:58 AM

Quote:

Originally Posted by OmidPLUS (Post 4423487)
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.



All times are GMT -5. The time now is 10:03 PM.