Could not set interface mon.wlan0 flags: No such file or directory

user xxxiter
Tue Feb 21 20:01:07 PST 2012


I have tried version from git with debug key. May be this get an 
additional info?:
    sudo ./hostapd -dd /home/user/hostapd-minimal.conf
random: Trying to read entropy from /dev/random
Configuration file: /home/user/hostapd-minimal.conf
nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 3
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Setup AP - device_ap_sme=0 use_monitor=1
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=6
nl80211: Add own interface ifindex 6
Could not set interface mon.wlan0 flags: No such file or directory
nl80211: Remove interface ifindex=6
nl80211: Failed to set interface wlan0 into AP mode
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x1f2d290
nl80211: Register frame type=0xd0 nl_handle=0x1f2d290
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 nl_handle=0x1f2d290
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Unsubscribe mgmt frames handle 0x1f2d290 (deinit)
nl80211 driver initialization failed.


* user <xxxiter at rambler.ru> [Mon, 20 Feb 2012 11:02:57 +0400]:
> I have read my W311M dongle supports WAP by using hostapd:
> https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M
>
> I have loaded module rt2800usb by applying this script:
> #!/bin/sh
> modprobe rt2800usb
> echo 148F 5370 > /sys/bus/usb/drivers/rt2800usb/new_id
>
> After that I get wlan0 interface:
> $ iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wlan0     IEEE 802.11bgn  Mode:Master  Tx-Power=0 dBm
>           Retry  long limit:7   RTS thr:off   Fragment thr:off
>           Power Management:on
>
> Then I have compiled (0.7.3) it and tried to run according to this
> manual:
> http://linuxwireless.org/en/users/Documentation/hostapd
>
> I stuck into this error:
>
> $ sudo ./hostapd ~/hostapd-minimal.conf
> Configuration file: /home/user/hostapd-minimal.conf
> Could not set interface mon.wlan0 flags: No such file or directory
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.
> ELOOP: remaining socket: sock=4 eloop_data=0xb670d0 user_data=0xb67790
> handler=0x42b750
> ELOOP: remaining socket: sock=6 eloop_data=0xb69cb0 user_data=(nil)
> handler=0x434460
>
> The content of hostapd-minimal.conf is:
> #change wlan0 to your wireless device
> interface=wlan0
> driver=nl80211
> ssid=test
> channel=1
>
> Ubuntu 10.04 kernel 3.0.0-15-generic #26~lucid1-Ubuntu SMP Wed Jan 25
> 15:37:10 UTC 2012 x86_64 GNU/Linux
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap




More information about the Hostap mailing list