If you already have an entry for DHCP on another subnet on another interface, make sure that the old subnet declaration also specifies for which interface it applies. Edit /etc/dhcp/nf and add the following lines. I am using Raspbian, but most of the things should work on any distribution. Below, I describe the steps required for setting up everything. It has worked very well so far, and is in daily use. I ended up buying a TL-WN722N, since it is supported by the ath9k_htc drier, and the external antenna looks efficient. Among the USB WiFi sticks, ath9k_htc seems well supported.
Driver modem tp link tl wn722n android drivers#
The state of support in the various drivers can be found at. The hardware part is quite tricky though - not every wlan card works in access point, or managed, mode in Linux. Software-wise, the access point functionality is provided by hostapd, which can be installed on the Pi easily. So the task now is to set up a Linux access point. It turns out that an ad-hoc network is not enough - Android connects only to real access points (unless rooted and configured to be less suspicious). The primary reason for all of this is to have an access point for an Android phone. The Pi has three network interfaces: wlan0 is the newly added WLAN device, eth0 is my LAN, and ppp0 is a USB GSM modem connecting everything to the internet. Now I wanted to add a WiFi device, and use the Pi as an access point as well. In a previous post, I talked about using the Raspberry Pi as a router.