Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-05-2018, 04:19 AM   #1
LQ Newbie
Registered: Apr 2013
Posts: 21

Rep: Reputation: Disabled
rtl8192cu WIFI AP

Hello there,
I am using the PocketBeagle platform with this USB dongle.

What I am trying to do is to create a wifi access point with DHCP. To do that, I am following this tutorial.

The problem is I am not able to see the wifi network. I dont know why doesnt it work. Here I place my files configs:

debian@beaglebone:~$ dmesg | grep usb
[    2.277022] usbcore: registered new interface driver usbhid
[    2.277068] usbhid: USB HID core driver
[    2.596779] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[    2.726203] usb 2-1: New USB device found, idVendor=0bda, idProduct=8178
[    2.726228] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.726239] usb 2-1: Product: 802.11n WLAN Adapter
[    2.726249] usb 2-1: Manufacturer: Realtek
[    2.726258] usb 2-1: SerialNumber: 00e04c000001
[   26.511403] usb0: HOST MAC 60:64:05:f4:5a:9a
[   26.513979] usb0: MAC 60:64:05:f4:5a:9b
[   26.523749] usb1: HOST MAC 60:64:05:f4:5a:9d
[   26.532973] usb1: MAC 60:64:05:f4:5a:9e
[   27.411053] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[   44.526194] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[   44.594130] usbcore: registered new interface driver rtl8192cu

ieee80211n=1          # 802.11n support
wmm_enabled=1         # QoS support
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

##connman: ethX static config
#connmanctl services
#Using the appropriate ethernet service, tell connman to setup a static IP address for that service:
#sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> <gateway> --nameservers <dns_server>

##connman: WiFi
#connmanctl> tether wifi off
#connmanctl> enable wifi
#connmanctl> scan wifi
#connmanctl> services
#connmanctl> agent on
#connmanctl> connect wifi_*_managed_psk
#connmanctl> quit

# Ethernet/RNDIS gadget (g_ether)
# Used by: /opt/scripts/boot/
iface usb0 inet static

iface wlan0 inet static

up iptables-restore < /etc/iptables.ipv4.nat
# Sample udhcpd configuration file (/etc/udhcpd.conf)

# The start and end of the IP lease block

start     #default:
end      #default:

# The interface that udhcpd will use

interface       wlan0           #default: eth0

# The maximim number of leases (includes addressesd reserved
# by OFFER's, DECLINE's, and ARP conficts

#max_leases     254             #default: 254

# If remaining is true (default), udhcpd will store the time
# remaining for each lease in the udhcpd leases file. This is
# for embedded systems that cannot keep time between reboots.
# If you set remaining to no, the absolute time that the lease
# expires at will be stored in the dhcpd.leases file.

remaining       yes             #default: yes

# The time period at which udhcpd will write out a dhcpd.leases
# file. If this is 0, udhcpd will never automatically write a
# lease file. (specified in seconds)

#auto_time      7200            #default: 7200 (2 hours)

# The amount of time that an IP will be reserved (leased) for if a
# DHCP decline message is received (seconds).

#decline_time   3600            #default: 3600 (1 hour)

# The amount of time that an IP will be reserved (leased) for if an
# ARP conflct occurs. (seconds

#conflict_time  3600            #default: 3600 (1 hour)

# How long an offered address is reserved (leased) in seconds

#offer_time     60              #default: 60 (1 minute)

# If a lease to be given is below this value, the full lease time is
# instead used (seconds).

#min_lease      60              #defult: 60

# The location of the leases file

#lease_file     /var/lib/misc/udhcpd.leases     #defualt: /var/lib/misc/udhcpd.leases

# The location of the pid file
#pidfile        /var/run/     #default: /var/run/

# Everytime udhcpd writes a leases file, the below script will be called.
# Useful for writing the lease file to flash every few hours.

#notify_file                            #default: (no script)

#notify_file    dumpleases      # <--- useful for debugging

# The following are bootp specific options, setable by udhcpd.

#siaddr            #default:

#sname          zorak                   #default: (none)

#boot_file      /var/nfs_root           #default: (none)

# The remainer of options are DHCP options and can be specifed with the
# keyword 'opt' or 'option'. If an option can take multiple items, such
# as the dns option, they can be listed on the same line, or multiple
# lines. The only option with a default is 'lease'.

opt     dns
opt     subnet
opt     router
#opt    wins
#option dns   # appened to above DNS servers for a total of 3
#option domain  local
opt     lease   864000          # 10 days of seconds

# Currently supported options, for more info, see options.c
#opt subnet
#opt timezone
#opt router
#opt timesrv
#opt namesrv
#opt dns
#opt logsrv
#opt cookiesrv
#opt lprsrv
#opt bootsize
#opt domain
#opt swapsrv
#opt rootpath
#opt ipttl
#opt mtu
#opt broadcast
#opt wins
#opt lease
#opt ntpsrv
#opt tftp
#opt bootfile
#opt wpad

# Static leases map
#static_lease 00:60:08:11:CE:4E
#static_lease 00:60:08:11:CE:3E
# Comment the following line to enable

# Options to pass to busybox' udhcpd.
# -S    Log to syslog
# -f    run in foreground

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet  netmask
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 322  bytes 24098 (23.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 322  bytes 24098 (23.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::6264:5ff:fef4:5a9b  prefixlen 64  scopeid 0x20<link>
        ether 60:64:05:f4:5a:9b  txqueuelen 1000  (Ethernet)
        RX packets 2014  bytes 220538 (215.3 KiB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 1185  bytes 271803 (265.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        ether 60:64:05:f4:5a:9e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::e2b9:4dff:fe19:3e07  prefixlen 64  scopeid 0x20<link>
        ether e0:b9:4d:19:3e:07  txqueuelen 1000  (Ethernet)
        RX packets 8031  bytes 803363 (784.5 KiB)
        RX errors 0  dropped 252  overruns 0  frame 0
        TX packets 3458  bytes 367340 (358.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
I would really appreciate all help regarding this.
Old 01-09-2018, 03:37 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,823

Rep: Reputation: 157Reputation: 157
If statis IP is used, can WiFi client ping to default gateway?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek rtl8192cu driver Cimaron Linux - Wireless Networking 7 02-14-2016 07:26 PM
[SOLVED] Using rtl8192cu.sys nix84 Linux - Networking 3 06-24-2015 01:25 PM
compiling rtl8192CU proprietary drivers cristi92b Linux - Newbie 4 07-28-2013 04:44 AM
Wireless: rtl8192cu: txpower ???? MastaBoombastic Linux - Networking 1 05-26-2011 07:02 AM
Planex(rtl8192CU) usb wifi dongle trouble Adol Gentoo 5 05-19-2011 06:09 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration