Tutorial [HOW-TO] Have a homemade Streetpass Relay

  • Thread starter Thread starter dicamarques
  • Start date Start date
  • Views Views 2,174,539
  • Replies Replies 7,502
  • Likes Likes 27

What method you are using?

  • Linux

    Votes: 93 7.9%
  • Android

    Votes: 133 11.4%
  • Router

    Votes: 226 19.3%
  • Windows

    Votes: 426 36.4%
  • A pony with a wifi antenna O.o?

    Votes: 292 25.0%

  • Total voters
    1,170
Status
Not open for further replies.
Oh god but then i'll be nagged about it forever wouldn't I?

Thanks for the answer.

Not sure, mos probably it is possible to remove the downloaded update data with the 3DS data configuretion or from the SD card manually. Update download may be disabled by configuring DNS, there is a guide topic in Nintendo Network subforum.
 
Not sure, mos probably it is possible to remove the downloaded update data with the 3DS data configuretion or from the SD card manually. Update download may be disabled by configuring DNS, there is a guide topic in Nintendo Network subforum.

Yeah but can I dns with this streetpass network though? wouldn't there be complications?
 
So this is the native hostapd config used by the ap-hotspot. Can't find full man for ap-hotspot so wait till I'll intall the latest U 14 Desktop on VMWare and check it options. I agree if it is working it should be used as a workaround for that distro as long as we do not investigate the native hostapd method.


The options are the following:
19:52:28 ~$ sudo ap-hotspot
Usage:ap-hotspot [argument]

start start wireless hotspot
stop stop wireless hotspot
restart restart wireless hotspot
configure configure hotspot
debug start with detailed messages

So the important are start, stop and restart maybe. There is no man, here is the source: https://github.com/hotice/AP-Hotspot/blob/master/ap-hotspot
 
Arithmatics You'll be the first to try, very probably it will work!

serginator looks like it is only a shell script, so we can use it to investigate changes! I'd better dig into that script and use it upproach to force hostapd run as it normally should on U 14
upd: did not find anything special except that dnsmasq and hostapd init scripts is launched, this may solve the issue. I'll check it sources. Anyway there is much excessive work done in ap-hotspot in terms of homepass script.
Can you alter your test script like that and check for the errors and MAC change:
Code:
[FONT=Consolas]#!/bin/bash
macs=(
    "4e:53:50:4f:4f:40" "4e:53:50:4f:4f:41" "4e:53:50:4f:4f:42" "4e:53:50:4f:4f:43"
    "4e:53:50:4f:4f:44" "4e:53:50:4f:4f:45" "4e:53:50:4f:4f:46" "4e:53:50:4f:4f:47"
    "4e:53:50:4f:4f:48" "4e:53:50:4f:4f:49" "4e:53:50:4f:4f:4A" "4e:53:50:4f:4f:4B"
    "4e:53:50:4f:4f:4C" "4e:53:50:4f:4f:4D" "4e:53:50:4f:4f:4E" "4e:53:50:4f:4f:4F"
)
 
for i in "${macs[@]}"
do
    echo "Using $i MAC address for the hotspot"
[COLOR=#ff0000] sudo killall hostapd[/COLOR]
    sleep 10
    sudo ifconfig wlan0 down hw ether "$i" up
    sleep 5
[COLOR=#ff0000] sudo hostapd -B /etc/ap-hotspot.conf[/COLOR]
    echo "Waiting 1 minute..."
    sleep 60
done[/FONT]
 
Arithmatics You'll be the first to try, very probably it will work!

serginator looks like it is only a shell script, so we can use it to investigate changes! I'd better dig into that script and use it upproach to force hostapd run as it normally should on U 14
upd: did not find anything special except that dnsmasq and hostapd init scripts is launched, this may solve the issue. I'll check it sources. Anyway there is much excessive work done in ap-hotspot in terms of homepass script.
Can you alter your test script like that and check for the errors and MAC change:
Code:
[FONT=Consolas]#!/bin/bash
macs=(
    "4e:53:50:4f:4f:40" "4e:53:50:4f:4f:41" "4e:53:50:4f:4f:42" "4e:53:50:4f:4f:43"
    "4e:53:50:4f:4f:44" "4e:53:50:4f:4f:45" "4e:53:50:4f:4f:46" "4e:53:50:4f:4f:47"
    "4e:53:50:4f:4f:48" "4e:53:50:4f:4f:49" "4e:53:50:4f:4f:4A" "4e:53:50:4f:4f:4B"
    "4e:53:50:4f:4f:4C" "4e:53:50:4f:4f:4D" "4e:53:50:4f:4f:4E" "4e:53:50:4f:4f:4F"
)
 
for i in "${macs[@]}"
do
    echo "Using $i MAC address for the hotspot"
[COLOR=#ff0000] sudo killall hostapd[/COLOR]
    sleep 10
    sudo ifconfig wlan0 down hw ether "$i" up
    sleep 5
[COLOR=#ff0000] sudo hostapd -B /etc/ap-hotspot.conf[/COLOR]
    echo "Waiting 1 minute..."
    sleep 60
done[/FONT]


It doesn't work... a lot of errors:
Dec 17 21:43:05 ubuntu-ux32vd kernel: [28754.877434] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
Dec 17 21:43:05 ubuntu-ux32vd kernel: [28754.884291] iwlwifi 0000:03:00.0: Radio type=0x2-0x1-0x0
Dec 17 21:43:05 ubuntu-ux32vd avahi-daemon[506]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.150.1.
Dec 17 21:43:05 ubuntu-ux32vd avahi-daemon[506]: New relevant interface wlan0.IPv4 for mDNS.
Dec 17 21:43:05 ubuntu-ux32vd avahi-daemon[506]: Registering new address record for 192.168.150.1 on wlan0.IPv4.
Dec 17 21:43:05 ubuntu-ux32vd kernel: [28754.977190] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Dec 17 21:43:05 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:05 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:05 ubuntu-ux32vd NetworkManager[9234]: <info> (wlan0): supplicant interface state: disabled -> disconnected
Dec 17 21:43:06 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:06 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:07 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:07 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:08 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:08 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:09 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:09 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:10 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:10 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:10 ubuntu-ux32vd avahi-daemon[506]: Interface wlan0.IPv4 no longer relevant for mDNS.
Dec 17 21:43:10 ubuntu-ux32vd avahi-daemon[506]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.150.1.
Dec 17 21:43:10 ubuntu-ux32vd avahi-daemon[506]: Withdrawing address record for 192.168.150.1 on wlan0.
Dec 17 21:43:10 ubuntu-ux32vd NetworkManager[9234]: <info> (wlan0): supplicant interface state: disconnected -> disabled
Dec 17 21:43:10 ubuntu-ux32vd NetworkManager[9234]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0)
Dec 17 21:43:10 ubuntu-ux32vd NetworkManager[9234]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0): no ifupdown configuration found.
Dec 17 21:43:10 ubuntu-ux32vd kernel: [28760.065130] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
Dec 17 21:43:10 ubuntu-ux32vd kernel: [28760.072067] iwlwifi 0000:03:00.0: Radio type=0x2-0x1-0x0
Dec 17 21:43:10 ubuntu-ux32vd avahi-daemon[506]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.150.1.
Dec 17 21:43:10 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:10 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:10 ubuntu-ux32vd kernel: [28760.179354] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Dec 17 21:43:10 ubuntu-ux32vd avahi-daemon[506]: New relevant interface wlan0.IPv4 for mDNS.
Dec 17 21:43:10 ubuntu-ux32vd avahi-daemon[506]: Registering new address record for 192.168.150.1 on wlan0.IPv4.
Dec 17 21:43:10 ubuntu-ux32vd NetworkManager[9234]: <info> (wlan0): supplicant interface state: disabled -> disconnected
Dec 17 21:43:10 ubuntu-ux32vd kernel: [28760.201687] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Dec 17 21:43:11 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:11 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan
Dec 17 21:43:12 ubuntu-ux32vd avahi-daemon[506]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::4c53:50ff:fe4f:4f40.
Dec 17 21:43:12 ubuntu-ux32vd avahi-daemon[506]: New relevant interface wlan0.IPv6 for mDNS.
Dec 17 21:43:12 ubuntu-ux32vd avahi-daemon[506]: Registering new address record for fe80::4c53:50ff:fe4f:4f40 on wlan0.*.
Dec 17 21:43:12 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Reject scan trigger since one is already pending
Dec 17 21:43:12 ubuntu-ux32vd wpa_supplicant[1538]: wlan0: Failed to initiate AP scan

I guess there are more stuff ap-hotspot.sh does than just kill and start hostapd :(
 
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

That's the cause of the issue, the same physical interface can't be used for hotspot and the internet access in linux version. So switch to the wirted connection or add anothe wireless interface
 
That's the cause of the issue, the same physical interface can't be used for hotspot and the internet access in linux version. So switch to the wirted connection or add anothe wireless interface

Ah all right, would that work on windows? My problem is that I'm on the third floor and I can't really get wired internet here (at least not for less than 50 bucks so that's not really a priority when wireless works fine).
 
I need the ouptut ftom the script itself but not the syslog please

Oh, sure, syslog was more informative hehe, the output has the same error as before:
22:30:59 ~/homepass$ ./script2.sh
Using 4e:53:50:4f:4f:40 MAC address for the hotspot
Configuration file: /etc/ap-hotspot.conf
Failed to update rate sets in kernel module
Using interface wlan0 with hwaddr 4e:53:50:4f:4f:40 and ssid 'NZ@McD1'
Waiting 1 minute...
 
Ah all right, would that work on windows? My problem is that I'm on the third floor and I can't really get wired internet here (at least not for less than 50 bucks so that's not really a priority when wireless works fine).

You can try to configure the virtual subinterface and set is as a default connection, but that also may require script modification, not really sure.
Windows version must be able to run with the single wireless interface, however there might also be issues.
 
Oh, sure, syslog was more informative hehe, the output has the same error as before:

Well, that was the working output for Debian version! Can you check AP availability with 3DS now?
Or just comment all nmcli and rfkill calls in nzone and check if it is working now?
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum