Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB WLAN Interface not found #11

Open
batousik opened this issue Sep 17, 2019 · 5 comments
Open

USB WLAN Interface not found #11

batousik opened this issue Sep 17, 2019 · 5 comments

Comments

@batousik
Copy link

Trying to start ap on an rtl8812au which is connected by usb.

cat: /sys/class/net/enx6023a401494d/phy80211/name: No such file or directory
[INFO] Architecture: x86_64
[INFO] Number of physical wireless interfaces connected: 1
[INFO] Docker image fgg89/docker-ap not found
[+] Building the image fgg89/docker-ap (Grab a coffee...)
sha256:8aabbfaf3d20444c8ebd702b2d30100d96a26331df1d69c624cb371186f8fa81
[INFO] Unblocking wifi and setting enx6023a401494d up
[INFO] Found WLAN config file
[INFO] SSID: DockerAP
[+] Generating hostapd.conf
[+] Generating dnsmasq.conf
[+] Starting the docker container with name ap-container
command failed: No such file or directory (-2)
[+] Configuring enx6023a401494d with IP address 192.168.7.1
Device "enx6023a401494d" does not exist.
Cannot find device "enx6023a401494d"
Cannot find device "enx6023a401494d"
[+] Adding natting rule to iptables (container)
[+] Enabling IP forwarding (container)
[+] Starting hostapd and dnsmasq in the docker container ap-container
/sys/class/net/enx6023a401494d  ls -la
total 0
drwxr-xr-x  6 root root    0 сен 18 00:37 .
drwxr-xr-x  3 root root    0 сен 18 00:37 ..
-r--r--r--  1 root root 4096 сен 18 00:37 addr_assign_type
-r--r--r--  1 root root 4096 сен 18 00:37 address
-r--r--r--  1 root root 4096 сен 18 00:58 addr_len
-r--r--r--  1 root root 4096 сен 18 00:58 broadcast
-rw-r--r--  1 root root 4096 сен 18 00:58 carrier
-r--r--r--  1 root root 4096 сен 18 00:58 carrier_changes
-r--r--r--  1 root root 4096 сен 18 00:58 carrier_down_count
-r--r--r--  1 root root 4096 сен 18 00:58 carrier_up_count
lrwxrwxrwx  1 root root    0 сен 18 00:37 device -> ../../../1-3:1.0
-r--r--r--  1 root root 4096 сен 18 00:37 dev_id
-r--r--r--  1 root root 4096 сен 18 00:37 dev_port
-r--r--r--  1 root root 4096 сен 18 00:58 dormant
-r--r--r--  1 root root 4096 сен 18 00:58 duplex
-rw-r--r--  1 root root 4096 сен 18 00:58 flags
-rw-r--r--  1 root root 4096 сен 18 00:58 gro_flush_timeout
-rw-r--r--  1 root root 4096 сен 18 00:58 ifalias
-r--r--r--  1 root root 4096 сен 18 00:37 ifindex
-r--r--r--  1 root root 4096 сен 18 00:37 iflink
-r--r--r--  1 root root 4096 сен 18 00:58 link_mode
-rw-r--r--  1 root root 4096 сен 18 00:58 mtu
-r--r--r--  1 root root 4096 сен 18 00:37 name_assign_type
-rw-r--r--  1 root root 4096 сен 18 00:58 netdev_group
-r--r--r--  1 root root 4096 сен 18 00:58 operstate
-r--r--r--  1 root root 4096 сен 18 00:37 phys_port_id
-r--r--r--  1 root root 4096 сен 18 00:37 phys_port_name
-r--r--r--  1 root root 4096 сен 18 00:58 phys_switch_id
drwxr-xr-x  2 root root    0 сен 18 00:58 power
-rw-r--r--  1 root root 4096 сен 18 00:58 proto_down
drwxr-xr-x 10 root root    0 сен 18 00:58 queues
-r--r--r--  1 root root 4096 сен 18 00:58 speed
drwxr-xr-x  2 root root    0 сен 18 00:58 statistics
lrwxrwxrwx  1 root root    0 сен 18 00:58 subsystem -> ../../../../../../../../class/net
-rw-r--r--  1 root root 4096 сен 18 00:58 tx_queue_len
-r--r--r--  1 root root 4096 сен 18 00:37 type
-rw-r--r--  1 root root 4096 сен 18 00:37 uevent
drwxr-xr-x  2 root root    0 сен 18 00:58 wireless
@fgg89
Copy link
Owner

fgg89 commented Sep 21, 2019

Hi @batousik

It seems the name of the interface must be elsewhere. Please share the content of /sys/class/net/enx6023a401494d/

@batousik
Copy link
Author

Already did

@fgg89
Copy link
Owner

fgg89 commented Oct 16, 2019

Usually naming such as "enx..." is not for wireless interfaces but rather eth.

Can you please post the output of "iw dev"?

@batousik
Copy link
Author

I was running windows 10, now im on linux.

Do you want iw dev inside the container?

this is the output from the linux host machine


	Unnamed/non-netdev interface
		wdev 0x2
		addr 9c:b6:d0:6a:37:e1
		type P2P-device
		txpower 0.00 dBm

@fgg89
Copy link
Owner

fgg89 commented Oct 20, 2019

This script is only meant to work under Linux.

It seems the system doesn't recognize properly the wireless interface. The output below is how it should look like:

phy#1
	Interface wlx00c0ca821833
		ifindex 4
		wdev 0x100000001
		addr 00:c0:ca:82:18:33
		type managed
		txpower 20.00 dBm

I would suggest trying to fix this or use another wireless interface.

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

No branches or pull requests

2 participants