NOTE: This is an alternative branch off from my previous Hostapd guide, which I really recommend going through before this.
In my previous hostapd guide, I used dhcpd to assign IP addresses to the clients connecting to the access point. While this works fine for most scenarios, it is an overkill to use dhcpd for such situations where normally the number of clients is 2-3, or around 20 at max. For such cases, dnsmasq is a better option.
Install dnsmasq from somewhere
# Arch Linux
sudo pacman -S dnsmasq
sudo apt-get install dnsmasq
Earlier i had written a guide about setting up and running hostapd. To hone my python skills and make using and configuring hostapd simpler, i wrote a python client for hostapd. I also intend this project to serve as a base for a connectify-like GUI hostapd client, which i will start working on in a few days. This project is nearly complete, with proper logging system yet to implement and fix any unknown bugs.
Getting and Installing hostapd-python-script
Just paste this on your command line.
git clone https://github.com/nims11/hostapd-python-script.git
Read the README.textile file, it will get you well covered.
Help me improve it by reporting bugs, suggestions and pull requests. I have only tested it well enough under my Arch Linux installation with ath9k wifi driver, so reporting working/non-working environments will help a lot. I believe the sourcecode is simple enough to understand and i have documented most part of it. Will document the rest in few days as well.
Thank you 🙂