3DS won't find hostapd hotspot

Discussion in '3DS - Nintendo Network' started by mid-kid, Nov 10, 2014.

  1. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    I'm trying to create a hotspot with my computer for my 3DS.
    OS is Funtoo, with dnsmasq 2.72 and hostapd 2.0.
    I think I've set it up correctly, but my 3DS can't see the hotspot, while my laptop can, and connection works.
    Configuring the network manually on the 3DS doesn't work either.
    An ethernet cable is connected to the router, and I've got a USB dongle (Realtek RTL8188CUS) to create the hotspot.

    These are my configuration files.

    dnsmasq.conf:
    Code:
    no-resolv
    interface=wlan0
    dhcp-range=10.0.0.3,10.0.0.20,12h
    server=8.8.8.8
    server=8.8.4.4
    hostapd.conf:
    Code:
    interface=wlan0
    driver=nl80211
    ssid=waffles
    hw_mode=g
    channel=1
    wpa=0
    start.sh:
    Code:
    #!/bin/bash
    set -e
     
    ifconfig wlan0 down
    ifconfig wlan0 up 10.0.0.1 netmask 255.255.255.0
    sleep 2
     
    dnsmasq -C ./dnsmasq.conf
     
    iptables --flush
    iptables --table nat --flush
    iptables --delete-chain
    iptables --table nat --delete-chain
    iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
    iptables --append FORWARD --in-interface wlan0 -j ACCEPT
     
    echo 1 > /proc/sys/net/ipv4/ip_forward
     
    hostapd ./hostapd.conf -d
    killall dnsmasq
    I hope somebody can point out where I went wrong.
     
  2. Essometer

    Essometer GBAtemp Regular

    Member
    298
    204
    Oct 22, 2010
    Germany
    Enger
    The 3DS should support b and g mode, but try the configfile with hw_mode=b.
     
  3. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    Thanks for the quick reply, but my 3DS can't find the AP with that mode either.
     
  4. Essometer

    Essometer GBAtemp Regular

    Member
    298
    204
    Oct 22, 2010
    Germany
    Enger
    Maybe try another driver? rt1871xdrv should work as well with the chipset.
    I think the source of the problem is the hostapd config.
     
    mid-kid likes this.
  5. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    Many thanks to you, dear sir. This method worked.

    Here's what I did:
    I downloaded hostapd 2.2 and followed the installation instructions for the driver. (I left the source and compiled files under the hostapd-2.2 directory, as can be seen in start.sh, soon to follow)
    Next, I followed the installation instructions for the kernel module. (Keep in mind where make installed the module in case you want to remove it.).
    I did "rmmod <module>" for every module in this list and their dependencies, and modprobed the recently installed module.
    Then, I altered the configurations a bit:

    hostapd.conf:
    Code:
    interface=wlan0
    driver=rtl871xdrv
    device_name=RTL8192CU
    manufacturer=Realtek
    ssid=waffles
    hw_mode=g
    ieee80211n=1
    channel=1
    wpa=0
    start.sh:
    Code:
    Line 19: ./hostapd-2.2/hostapd/hostapd ./hostapd.conf -d
    Now the hotspot can be seen by the 3DS.