Ubuntu Networking :: Hostapd - Failed To Set Interface WLAN0 To Master Mode
May 15, 2011
I try to set-up an Access point using ubuntu 11.04. I am using the minimal configuration file from [URL] together with a TP-Link TL-WN422G (Atheros chipset). I've installed the linux-backports-net-natty-generic drivers. But when trying to start hostapd I always get this output:
Code:
# hostapd -dd -K test.conf
Configuration file: test.conf
Failed to set interface wlan0 to master mode.
nl80211 driver initialization failed.
wlan0: Unable to setup interface.
ELOOP: remaining socket: sock=5 eloop_data=0x9b9440 user_data=(nil) handler=0x43d980
I have also disabled the network-manager for this device by adding this to /etc/network/interfaces:
Code:
iface wlan0 inet manual
cat test.conf:
Code:
interface=wlan0
driver=nl80211
ssid=test
channel=1
lsusb says:
Code:
...
Bus 001 Device 005: ID 0cf3:1006 Atheros Communications, Inc. TP-Link TL-WN422G v2 802.11g [Atheros AR9271]
...
lsmo: .....
Code:
Linux magnet 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
View 1 Replies
ADVERTISEMENT
Feb 3, 2011
what i want to do is
client <--> wlan0 <--> computer <--> eth0 <--> internet
i have 2 network connections eth0 wired connected to internet wlan0 wireless (work fine) i have installed hostapd with madwifi and so on oki when i run hostapd the clients see the hot spot oki clients connect with wpa oki network manager run at demand not automatic (keep it for internet help) now i'm a bit lost what do i need is wlan0 give the client an ip (dhcp demand) create a bridge between wlan0 and eth0 steps to create a permanent bridge between wlan0 and eth0
View 2 Replies
View Related
Feb 22, 2011
I have setup hostapd and a bridged setup with br0 bridging eth0 and wlan0. The setup works but unfortunately not on bootup. The reason is that the bridge can't add iface wlan0 because it is down for some reason at this time. When hostapd is running (after the network script) the interface is up and can be added to bridge via
[Code]....
View 2 Replies
View Related
Jun 6, 2010
Also having this problem on Ubuntu 10.04.If I do "iwlist scan" I can pick up networks on wlan0:
Code:
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
[code]....
View 2 Replies
View Related
May 25, 2011
i am wanting to turn my Debian box into a wireless AP, but for some unknown reason the wireless card won't switch into master mode when i run the command #iwconfig wlan1 mode master i get this Error for wireless request "Set Mode" (8B06): SET failed on device wlan1 ; Invalid argument. what does this mean and what do i need to configure/install to get it to work my wirless card is supported i checked it's a zydas chipset using the zd1211rw driver SMC EZ Connect SMCWUSB-G [URL]
View 14 Replies
View Related
May 19, 2010
I've looked everywhere and tried everything. All I want to do is set up a static ip with my wireless network interface wlan0.
View 5 Replies
View Related
Aug 6, 2010
Code:
root@Atlantis:~# iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
root@Atlantis:~# iwconfig wlan1 mode master
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan1 ; Invalid argument.
All other modes except secondary work fine.
The wireless cards are both PCI, a Netgear WG311v1 and a Linksys WMP54Gv4.1, though I'm not sure which is which.
View 5 Replies
View Related
Jan 31, 2010
When I try to set my Realtek Semiconductor Corp. RTL8187 Wireless Adapter to master mode I get the following error.
Code:
$ sudo iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument. Is this the result of a driver or hardware incapability?
View 4 Replies
View Related
Apr 9, 2010
Anybody have any idea that how to set the ath9k in master mode in fedora 11. I am unable to set the same.
I am using the D-Link DWA556 card using the kernel built in ath9k.Find below the output I got while setting up it in master mode sudo iwconfig wlan0 mode master.Error for wireless request "Set Mode" (8B06):SET failed on device wlan0 ; Invalid argument.Does that mean that master mode is not supported?Also Want the information if there is any separate community or development group for ath9k development and download the source of same except linuxwireless.com.
View 1 Replies
View Related
May 20, 2009
I have managed to configure a wireles PCI card on CentOS 5.3 and it seems to work fine. It is a off brand (Hercules) with a Ralink RT61 chipset. I installed the most current driver (RT2501PCI/mPCI/CB(RT61:RT2561/RT2561S/RT2661) from the rt2x00 Open Source Project. I now have a question that might be very simple for one or more of you to answer. When I issue the command "shutdown -h now", the machine starts to come down and brings down eth0 cleanly, but when it attempts to bring down wlan0, the machine hangs and never brings down the interface OR powers off the box. The only way to complete the power off is to "hard" power off the machine.
View 7 Replies
View Related
Apr 24, 2010
I am running ubuntu 9.04 in my laptop. I want to change the wireless card mode of my laptop to master mode so that it can work like a access point.
View 1 Replies
View Related
May 7, 2010
I am using ubuntu 9.10 on my desktop having a belkin wireless usb card. I want to change the mode of it to master mode. How can I do it?
View 3 Replies
View Related
Mar 12, 2011
I'm running Ubuntu 10.10 and try to get my wifi to work in master mode. The dongle is a Asus 167g v3 and I'm using the rtl8192SU driver. I can connect to a network or put the dongle in Ad-hoc mode without a problem. It's when I try to put in master mode some problem occurs. When I do:
Code:
sudo iwconfig wlan1 essid test mode master
This is the output I'm getting:
Code:
wlan1 unassociated Nickname:"rtl_wifi"
Mode:Master Access Point: Not-Associated Sensitivity:0/0
[Code].....
The dongle is in master mode but it fails to assign a SSID. I also tried to set it up in /etc/network/interfaces but the result is always the same... No SSID
View 1 Replies
View Related
Sep 18, 2009
I am trying to get my wireless card working in master mode. I am running Jaunty server 2.6.28-11 x86_64. I have compiled hostapd with nl80211 enabled. The interface is using ath9k. I have tried to compile compat-wireless with this patch. However IEEE80211_IF_TYPE_AP was undefined along with IEEE80211_IF_TYPE_VLAN. In addition the latest version of compat-wireless needs to be patched for kernels < 2.6.31 with this. However when using this patch IRQ_WAKE_THREAD is still undefined.
I have got to this message:
Code:
$ sudo hostapd /home/jophish/.hostapd.conf
Configuration file: /home/jophish/.hostapd.conf
Failed to set interface wlan0 to master mode.
[code].....
View 1 Replies
View Related
Nov 8, 2010
I'm looking for a USB adapter with driver support for running the interface in master mode.
View 1 Replies
View Related
Jul 28, 2011
I've searched for too many days and nights so many information went through my head. I want to buy a usb wireless which support master mode. (not monitor mode) Now I'm interested in Alfa AWUS036NEH. I like it because it is small an have a long antenna strong 1000mW. signal. (AWUS036H is a little bit big for me) However from what i have read AWUS036NEH is not supported in master mode (softAP)(or may be supported but with hostapd, but again some forum said it doesn't support and some say it does... Totally confused.) -> Actually AWUS036NEH is not expensive but I don't want to invest in something i'm not sure about so I won't buy it until I really know if it works. So I switch to find out what is for sure
1. supported in master mode in Ubuntu
2. Have a long antenna (like 5" or something. I have no idea about hardware but I think longer antenna should send signal more further)
3. small (about normal USB size don't count antenna)
Sadly I only find Alfa AWUS036NEH the only option for me , the others has no brand. However TL-WN722N is what most likely to fit. Only it has a shorter antenna. Can i replace the antenna with a longer one (with some others brand) by myself? (TL-WN722N can use master mode in kernel 3.0 ? already ? some say it should but i've not seen one that stated clearly) Ahh I think the above is totally messed up. I will make long story short.
1. Is AWUS036H or AWUS036NEH support master mode in ubuntu ? (if yes with hostapd or something?)
2. Is TL-WN722N or TL-WN722NC can work in master mode in Ubuntu ? (if yes with hostapd or something?)
3.Can I replace the original antenna with a longer one ?(with other brand or same brand) Will the signal be stronger?
View 7 Replies
View Related
Jun 10, 2010
I got two issues with my wifi usb adapter:
1) it cannot see any networks around
2) i cannot setup it in master mode to use my PC as a router
As far as i can see, the device is recognized and the correct driver (rt73usb) is loaded. I was able to connect to a laptop somehow (the laptop could see other networks and the adapter's PC-to-PC network). I'd like to make it work as a router, i.e. share my internet connection (eth0) via wlan0. Here is what i have:
Code:
Ubuntu 10.04
Linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux
TP-Link TL-WN321G wifi usb adapter as seen as
Bus 001 Device 006: ID 148f:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter
$ iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:off/any
[Code]....
View 4 Replies
View Related
May 18, 2011
i try to install my d-link dwl-g520 h/w:A1 in master mode with madwifi drivers but:
$ lshw
*-network:1
description: Wireless interface
product: Atheros AR5001X+ Wireless Network Adapter
vendor: Atheros Communications Inc.
physical id: 5
bus info: pci@0000:00:05.0
[Code]...
View 1 Replies
View Related
May 20, 2010
after successfully configuring the dwa-552 to work in master mode in ubuntu 10.04 (ath9k driver) I ran some file transfer tests. The download speed is very good (~50mbps) but the upload speed spikes at about 10-20mbps for the first few KB and then it's nonexistent (0-1kbps). This only affects file transfers or otherwise bandwidth consuming processes. Normal web browsing or ssh is not affected. After running a speedtest of my internet connection which is routed through the AP I could upload to the internet with 1mbps which is my inet connection maximum so apparently this is not affected. Tried the same file transfers with netcat to eliminate any other factors and had the same problem. dmesg and hostapd debug did not report anything unusual
View 2 Replies
View Related
Apr 14, 2010
I have a thread started on the Slackware forum about the possibility of installing Slackware on an older P4 laptop. Well, it installed fine and most things are working, but I am experiencing one problem that I need to solve before I progress to working on other things.
I hope the mods will not consider this a double thread because it is a networking issue and the other thread was started about a different subject, and I thought there might be more networking specialists there (though everyone I meet on the Slack forum is very knowledgeable, this one has not been solved.)
I am trying to connect wireless with an RT2500 chipset, the correct module loads and the machine is connected to the network, but with a "failed" IP address (169.254.167.101). This also occurs with a wired connection. The exact error is:
Code:
err, wlan0: option 43 has zero length
failed to parse packet
It times out then assigns the failed IP address and connects to the network, but of course nothing works.
I use WPA psk and I have another laptop with the same configs and works perfectly with Slackware -current, so I followed the same routine to set this one up. When that didn't work, I backed up the existed /etc/rc.d/rc.inet1 and wpa_supplicant.conf, and copied the working files to the new setup. Same result.
There does not seem to be any information about this error either here on LQ, or on the net. I have certainly never encountered it before.
Because it connects with good signal strength, and because it also occurs with wired connections, I can only assume that it is related to WPA in some way. I have not reset the router because I have a number of other machines connected. All of the other machines work, and this one connects, so it is not hardware related.
View 14 Replies
View Related
Nov 15, 2009
I have a desktop that has a d-link DWL-520 wireless card, which was working under Windoze. Today I installed Centos 5.4 on the system , which went cleanly. I then used Network Configuration to set up the wireless card. I specified to use DHCP, set the SSID and authentication password. When I tried to activate the card I get these error messages
Error for wireless request "Set Mode" (8B06): SET failed on device wlan0 ; Operation not supported. Error for wireless request "Set Encode" (8B2A): SET failed on device wlan0 ; Invalid argument. Error for wireless request "Set Encode" (8B2A): SET failed on device wlan0 ; Invalid argument. Determining IP information for wlan0.
The hardware manager seems to have correctly identified the card and chipset, (Intersil Prism 2.5) and installed driver hostap_pci which came with the distro. This web site seems to suggest that this is the correct driver: [URL] searching forums I've found a few references to these errors, but they were from several years ago, and for different distros and cards. I did find a reference to using Network Manager to configure the card instead of Network Configuration. I started the NM service and configured a connection using it instead, but still no luck.
[Code]....
View 15 Replies
View Related
May 20, 2009
When I try to bring up my wi-fi PCI card (ifup wlan0 or ifconfig wlan0 up) my whole PC just hangs until I power it off.
I believe I have the right drivers, but cannot see what I am doing wrong.
I'd really prefer not to go down the ndiswrapper route.
Firstly, I can see the PCI card and the driver it is using :
Code:
[J@gx260-f10 ~]$ lspci -k
...
...
01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller (rev 20)
[Code]....
the PC just hangs for ever. No mouse movement, ctrl-alt-del, nothing.
I have downloaded a Linux driver from Realtek but it will not compile. I have the latest kernel-devel, headers, and gcc. I can post compiler errors if anybody would like. They're all apparently to do with missing parameters.
View 6 Replies
View Related
Nov 29, 2009
my wireless adapter isn' working. when i tried to /etc/init.d/network restart it says
RTNETLINK answers: No such file or directory Cannot enable interface wlan0. interface wlan0 is not up
what can i do ?
device: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
View 7 Replies
View Related
Jun 11, 2010
having trouble with my asus 1000 rt2860 wireless n card and WPA/PSK/WPA2 connections. Funky thing is it worked in the 2.26.32-21 kernel (iwconfig shows ra0 as the wireless interface), but when the kernel was updated and pushed through in the ubuntu updates to 2.26.32-22 the wireless card won't stay connected and iwconfig says wlan0 is the interface. I checked the proprietary drivers and they said that the driver for my card was active, but not in use. How do I use the ra0 instead of wlan0?
how do i use the driver that's listed as not being used? I'm having to boot up lucid with the older kernel now, it's annoying, lots of programs aren't running as expected as a result. I've tried manually installing the driver from the RaLink website as detailed in many other posts concerning this wireless card. It seems to work for some people, but not with me.
View 1 Replies
View Related
Feb 9, 2011
I'm a student who is working on a wireless research project. I have a madwifi driver for Atheros chipset on Debian Linux. With having the wireless interface get into monitor mode, I want to forward the captured packets from the wireless interface to the other Ethernet interface so that a different computer which is connected to this machine via Ethernet receives those packets. I checked that alll packets are received in the wireless interface using TCPDUMP. I tried to forward those packets with IPTABLES like 'iptables -p FORWARD -i ath0 -o eth2 -j ACCEPT' However, I couldn't see any packets forwarded to eth2 using TCPDUMP.
View 5 Replies
View Related
Mar 22, 2010
I've got a problem while accessing the /etc/sysconfig/network-scripts/ifcfg-wlan0 file, CLI's throwing: "Stale File Handle" - there's no access to this file. Problem is the same regardless wlan0 interface is up or down.
View 2 Replies
View Related
Feb 11, 2010
My Linux machine's all Ethernet ports are connected to Cisco 2960SCG switch. Linux machine is having two Ethernet cards. First one is using "e1000" Ethernet driver and the second one is with "nxge" Ethernet driver.
Problem is; I am successful while trying to delete VLAN interfaces over motherboard PCI Ethernet card, but if i try the same on other PCI card the following messages are coming,and soon system getting hanged.
Message from syslogd@ at Wed Feb 10 17:48:11 2010 ... localhost kernel: unregister_netdevice: waiting for eth5.390 to become free. Usage count = 4
Bofore using nxge based Ethernet card I used e1000 based only, for that also I had same problem.
[root@localhost ~]# ifconfig eth5.390
eth5.390 Link encap:Ethernet HWaddr 00:21:28:21:DB:D1
inet addr:192.168.155.4 Bcast:192.168.155.255 Mask:255.255.255.0
inet6 addr: fe80::221:28ff:fe21:dbd1/64 Scope:Link
[Code]....
View 4 Replies
View Related
Jan 6, 2010
I'm looking for a USB wifi which supports master mode, 11n modulation, 5GHz band (with master and ad-hoc support for this band) and has detachable antenna connector.
View 1 Replies
View Related
Aug 11, 2011
I have installed open suse 11.4, gnome but no luck with wireless settings so far. kernel version is iwl3945 here is stuff that i did but it says "scan is deprecated"
linux-1f6k:/home/rajbanul # dmesg | grep firmware
[ 7.249018] tg3 0000:18:00.0: vpd r/w failed. This is likely a firmware bug on this device. Contact the card vendor for a firmware update.
[code].....
View 3 Replies
View Related
May 19, 2011
I am looking for a 802.11n wireless card that Linux supports that can be dropped into AP/master mode.
I would prefer PCI, but USB would be tolerable, just not preferred.
View 2 Replies
View Related