Last active
March 15, 2017 08:31
-
-
Save hanafiah/695287b5b425c803668d23be3b9bebc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ sudo apt-get install hostapd -y | |
pi@raspberrypi:~ $ sudo nano /etc/default/hostapd | |
#----------- | |
# add this to the end of line | |
DAEMON_CONF="/etc/hostapd/hostapd.conf" | |
#----------- | |
pi@raspberrypi:~ $ sudo nano /etc/hostapd/hostapd.conf | |
#----------- | |
# add this line | |
# interface wlan Wi-Fi | |
interface=wlan0 | |
# nl80211 avec tous les drivers Linux mac80211 | |
driver=nl80211 | |
# the name of AP Wi-Fi | |
ssid=stickercool.com ap | |
# mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.1g) | |
hw_mode=g | |
# canal de fr quence Wi-Fi (1-14) | |
channel=6 | |
# Wi-Fi ouvert, pas d'authentification ! | |
auth_algs=1 | |
# Beacon interval in kus (1.024 ms) | |
beacon_int=100 | |
# DTIM (delivery traffic information message) | |
dtim_period=2 | |
# Maximum number of stations allowed in station table max_num_sta=255 | |
# RTS/CTS threshold; 2347 = disabled (default) | |
rts_threshold=2347 | |
# Fragmentation threshold; 2346 = disabled (default) | |
fragm_threshold=2346 | |
#----------- | |
pi@raspberrypi:~ $ sudo service hostapd start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment