I want to use my desktop with a wired ethernet connection (eth0) to operate my "TP-LINK TL-WN722N" USB Wifi Adapter (wlan0) as a non-adhoc access point (so my android can connect to it). I've asked a few questions for improvements at the end...
After MUCH searching, I finally found a method that works with about 95% of what I want.
Dependencies:
hostapd
bridge-utils
I modified "/etc/network/interfaces" to contain:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
My "/etc/hostapd/hostapd.conf" (which I had to write myself) contains:
### Guts ###
interface=wlan0
bridge=br0
driver=nl80211
### General ###
ssid=____________________
hw_mode=g
channel=1
### Security ###
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0 ## 0 visible # 1 hidden ##
wpa=2
wpa_passphrase=____________________
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
### Reference ###
## Created Tuesday, February 14, 2012 ## Ubuntu 11.10 ##
# Hostapd Linux Documentation Page
# http://linuxwireless.org/en/users/Documentation/hostapd
# Creating a Network Bridge on Ubuntu (January 16th, 2011)
# http://webserver.linuxportal.nl/?p=422
(I've edited out the security bits for this post)
All of that allows me to open up a Terminal and execute:
sudo hostapd -B /etc/hostapd/hostapd.conf
to have a functioning access point that my droid and all other wifi devices can connect to.
Aside from sharing this method with others since info for this setup is so sparse; there are three problems I hope to fix:
- This configuration deactivates network manager and all of its functions. When you click it, it gives a "device not managed" message. (not essential, but a bit annoying to me)
- This method seems to have a very hard time assigning more than one IP address at a time. The first connected device works flawlessly, but subsequent devices may await an IP address.
I must use a terminal to turn on Wifi. (Ok for me, but not family friendly).I figured out how to make a launcher using gksu and a simple script if anyone needs one...

- (Why can't network manager do this out-of-the-box??)
Thanks in advance! I hope all of this can help someone else; I've never written a tutorial before and know virtually nothing about networking...
Perhaps related to network bridge - without destroying network manager (among others).
Created using Ubuntu 11.10.
