Announcing AAP (aka AutoAP) for OpenWrt Kamikaze 8.09+

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
orange
DD-WRT Guru


Joined: 05 Sep 2007
Posts: 532
Location: 49.50N, 08.44E

PostPosted: Thu Sep 03, 2009 13:31    Post subject: Announcing AAP (aka AutoAP) for OpenWrt Kamikaze 8.09+ Reply with quote
UPDATE 100816 - For most recent Piranha + AAP development, please follow https://forum.openwrt.org/viewtopic.php?id=26116

DD-WRT Community,

while this announcement is OpenWrt-related, I think it's an interesting piece of information for the DD-WRT community as well for obvious reasons. Let me cite my announcement at OpenWrt's forums.

---
Community,

I'm glad to announce the immediate availability of AAP for OpenWrt Kamikaze 8.09+. AAP is ready-to-run on devices with Atheros wireless chipsets (while easily adoptable to other chipsets) and has been written for the Fonera 2100/2200. Instead of explaining AAP in detail again here, I paste the rather comprehensive README that ships with the initial release of AAP. AAP is available as of today at http://piranha.klashed.net/pub/aap

Code:
#
# Copyright (C) 2009 orange <or4n9e@gmx.de>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

### Definition ###
AAP is a script that enables users of OpenWrt Kamikaze 8.09+ to automatically log into different
wireless accesspoints that provide internet access. The accesspoints can be automatically
searched and/or set in a whitelist (aap_wlst). Beyond that AAP is capable in defining a blacklist
of undesired accesspoints while connecting (aap_blst). AAP supports the client connection of
your OpenWrt Kamikaze 8.09+ device to open, wep, wpa-psk and wpa2-psk encrypted accesspoints.
AAP connects to surrounding accesspoints utilizing their MAC addresses. This ensures a high level of
differentiation between accesspoints in contrast to SSID-based connecting.

### Requirements ###
AAP requires an OpenWrt Kamikaze 8.09+ device properly configured in Client Mode (sta). AAP supports
devices with an Atheros wireless chipset (while easily adoptable to other chipsets) and has been written
for the Fonera 2100/2200. It assumes a single madwifi-VAP ath0 in sta mode.

### Whitelist/Blacklist ###
aap_wlst is a newline-separated whitelist of preferred accesspoints:
00:11:22:33:44:55* for accesspoints with no encryption
00:11:22:33:44:55*key for accesspoints with wep, wpa-psk or wpa2-psk encryption

aap_blst is a newline-separated blacklist of undesired accesspoints:
00:11:22:33:44:55 for open, wep, wpa-psk and wpa2-psk encrypted accesspoints

### Configuration Variables ###
aap.sh provides configuration variables (with default values) at the top of the script:
# Internet connection check frequency in seconds
aap_checkfreq=60

# Length of time in seconds to wait for a DHCP request to succeed
aap_dhcptimeout=30

# Internet URL or IP address used to ping to ensure internet access is working
aap_ineturl=www.google.com

# Defines the search mode. Try to find all accesspoints that provide internet access. "0"=NO, "1"=YES
aap_prefonly=0

# Defines the accesspoint refresh scan delay in seconds (divisible by 5)
aap_rescandelay=43200

### Installation ###
1. Log into your device via SSH
2. # mkdir /aap
3. scp aap.sh, aap_blst, aap_wlst and scan.awk to /aap
4. scp aap to /etc/init.d
5. # chmod 755 /aap/aap.sh, /aap/scan.awk and /etc/init.d/aap

### Usage ###
To enable autostart of AAP
# /etc/init.d/aap enable
To disable autostart of AAP
# /etc/init.d/aap disable
To start AAP manually
# /etc/init.d/aap start
To stop AAP manually
# /etc/init.d/aap stop

### Known Issues ###
Both aap_wlst and aap_blst need to be non-empty files due to the behaviour of the busybox builtin grep.
Thus, please leave aap_wlst and aap_blst as provided and just append your custom newline-separated entries
if actually in use.

### Warning ###
Both aap.sh and scan.awk make use of "*" as a field separator. Thus, both SSIDs and encryption keys
that includes "*" aren't supported by AAP. Unfortunately this constraint isn't solvable currently
as the busybox ash shell doesn't support arrays and the SSID specification allows the complete ASCII
character set. Be sure to utilize aap_blst to exclude those particular accesspoints. AAP may harm your
OpenWrt Kamikaze 8.09+ /etc/config/wireless configuration permanently if you neglect this warning. Use
AAP at your own risk!

### Changelog ###
Initial release aap_090903

Testing, reporting bugs, voicing comments/suggestions and asking questions about AAP is certainly much appreciated. I hope you feel this initial release of AAP as a valuable share to the OpenWrt community.
---

best,
orange

_________________
7x La Fonera 2100, 1x NanoStation2 Loco
running bleeding edge openwrt backfire/attitude adjustment
or4n9e on irc.freenode.net


Last edited by orange on Mon Aug 16, 2010 14:46; edited 1 time in total
Sponsor
orange
DD-WRT Guru


Joined: 05 Sep 2007
Posts: 532
Location: 49.50N, 08.44E

PostPosted: Tue Sep 08, 2009 22:23    Post subject: Reply with quote
aap_090909 has been released. It fixes a bug with missing variable quoting. With the new release, SSIDs that contain spaces are now properly processed by UCI. I plan to do some more code clean-up in the future, but this is a quick fix for your convenience. aap_090909 is available at http://piranha.klashed.net/pub/aap

thanks,
orange

_________________
7x La Fonera 2100, 1x NanoStation2 Loco
running bleeding edge openwrt backfire/attitude adjustment
or4n9e on irc.freenode.net
orange
DD-WRT Guru


Joined: 05 Sep 2007
Posts: 532
Location: 49.50N, 08.44E

PostPosted: Fri Sep 11, 2009 12:53    Post subject: Reply with quote
AAP 090911 has been released. Thanks to a suggestion by jow (OpenWrt developer), the write-access of AAP to flash memory got completely eliminated. An “uci commit wireless” upon connection attempt to a new AP is actually not needed as “wifi” reads the staged UCI values in /tmp anyway. AAP 090911 is available at http://piranha.klashed.net/pub/aap
_________________
7x La Fonera 2100, 1x NanoStation2 Loco
running bleeding edge openwrt backfire/attitude adjustment
or4n9e on irc.freenode.net
orange
DD-WRT Guru


Joined: 05 Sep 2007
Posts: 532
Location: 49.50N, 08.44E

PostPosted: Wed Sep 16, 2009 16:06    Post subject: Reply with quote
Just a quick note: AAP 090916 is out with some new features/enhancements! Please read http://piranha.klashed.net/2009/09/16/piranha-30-090916-aap-090916-released/ for further information.
_________________
7x La Fonera 2100, 1x NanoStation2 Loco
running bleeding edge openwrt backfire/attitude adjustment
or4n9e on irc.freenode.net
orange
DD-WRT Guru


Joined: 05 Sep 2007
Posts: 532
Location: 49.50N, 08.44E

PostPosted: Wed Sep 23, 2009 11:40    Post subject: Reply with quote
If you're interested in AAP and/or Piranha 3.0, I'd like to encourage you to follow my blog http://piranha.klashed.net/ for updates from now on - it's even possible to subscribe to my http://piranha.klashed.net/feed/ RSS feed. From my perspective it makes not too much sense to "spam" these forums every time I release something new. New releases of AAP will be (at any time) available at http://piranha.klashed.net/pub/aap/ and of Piranha 3.0 at http://piranha.klashed.net/pub/3.0/

I hope you feel this as an appropriate decision. I'll certainly check these forums on a regular basis, so feel free to ask whatever you like about AAP here and I'll come back to you asap.

Thanks,
orange

_________________
7x La Fonera 2100, 1x NanoStation2 Loco
running bleeding edge openwrt backfire/attitude adjustment
or4n9e on irc.freenode.net
DoesItMatter
DD-WRT Guru


Joined: 10 May 2008
Posts: 1373
Location: Pacific North West, USA

PostPosted: Wed Sep 23, 2009 13:28    Post subject: Reply with quote
This sounds like some awesome stuff!

I wish I could use it or had a use for it.

I can't stand laptops, and never need wireless when I'm out and about.

Wherever I'm at @ home or @ work, I always have high-speed internet... oh well.

_________________
Evil or Very Mad Soylent Green Is People ! Evil or Very Mad
Twisted Evil =-=-=-=-=-=-=-=-=-=-= Twisted Evil
2x Asus RT-N16 - Asuswrt-Merlin 3.0.0.4.376.43
Belkin F7D3302 - Toastman Tomato USB VPN 1.28.7505
Linksys E3000 - Toastman Tomato USB VPN 1.28.7505
-------------------------
2x Buffalo WZR-HP-G300NH V1 - OpenWRT Chaos Calmer 45860
2x Engenius ESR900 - Stock Firmware 1.4.0 / OpenWRT Chaos Calmer 45860
TP-Link WR1043ND V1.8 - Gargoyle 1.7.1
Seth7
DD-WRT Guru


Joined: 16 Aug 2006
Posts: 670
Location: DN17IQ

PostPosted: Fri Aug 13, 2010 7:18    Post subject: Reply with quote
orange wrote:
If you're interested in AAP and/or Piranha 3.0, I'd like to encourage you to follow my blog http://piranha.klashed.net/ for updates from now on - it's even possible to subscribe to my http://piranha.klashed.net/feed/ RSS feed. From my perspective it makes not too much sense to "spam" these forums every time I release something new. New releases of AAP will be (at any time) available at http://piranha.klashed.net/pub/aap/ and of Piranha 3.0 at http://piranha.klashed.net/pub/3.0/

I hope you feel this as an appropriate decision. I'll certainly check these forums on a regular basis, so feel free to ask whatever you like about AAP here and I'll come back to you asap.

Thanks,
orange


Looks like dd-wrt build v24-sp2 (08/07/10) std - build 14896 looks interesting .. wonder if aap could be used with it ..

_________________
WRT54G,GS v1.1, V2, V3 V4, V5
WR850G V2, V3
Fonera 2100
orange
DD-WRT Guru


Joined: 05 Sep 2007
Posts: 532
Location: 49.50N, 08.44E

PostPosted: Sat Aug 14, 2010 13:01    Post subject: Reply with quote
Seth7 wrote:
Looks like dd-wrt build v24-sp2 (08/07/10) std - build 14896 looks interesting .. wonder if aap could be used with it ..

It cannot! AAP is OpenWrt software. Btw, a basic documentation is available as of today at OpenWrt forum https://forum.openwrt.org/viewtopic.php?id=26116

_________________
7x La Fonera 2100, 1x NanoStation2 Loco
running bleeding edge openwrt backfire/attitude adjustment
or4n9e on irc.freenode.net
slybunda
DD-WRT User


Joined: 09 Jan 2010
Posts: 464

PostPosted: Sat Aug 14, 2010 14:00    Post subject: Reply with quote
this is excellent news, now if only openwrt didnt suck.......
Seth7
DD-WRT Guru


Joined: 16 Aug 2006
Posts: 670
Location: DN17IQ

PostPosted: Sun Aug 15, 2010 13:19    Post subject: Reply with quote
slybunda wrote:
this is excellent news, now if only openwrt didnt suck.......


Im not pleased with it ... but not disappointed either .. im trying to learn how to use it.

_________________
WRT54G,GS v1.1, V2, V3 V4, V5
WR850G V2, V3
Fonera 2100
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum