Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
Last active October 26, 2023 13:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanorelli/d8c66f4311900b8ccbc165854e46d2c8 to your computer and use it in GitHub Desktop.
Save jordanorelli/d8c66f4311900b8ccbc165854e46d2c8 to your computer and use it in GitHub Desktop.
Raspberry Pi 3 B+ access point config

The documentation here: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

sets up a sorta old network configuration. Specifically hostapd is configured to run an 802.11g network that only runs at about 15Mbps on my device.

Reading through the hostapd docs, I wound up with a different configuration, that sets up an 802.11n network running on the 5GHz band. I believe the rpi can actually host an 802.11ac network but my Macbook is too old for that so I haven't been testing it.

The rest of the setup documented in the raspberrypi.org article is what I'm using; I've only tweaked the hostapd.conf.

If you want to find out what channels are supported on your device, you can use iwlist to list out the available channels, like this:

pi@raspberrypi[0] ~: iwlist wlan0 channel
wlan0     32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Channel 128 : 5.64 GHz
          Channel 132 : 5.66 GHz
          Channel 136 : 5.68 GHz
          Channel 140 : 5.7 GHz
          Channel 144 : 5.72 GHz
          Channel 149 : 5.745 GHz
# this is the built-in wifi chip
interface=wlan0
driver=nl80211
ssid=jorelli's raspberry pi
# this config got me 30mbps
# this is 2.4GHz 802.11n configuration
############################################
# hw_mode=g
# channel=6
# ieee80211n=1
# wmm_enabled=1
# ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
# this config got me up to 96mbps
# this is a 5GHz 802.11n configuration
############################################
hw_mode=a
channel=40
ieee80211n=1
require_ht=1
ht_capab=[HT40-][DSSS_CCK-40]
wmm_enabled=1
country_code=US
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=trainjam
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment