Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

ERROR: 'wlan0' is not a WiFi interface #215

Closed
zhangela opened this issue Nov 15, 2016 · 17 comments
Closed

ERROR: 'wlan0' is not a WiFi interface #215

zhangela opened this issue Nov 15, 2016 · 17 comments

Comments

@zhangela
Copy link

zhangela commented Nov 15, 2016

Got this output when running create_ap:

create_ap wlan0 eth0 Kathmandu
ERROR: 'wlan0' is not a WiFi interface

Here's my iwconfig output, what arguments should I be passing in?

$iwconfig
wlp3s0    IEEE 802.11abgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
lo        no wireless extensions.

enp13s0   no wireless extensions.
@NicoHood
Copy link
Contributor

how about using wlp3s0 then?

@zhangela
Copy link
Author

$ceate_ap wlp3s0 wlps30 Kathmandu
ERROR: hostapd not found.

@NicoHood
Copy link
Contributor

you have not installed all dependencies. Please read the readme again or use a proper package for your OS.

@zhangela
Copy link
Author

Sorry! Installed all the dependencies and still seeing error.

$ sudo create_ap wlp3s0 wlp3s0 Kathmandu
Config dir: /tmp/create_ap.wlp3s0.conf.jZhRsOzs
PID: 13795
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual WiFi interface... command failed: Device or resource busy (-16)

ERROR: Maybe your WiFi adapter does not fully support virtual interfaces.
       Try again with --no-virt.


Doing cleanup.. done

@NicoHood
Copy link
Contributor

do what the error suggests

@zhangela
Copy link
Author

Tried that, didn't work either.

$ sudo create_ap --no-virt wlp3s0 wlp3s0 Kathmandu 
ERROR: You can not share your connection from the same interface if you are using --no-virt option.

@NicoHood
Copy link
Contributor

Maybe you should read the readme and the help page first. Please close this issue as this is not a problem of the software. I am not the maintainer of this software, but I suggest you to search help somewhere else and learn the linux basics, as this has nothing really to do with the software itself. Please read the error and try to solve your problem first. Everything is covered in the help pages anyways.

@zhangela
Copy link
Author

Just because I made 1 mistake earlier with forgetting to install the dependencies doesn't mean you get to be as condescending as you are.

I'm sorry if you or the maintainer built this for linux experts only, but I hope you do realize there are programmers out there who might not know everything in and out, and if you don't want people to file issues when they get stuck, maybe you should provide another channel to ask for help.

Also, let's be real, you are only being condescending right now because you have no idea why running it with --no-virt and without isn't working and you don't want to admit it.

Don't be a dick just because you are on the internet.

@NicoHood
Copy link
Contributor

You specified the wlan interface twice (that is waht the error clearly says). You need to use the wlan interface and then the ethernet interface. Thatswhy it is possibly not working.

@oblique
Copy link
Owner

oblique commented Nov 15, 2016

Give me the output of the following:

nmcli -v
iw list
iw dev

@zhangela
Copy link
Author

Thanks in advance for your help!

$ nmcli -v
nmcli tool, version 1.2.0
$ iw list
Wiphy phy3
    max # scan SSIDs: 10
    max scan IEs length: 2048 bytes
    Retry short limit: 7
    Retry long limit: 4
    Coverage class: 0 (up to 0m)
    Device supports roaming.
    Device supports T-DLS.
    Supported Ciphers:
        * WEP40 (00-0f-ac:1)
        * WEP104 (00-0f-ac:5)
        * TKIP (00-0f-ac:2)
        * CCMP (00-0f-ac:4)
        * CMAC (00-0f-ac:6)
    Available Antennas: TX 0 RX 0
    Supported interface modes:
         * IBSS
         * managed
         * AP
         * P2P-client
         * P2P-GO
         * P2P-device
    Band 1:
        Capabilities: 0x1062
            HT20/HT40
            Static SM Power Save
            RX HT20 SGI
            RX HT40 SGI
            No RX STBC
            Max AMSDU length: 3839 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 16 usec (0x07)
        HT TX/RX MCS rate indexes supported: 0-23
        Bitrates (non-HT):
            * 1.0 Mbps
            * 2.0 Mbps (short preamble supported)
            * 5.5 Mbps (short preamble supported)
            * 11.0 Mbps (short preamble supported)
            * 6.0 Mbps
            * 9.0 Mbps
            * 12.0 Mbps
            * 18.0 Mbps
            * 24.0 Mbps
            * 36.0 Mbps
            * 48.0 Mbps
            * 54.0 Mbps
        Frequencies:
            * 2412 MHz [1] (20.0 dBm)
            * 2417 MHz [2] (20.0 dBm)
            * 2422 MHz [3] (20.0 dBm)
            * 2427 MHz [4] (20.0 dBm)
            * 2432 MHz [5] (20.0 dBm)
            * 2437 MHz [6] (20.0 dBm)
            * 2442 MHz [7] (20.0 dBm)
            * 2447 MHz [8] (20.0 dBm)
            * 2452 MHz [9] (20.0 dBm)
            * 2457 MHz [10] (20.0 dBm)
            * 2462 MHz [11] (20.0 dBm)
            * 2467 MHz [12] (disabled)
            * 2472 MHz [13] (disabled)
            * 2484 MHz [14] (disabled)
    Band 2:
        Capabilities: 0x1062
            HT20/HT40
            Static SM Power Save
            RX HT20 SGI
            RX HT40 SGI
            No RX STBC
            Max AMSDU length: 3839 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 16 usec (0x07)
        HT TX/RX MCS rate indexes supported: 0-23
        VHT Capabilities (0x00000020):
            Max MPDU length: 3895
            Supported Channel Width: neither 160 nor 80+80
            short GI (80 MHz)
        VHT RX MCS set:
            1 streams: MCS 0-9
            2 streams: MCS 0-9
            3 streams: MCS 0-9
            4 streams: not supported
            5 streams: not supported
            6 streams: not supported
            7 streams: not supported
            8 streams: not supported
        VHT RX highest supported: 0 Mbps
        VHT TX MCS set:
            1 streams: MCS 0-9
            2 streams: MCS 0-9
            3 streams: MCS 0-9
            4 streams: not supported
            5 streams: not supported
            6 streams: not supported
            7 streams: not supported
            8 streams: not supported
        VHT TX highest supported: 0 Mbps
        Bitrates (non-HT):
            * 6.0 Mbps
            * 9.0 Mbps
            * 12.0 Mbps
            * 18.0 Mbps
            * 24.0 Mbps
            * 36.0 Mbps
            * 48.0 Mbps
            * 54.0 Mbps
        Frequencies:
            * 5170 MHz [34] (disabled)
            * 5180 MHz [36] (20.0 dBm)
            * 5190 MHz [38] (disabled)
            * 5200 MHz [40] (20.0 dBm)
            * 5210 MHz [42] (disabled)
            * 5220 MHz [44] (20.0 dBm)
            * 5230 MHz [46] (disabled)
            * 5240 MHz [48] (20.0 dBm)
            * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
              DFS state: usable (for 12139 sec)
              DFS CAC time: 60000 ms
            * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
              DFS state: usable (for 12139 sec)
              DFS CAC time: 60000 ms
            * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
              DFS state: usable (for 12139 sec)
              DFS CAC time: 60000 ms
            * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
              DFS state: usable (for 12139 sec)
              DFS CAC time: 60000 ms
            * 5500 MHz [100] (disabled)
            * 5520 MHz [104] (disabled)
            * 5540 MHz [108] (disabled)
            * 5560 MHz [112] (disabled)
            * 5580 MHz [116] (disabled)
            * 5600 MHz [120] (disabled)
            * 5620 MHz [124] (disabled)
            * 5640 MHz [128] (disabled)
            * 5660 MHz [132] (disabled)
            * 5680 MHz [136] (disabled)
            * 5700 MHz [140] (disabled)
            * 5720 MHz [144] (disabled)
            * 5745 MHz [149] (20.0 dBm)
            * 5765 MHz [153] (20.0 dBm)
            * 5785 MHz [157] (20.0 dBm)
            * 5805 MHz [161] (20.0 dBm)
            * 5825 MHz [165] (20.0 dBm) (no IR)
    Supported commands:
         * new_interface
         * set_interface
         * new_key
         * start_ap
         * join_ibss
         * set_pmksa
         * del_pmksa
         * flush_pmksa
         * remain_on_channel
         * frame
         * set_channel
         * tdls_oper
         * start_p2p_device
         * crit_protocol_start
         * crit_protocol_stop
         * connect
         * disconnect
    Supported TX frame types:
         * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    Supported RX frame types:
         * managed: 0x40 0xd0
         * P2P-client: 0x40 0xd0
         * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
         * P2P-device: 0x40 0xd0
    WoWLAN support:
         * wake up on disconnect
         * wake up on magic packet
         * wake up on pattern match, up to 8 patterns of 1-128 bytes,
           maximum packet offset 1500 bytes
    software interface modes (can always be added):
    valid interface combinations:
         * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
           total <= 3, #channels <= 2
         * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
           total <= 4, #channels <= 1
         * #{ AP } <= 4,
           total <= 4, #channels <= 1, STA/AP BI must match
    Device supports scan flush.
$ iw dev
phy#3
    Interface wlp3s0
        ifindex 5
        wdev 0x300000001
        addr ac:bc:32:9c:36:45
        type managed

@oblique
Copy link
Owner

oblique commented Nov 16, 2016

What is the brand and model of your adapter? It has similar interface combinations with the Raspberry PI 3 (see issue #203). Probably your adapter doesn't support virtual interfaces. I will investigate this issue with rpi3 the next week, but the fix will be only on the ruby branch, since I'm rewriting the project.

For now you can only share with different interfaces. Either from your ethernet adapter or with another wifi adapter.

To share via ethernet adapter do:

sudo create_ap --no-virt wlp3s0 enp13s0 MyAP

This issue will remain close since it's duplicate of #203.

PS: Keep in mind that this tool is created in our free time in our busy schedule. We see it as a hobby.

@zhangela
Copy link
Author

Thanks for your help!

This is ubuntu installed on a macbook pro, and I think this is my wireless card:

03:00.0 Network controller: Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC (rev 01)
Subsystem: Apple Inc. BCM43602 802.11ac Wireless LAN SoC
Kernel driver in use: brcmfmac
Kernel modules: brcmfmac

@oblique
Copy link
Owner

oblique commented Nov 16, 2016

Thanks. I will buy a Broadcom usb adapter soon and hopefully I will find a solution for this.

@manashg
Copy link

manashg commented Aug 27, 2018

i have the same issue :( i use ubuntu 18.04
outputs:
iw dev
phy#0
Interface wlp3s0
ifindex 3
wdev 0x1
addr d8:5d:e2:d9:ae:7f
type managed
txpower 200.00 dBm

iw list
Wiphy phy0
max # scan SSIDs: 1
max scan IEs length: 0 bytes
max # sched scan SSIDs: 0
max # match sets: 0
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed

@moklgy
Copy link

moklgy commented Jul 26, 2019

i think u have not open the wlan button

@drawsta
Copy link

drawsta commented Aug 8, 2019

WIFI_IFACE=wlp2s0
INTERNET_IFACE=enp1s0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants