AP not visible?

Posted by tom 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
tom
AP not visible?
January 18, 2016 04:46PM
Hi,

I've just finished an installation on my Raspberry Pi model B. I've used the Arch Linux image from the website, installed to an SD card. Everything is working fine except I can't see the wireless AP. I'm using a D-Link DWA-123 WIRELESS N 150 USB which should work out of the box.

Grepping the output of dmesg shows this for the Wifi adapter:
[    4.751308] usb 1-1.2: Product: GO-USB-N150 N Adapter
[    4.762096] usb 1-1.2: Manufacturer: Realtek
[    4.772050] usb 1-1.2: SerialNumber: D8FEE3565D08

Ifconfig shows this:
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.77.1  netmask 255.255.255.0  broadcast 192.168.77.255
        ether d8:fe:e3:56:5d:08  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 cool smiley
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 cool smiley
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

hostapd.conf looks like this:
[root@alarmpi ~]# cat /opt/piratebox/conf/hostapd.conf
interface=wlan0
driver=nl80211
ssid=PirateBox Share Freely
hw_mode=g
channel=1
auth_algs=1
ieee80211n=1

I've also tried it with this, still no joy:
[root@alarmpi ~]# cat /opt/piratebox/conf/hostapd.conf
interface=wlan0
driver=nl80211
ssid=PirateBox Share Freely
hw_mode=g
channel=1
#auth_algs=1
#ieee80211n=1

Here's the output from dmesg after a reboot:
[    8.416734] systemd[1]: Started Setup Virtual Console.
[    8.429400] usb 1-1.2.5.4: New USB device found, idVendor=2001, idProduct=3311
[    8.464958] usb 1-1.2.5.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.464972] usb 1-1.2.5.4: Product: GO-USB-N150 N Adapter
[    8.464982] usb 1-1.2.5.4: Manufacturer: Realtek
[    8.464991] usb 1-1.2.5.4: SerialNumber: D8FEE3565D08
[    8.585300] systemd[1]: Started Remount Root and Kernel File Systems.
[    8.991038] systemd[1]: Started Journal Service.
[   10.297227] systemd-journald[83]: Received request to flush runtime journal from PID 1
[   12.346892] random: nonblocking pool is initialized
[   12.489241] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   12.665746] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_A_CUT_1T1R_RomVer(0)
[   13.080040] Adding 262140k swap on /dev/mmcblk0p3.  Priority:-1 extents:1 across:262140k SSFS
[   13.363887] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null)
[   13.415241] usbcore: registered new interface driver r8188eu
[   13.929523] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   20.845412] MAC Address = d8:fe:e3:56:5d:08
[   20.875017] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.886214] cfg80211: Calling CRDA to update world regulatory domain
[   64.550998] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   64.561135] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   66.083888] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   66.091991] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

The eth0 line there is where I manually configured up the onboard LAN. It's successfully broadcasting it's DLNA capabilities via wired ethernet, and I can access the web interface.

However I see no Wifi AP being broadcast, no matter what I do.

Any ideas?

Thanks,
TOM
tom
Re: AP not visible?
January 18, 2016 04:55PM
Sorry, should have struggled on a bit more and paid more attention! The clue was in the dmesg output:
[   13.415241] usbcore: registered new interface driver r8188eu

This USB stick doesn't fully work out of the box, and needs the rtl871xdrv driver as detailed on [forum.piratebox.cc]

Once I'd configured hostapd.conf as follows:
[root@alarmpi ~]# cat /opt/piratebox/conf/hostapd.conf
interface=wlan0
driver=rtl871xdrv 
ssid=PirateBox Share Freely
hw_mode=g
channel=1
auth_algs=1
ieee80211n=1

And rebooted it all sprung into life!

Thanks,
TOM
Re: AP not visible?
January 20, 2016 08:49PM
..and you answered your own question before I could get to you. Also, commenting out the driver would have worked too. At least it did for me.
#driver=nl80211